From 8de364bfed0200b8ebe2d297fa8884ee1b7aa44e Mon Sep 17 00:00:00 2001 From: rpalloni Date: Wed, 5 Oct 2022 09:10:49 +0200 Subject: [PATCH 01/25] add pass through vendors and items --- README.md | 6 ++++++ models/netsuite/stg_netsuite__items.sql | 3 +++ models/netsuite/stg_netsuite__vendors.sql | 3 +++ 3 files changed, 12 insertions(+) diff --git a/README.md b/README.md index c7500fa..c2d93fc 100644 --- a/README.md +++ b/README.md @@ -138,6 +138,12 @@ vars: alias: "subsidiary_field" consolidated_exchange_rates_pass_through_columns: - name: "consolidate_this_field" + vendors_pass_through_columns: + - name: "vendors_custom_field" + alias: "vendors_field" + items_pass_through_columns: + - name: "items_custom_field" + alias: "items_field" ``` ### Change the build schema By default, this package builds the Netsuite staging models within a schema titled (`` + `_netsuite_source`) in your destination. If this is not where you would like your netsuite staging data to be written to, add the following configuration to your root `dbt_project.yml` file: diff --git a/models/netsuite/stg_netsuite__items.sql b/models/netsuite/stg_netsuite__items.sql index 7b047dd..9147f82 100644 --- a/models/netsuite/stg_netsuite__items.sql +++ b/models/netsuite/stg_netsuite__items.sql @@ -36,6 +36,9 @@ final as ( salesdescription as sales_description, _fivetran_deleted + --The below macro adds the fields defined within your items_pass_through_columns variable into the staging model + {{ fivetran_utils.fill_pass_through_columns('items_pass_through_columns') }} + from fields ) diff --git a/models/netsuite/stg_netsuite__vendors.sql b/models/netsuite/stg_netsuite__vendors.sql index e4da6cc..d9233a6 100644 --- a/models/netsuite/stg_netsuite__vendors.sql +++ b/models/netsuite/stg_netsuite__vendors.sql @@ -36,6 +36,9 @@ final as ( vendor_type_id, _fivetran_deleted + --The below macro adds the fields defined within your vendors_pass_through_columns variable into the staging model + {{ fivetran_utils.fill_pass_through_columns('vendors_pass_through_columns') }} + from fields ) From 9a0168bf420a43aa7f0eed4e372f2698072c23fa Mon Sep 17 00:00:00 2001 From: rpalloni Date: Wed, 5 Oct 2022 09:17:21 +0200 Subject: [PATCH 02/25] changelog --- CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e306ccf..cbc0af8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,13 @@ +# dbt_netsuite_source v0.5.2 + +## Features +- Added this changelog to capture iterations of the package! +- Added the `vendors_pass_through_columns` variable to be leveraged within the `stg_netsuite__vendors` 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`. +- Added the `items_pass_through_columns` variable to be leveraged within the `stg_netsuite__items` 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`. + +## Contributors +- [rpalloni](https://github.com/rpalloni) + # dbt_netsuite_source v0.5.1 ## Features 🎉 (affects Netsuite2 users only) From 7bd7a073ee9423a6c22c02f8e4a0123e37d0a95b Mon Sep 17 00:00:00 2001 From: rpalloni Date: Wed, 5 Oct 2022 09:27:06 +0200 Subject: [PATCH 03/25] fix version --- dbt_project.yml | 4 +++- integration_tests/dbt_project.yml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 7b6e2fc..938f72e 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -2,7 +2,7 @@ config-version: 2 require-dbt-version: [">=1.0.0", "<2.0.0"] name: 'netsuite_source' -version: '0.5.1' +version: '0.5.2' models: netsuite_source: @@ -72,6 +72,8 @@ vars: locations_pass_through_columns: [] subsidiaries_pass_through_columns: [] consolidated_exchange_rates_pass_through_columns: [] + vendors_pass_through_columns: [] + items_pass_through_columns: [] clean-targets: - target diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index d75c200..9144afa 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,5 +1,5 @@ name: 'netsuite_source_integration_tests' -version: '0.5.1' +version: '0.5.2' profile: 'integration_tests' config-version: 2 From e190ceff3983ee1e4ed8305d3a361561d232af77 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen Date: Thu, 13 Oct 2022 15:59:33 -0800 Subject: [PATCH 04/25] Updates for dbt-utils to dbt-core cross-db macro migration --- macros/get_accounting_books_columns.sql | 70 +- macros/get_accounting_periods_columns.sql | 92 +-- ...get_accountingbooksubsidiaries_columns.sql | 12 +- ...ccountingperiodfiscalcalendars_columns.sql | 12 +- macros/get_accounts_columns.sql | 52 +- macros/get_accounttype_columns.sql | 26 +- macros/get_classes_columns.sql | 16 +- ...et_consolidated_exchange_rates_columns.sql | 46 +- macros/get_currencies_columns.sql | 50 +- macros/get_customers_columns.sql | 46 +- macros/get_departments_columns.sql | 20 +- macros/get_entity_columns.sql | 76 +- macros/get_entityaddress_columns.sql | 36 +- macros/get_expense_accounts_columns.sql | 32 +- macros/get_income_accounts_columns.sql | 32 +- macros/get_items_columns.sql | 674 +++++++++--------- macros/get_job_columns.sql | 140 ++-- macros/get_locationmainaddress_columns.sql | 36 +- macros/get_locations_columns.sql | 26 +- macros/get_subsidiaries_columns.sql | 126 ++-- ...t_transaction_accounting_lines_columns.sql | 32 +- macros/get_transaction_lines_columns.sql | 60 +- .../get_transactionaccountingline_columns.sql | 36 +- macros/get_transactions_columns.sql | 50 +- macros/get_vendor_types_columns.sql | 14 +- macros/get_vendorcategory_columns.sql | 16 +- macros/get_vendors_columns.sql | 334 ++++----- 27 files changed, 1081 insertions(+), 1081 deletions(-) diff --git a/macros/get_accounting_books_columns.sql b/macros/get_accounting_books_columns.sql index d7da06e..e86feb2 100644 --- a/macros/get_accounting_books_columns.sql +++ b/macros/get_accounting_books_columns.sql @@ -2,26 +2,26 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "accounting_book_extid", "datatype": dbt_utils.type_string()}, - {"name": "accounting_book_id", "datatype": dbt_utils.type_float()}, - {"name": "accounting_book_name", "datatype": dbt_utils.type_string()}, - {"name": "base_book_id", "datatype": dbt_utils.type_float()}, - {"name": "date_created", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_last_modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "effective_period_id", "datatype": dbt_utils.type_float()}, - {"name": "form_template_component_id", "datatype": dbt_utils.type_string()}, - {"name": "form_template_id", "datatype": dbt_utils.type_float()}, - {"name": "is_adjustment_only", "datatype": dbt_utils.type_string()}, - {"name": "is_arrangement_level_reclass", "datatype": dbt_utils.type_string()}, - {"name": "is_consolidated", "datatype": dbt_utils.type_string()}, - {"name": "is_contingent_revenue_handling", "datatype": dbt_utils.type_string()}, - {"name": "is_include_child_subsidiaries", "datatype": dbt_utils.type_string()}, - {"name": "is_primary", "datatype": dbt_utils.type_string()}, - {"name": "is_two_step_revenue_allocation", "datatype": dbt_utils.type_string()}, - {"name": "status", "datatype": dbt_utils.type_string()}, - {"name": "unbilled_receivable_grouping", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "accounting_book_extid", "datatype": dbt.type_string()}, + {"name": "accounting_book_id", "datatype": dbt.type_float()}, + {"name": "accounting_book_name", "datatype": dbt.type_string()}, + {"name": "base_book_id", "datatype": dbt.type_float()}, + {"name": "date_created", "datatype": dbt.type_timestamp()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "date_last_modified", "datatype": dbt.type_timestamp()}, + {"name": "effective_period_id", "datatype": dbt.type_float()}, + {"name": "form_template_component_id", "datatype": dbt.type_string()}, + {"name": "form_template_id", "datatype": dbt.type_float()}, + {"name": "is_adjustment_only", "datatype": dbt.type_string()}, + {"name": "is_arrangement_level_reclass", "datatype": dbt.type_string()}, + {"name": "is_consolidated", "datatype": dbt.type_string()}, + {"name": "is_contingent_revenue_handling", "datatype": dbt.type_string()}, + {"name": "is_include_child_subsidiaries", "datatype": dbt.type_string()}, + {"name": "is_primary", "datatype": dbt.type_string()}, + {"name": "is_two_step_revenue_allocation", "datatype": dbt.type_string()}, + {"name": "status", "datatype": dbt.type_string()}, + {"name": "unbilled_receivable_grouping", "datatype": dbt.type_string()} ] %} {{ return(columns) }} @@ -32,21 +32,21 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "basebook", "datatype": dbt_utils.type_int()}, - {"name": "contingentrevenuehandling", "datatype": dbt_utils.type_string()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "effectiveperiod", "datatype": dbt_utils.type_int()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "isadjustmentonly", "datatype": dbt_utils.type_string()}, - {"name": "isconsolidated", "datatype": dbt_utils.type_string()}, - {"name": "isprimary", "datatype": dbt_utils.type_string()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "subsidiariesstring", "datatype": dbt_utils.type_string()}, - {"name": "twosteprevenueallocation", "datatype": dbt_utils.type_string()}, - {"name": "unbilledreceivablegrouping", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "basebook", "datatype": dbt.type_int()}, + {"name": "contingentrevenuehandling", "datatype": dbt.type_string()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "effectiveperiod", "datatype": dbt.type_int()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "isadjustmentonly", "datatype": dbt.type_string()}, + {"name": "isconsolidated", "datatype": dbt.type_string()}, + {"name": "isprimary", "datatype": dbt.type_string()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "subsidiariesstring", "datatype": dbt.type_string()}, + {"name": "twosteprevenueallocation", "datatype": dbt.type_string()}, + {"name": "unbilledreceivablegrouping", "datatype": dbt.type_string()} ] %} {{ return(columns) }} diff --git a/macros/get_accounting_periods_columns.sql b/macros/get_accounting_periods_columns.sql index 085fa7b..e2ef2ee 100644 --- a/macros/get_accounting_periods_columns.sql +++ b/macros/get_accounting_periods_columns.sql @@ -2,33 +2,33 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_id", "datatype": dbt_utils.type_string()}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "accounting_period_id", "datatype": dbt_utils.type_float()}, - {"name": "closed", "datatype": dbt_utils.type_string()}, - {"name": "closed_accounts_payable", "datatype": dbt_utils.type_string()}, - {"name": "closed_accounts_receivable", "datatype": dbt_utils.type_string()}, - {"name": "closed_all", "datatype": dbt_utils.type_string()}, - {"name": "closed_on", "datatype": dbt_utils.type_timestamp()}, - {"name": "closed_payroll", "datatype": dbt_utils.type_string()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_last_modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "ending", "datatype": dbt_utils.type_timestamp()}, - {"name": "fiscal_calendar_id", "datatype": dbt_utils.type_float()}, - {"name": "fivetran_index", "datatype": dbt_utils.type_string()}, - {"name": "full_name", "datatype": dbt_utils.type_string()}, - {"name": "is_adjustment", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "locked_accounts_payable", "datatype": dbt_utils.type_string()}, - {"name": "locked_accounts_receivable", "datatype": dbt_utils.type_string()}, - {"name": "locked_all", "datatype": dbt_utils.type_string()}, - {"name": "locked_payroll", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "parent_id", "datatype": dbt_utils.type_float()}, - {"name": "quarter", "datatype": dbt_utils.type_string()}, - {"name": "starting", "datatype": dbt_utils.type_timestamp()}, - {"name": "year_0", "datatype": dbt_utils.type_string()}, - {"name": "year_id", "datatype": dbt_utils.type_float()} + {"name": "_fivetran_id", "datatype": dbt.type_string()}, + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "accounting_period_id", "datatype": dbt.type_float()}, + {"name": "closed", "datatype": dbt.type_string()}, + {"name": "closed_accounts_payable", "datatype": dbt.type_string()}, + {"name": "closed_accounts_receivable", "datatype": dbt.type_string()}, + {"name": "closed_all", "datatype": dbt.type_string()}, + {"name": "closed_on", "datatype": dbt.type_timestamp()}, + {"name": "closed_payroll", "datatype": dbt.type_string()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "date_last_modified", "datatype": dbt.type_timestamp()}, + {"name": "ending", "datatype": dbt.type_timestamp()}, + {"name": "fiscal_calendar_id", "datatype": dbt.type_float()}, + {"name": "fivetran_index", "datatype": dbt.type_string()}, + {"name": "full_name", "datatype": dbt.type_string()}, + {"name": "is_adjustment", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "locked_accounts_payable", "datatype": dbt.type_string()}, + {"name": "locked_accounts_receivable", "datatype": dbt.type_string()}, + {"name": "locked_all", "datatype": dbt.type_string()}, + {"name": "locked_payroll", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "parent_id", "datatype": dbt.type_float()}, + {"name": "quarter", "datatype": dbt.type_string()}, + {"name": "starting", "datatype": dbt.type_timestamp()}, + {"name": "year_0", "datatype": dbt.type_string()}, + {"name": "year_id", "datatype": dbt.type_float()} ] %} {{ return(columns) }} @@ -39,25 +39,25 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "alllocked", "datatype": dbt_utils.type_string()}, - {"name": "allownonglchanges", "datatype": dbt_utils.type_string()}, - {"name": "aplocked", "datatype": dbt_utils.type_string()}, - {"name": "arlocked", "datatype": dbt_utils.type_string()}, - {"name": "closed", "datatype": dbt_utils.type_string()}, - {"name": "closedondate", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "enddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "isadjust", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "isposting", "datatype": dbt_utils.type_string()}, - {"name": "isquarter", "datatype": dbt_utils.type_string()}, - {"name": "isyear", "datatype": dbt_utils.type_string()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "parent", "datatype": dbt_utils.type_int()}, - {"name": "periodname", "datatype": dbt_utils.type_string()}, - {"name": "startdate", "datatype": dbt_utils.type_timestamp()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "alllocked", "datatype": dbt.type_string()}, + {"name": "allownonglchanges", "datatype": dbt.type_string()}, + {"name": "aplocked", "datatype": dbt.type_string()}, + {"name": "arlocked", "datatype": dbt.type_string()}, + {"name": "closed", "datatype": dbt.type_string()}, + {"name": "closedondate", "datatype": dbt.type_timestamp()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "enddate", "datatype": dbt.type_timestamp()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "isadjust", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "isposting", "datatype": dbt.type_string()}, + {"name": "isquarter", "datatype": dbt.type_string()}, + {"name": "isyear", "datatype": dbt.type_string()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "parent", "datatype": dbt.type_int()}, + {"name": "periodname", "datatype": dbt.type_string()}, + {"name": "startdate", "datatype": dbt.type_timestamp()} ] %} {{ return(columns) }} diff --git a/macros/get_accountingbooksubsidiaries_columns.sql b/macros/get_accountingbooksubsidiaries_columns.sql index e4c4ca7..abed712 100644 --- a/macros/get_accountingbooksubsidiaries_columns.sql +++ b/macros/get_accountingbooksubsidiaries_columns.sql @@ -2,12 +2,12 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_id", "datatype": dbt_utils.type_string()}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "accountingbook", "datatype": dbt_utils.type_int()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "status", "datatype": dbt_utils.type_string()}, - {"name": "subsidiary", "datatype": dbt_utils.type_int()} + {"name": "_fivetran_id", "datatype": dbt.type_string()}, + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "accountingbook", "datatype": dbt.type_int()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "status", "datatype": dbt.type_string()}, + {"name": "subsidiary", "datatype": dbt.type_int()} ] %} {{ return(columns) }} diff --git a/macros/get_accountingperiodfiscalcalendars_columns.sql b/macros/get_accountingperiodfiscalcalendars_columns.sql index a10f36b..2692a20 100644 --- a/macros/get_accountingperiodfiscalcalendars_columns.sql +++ b/macros/get_accountingperiodfiscalcalendars_columns.sql @@ -2,12 +2,12 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_id", "datatype": dbt_utils.type_string()}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "accountingperiod", "datatype": dbt_utils.type_int()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "fiscalcalendar", "datatype": dbt_utils.type_int()}, - {"name": "parent", "datatype": dbt_utils.type_int()} + {"name": "_fivetran_id", "datatype": dbt.type_string()}, + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "accountingperiod", "datatype": dbt.type_int()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "fiscalcalendar", "datatype": dbt.type_int()}, + {"name": "parent", "datatype": dbt.type_int()} ] %} {{ return(columns) }} diff --git a/macros/get_accounts_columns.sql b/macros/get_accounts_columns.sql index eb8aaf7..2f8f0f5 100644 --- a/macros/get_accounts_columns.sql +++ b/macros/get_accounts_columns.sql @@ -2,14 +2,14 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "account_id", "datatype": dbt_utils.type_float()}, - {"name": "accountnumber", "datatype": dbt_utils.type_string()}, - {"name": "general_rate_type", "datatype": dbt_utils.type_string()}, - {"name": "is_balancesheet", "datatype": dbt_utils.type_string()}, - {"name": "is_leftside", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "parent_id", "datatype": dbt_utils.type_float()}, - {"name": "type_name", "datatype": dbt_utils.type_string()} + {"name": "account_id", "datatype": dbt.type_float()}, + {"name": "accountnumber", "datatype": dbt.type_string()}, + {"name": "general_rate_type", "datatype": dbt.type_string()}, + {"name": "is_balancesheet", "datatype": dbt.type_string()}, + {"name": "is_leftside", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "parent_id", "datatype": dbt.type_float()}, + {"name": "type_name", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }} @@ -23,24 +23,24 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "parent", "datatype": dbt_utils.type_int()}, - {"name": "acctnumber", "datatype": dbt_utils.type_string()}, - {"name": "accttype", "datatype": dbt_utils.type_string()}, - {"name": "fullname", "datatype": dbt_utils.type_string()}, - {"name": "description", "datatype": dbt_utils.type_string()}, - {"name": "deferralacct", "datatype": dbt_utils.type_int()}, - {"name": "cashflowrate", "datatype": dbt_utils.type_string()}, - {"name": "generalrate", "datatype": dbt_utils.type_string()}, - {"name": "currency", "datatype": dbt_utils.type_int()}, - {"name": "class", "datatype": dbt_utils.type_int()}, - {"name": "department", "datatype": dbt_utils.type_int()}, - {"name": "location", "datatype": dbt_utils.type_int()}, - {"name": "includechildren", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "issummary", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "parent", "datatype": dbt.type_int()}, + {"name": "acctnumber", "datatype": dbt.type_string()}, + {"name": "accttype", "datatype": dbt.type_string()}, + {"name": "fullname", "datatype": dbt.type_string()}, + {"name": "description", "datatype": dbt.type_string()}, + {"name": "deferralacct", "datatype": dbt.type_int()}, + {"name": "cashflowrate", "datatype": dbt.type_string()}, + {"name": "generalrate", "datatype": dbt.type_string()}, + {"name": "currency", "datatype": dbt.type_int()}, + {"name": "class", "datatype": dbt.type_int()}, + {"name": "department", "datatype": dbt.type_int()}, + {"name": "location", "datatype": dbt.type_int()}, + {"name": "includechildren", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "issummary", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }} diff --git a/macros/get_accounttype_columns.sql b/macros/get_accounttype_columns.sql index f879e75..6a9d23f 100644 --- a/macros/get_accounttype_columns.sql +++ b/macros/get_accounttype_columns.sql @@ -2,19 +2,19 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "balancesheet", "datatype": dbt_utils.type_string()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "defaultcashflowratetype", "datatype": dbt_utils.type_string()}, - {"name": "defaultgeneralratetype", "datatype": dbt_utils.type_string()}, - {"name": "eliminationalgo", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_string()}, - {"name": "includeinrevaldefault", "datatype": dbt_utils.type_string()}, - {"name": "internalid", "datatype": dbt_utils.type_int()}, - {"name": "left", "datatype": dbt_utils.type_string(), "quote": True}, - {"name": "longname", "datatype": dbt_utils.type_string()}, - {"name": "seqnum", "datatype": dbt_utils.type_int()}, - {"name": "usercanchangerevaloption", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "balancesheet", "datatype": dbt.type_string()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "defaultcashflowratetype", "datatype": dbt.type_string()}, + {"name": "defaultgeneralratetype", "datatype": dbt.type_string()}, + {"name": "eliminationalgo", "datatype": dbt.type_string()}, + {"name": "id", "datatype": dbt.type_string()}, + {"name": "includeinrevaldefault", "datatype": dbt.type_string()}, + {"name": "internalid", "datatype": dbt.type_int()}, + {"name": "left", "datatype": dbt.type_string(), "quote": True}, + {"name": "longname", "datatype": dbt.type_string()}, + {"name": "seqnum", "datatype": dbt.type_int()}, + {"name": "usercanchangerevaloption", "datatype": dbt.type_string()} ] %} {{ return(columns) }} diff --git a/macros/get_classes_columns.sql b/macros/get_classes_columns.sql index 71b917b..970c2ff 100644 --- a/macros/get_classes_columns.sql +++ b/macros/get_classes_columns.sql @@ -2,8 +2,8 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "class_id", "datatype": dbt_utils.type_float()}, - {"name": "full_name", "datatype": dbt_utils.type_string()} + {"name": "class_id", "datatype": dbt.type_float()}, + {"name": "full_name", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }} @@ -16,12 +16,12 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "fullname", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "fullname", "datatype": dbt.type_string()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }} diff --git a/macros/get_consolidated_exchange_rates_columns.sql b/macros/get_consolidated_exchange_rates_columns.sql index eb27743..720cdf4 100644 --- a/macros/get_consolidated_exchange_rates_columns.sql +++ b/macros/get_consolidated_exchange_rates_columns.sql @@ -2,19 +2,19 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "accounting_book_id", "datatype": dbt_utils.type_float()}, - {"name": "accounting_period_id", "datatype": dbt_utils.type_float()}, - {"name": "average_budget_rate", "datatype": dbt_utils.type_float()}, - {"name": "average_rate", "datatype": dbt_utils.type_float()}, - {"name": "consolidated_exchange_rate_id", "datatype": dbt_utils.type_float()}, - {"name": "current_budget_rate", "datatype": dbt_utils.type_float()}, - {"name": "current_rate", "datatype": dbt_utils.type_float()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "from_subsidiary_id", "datatype": dbt_utils.type_float()}, - {"name": "historical_budget_rate", "datatype": dbt_utils.type_float()}, - {"name": "historical_rate", "datatype": dbt_utils.type_float()}, - {"name": "to_subsidiary_id", "datatype": dbt_utils.type_float()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "accounting_book_id", "datatype": dbt.type_float()}, + {"name": "accounting_period_id", "datatype": dbt.type_float()}, + {"name": "average_budget_rate", "datatype": dbt.type_float()}, + {"name": "average_rate", "datatype": dbt.type_float()}, + {"name": "consolidated_exchange_rate_id", "datatype": dbt.type_float()}, + {"name": "current_budget_rate", "datatype": dbt.type_float()}, + {"name": "current_rate", "datatype": dbt.type_float()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "from_subsidiary_id", "datatype": dbt.type_float()}, + {"name": "historical_budget_rate", "datatype": dbt.type_float()}, + {"name": "historical_rate", "datatype": dbt.type_float()}, + {"name": "to_subsidiary_id", "datatype": dbt.type_float()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }} @@ -27,16 +27,16 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "averagerate", "datatype": dbt_utils.type_float()}, - {"name": "currentrate", "datatype": dbt_utils.type_float()}, - {"name": "fromcurrency", "datatype": dbt_utils.type_int()}, - {"name": "fromsubsidiary", "datatype": dbt_utils.type_int()}, - {"name": "historicalrate", "datatype": dbt_utils.type_float()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "postingperiod", "datatype": dbt_utils.type_int()}, - {"name": "tocurrency", "datatype": dbt_utils.type_int()}, - {"name": "tosubsidiary", "datatype": dbt_utils.type_int()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "averagerate", "datatype": dbt.type_float()}, + {"name": "currentrate", "datatype": dbt.type_float()}, + {"name": "fromcurrency", "datatype": dbt.type_int()}, + {"name": "fromsubsidiary", "datatype": dbt.type_int()}, + {"name": "historicalrate", "datatype": dbt.type_float()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "postingperiod", "datatype": dbt.type_int()}, + {"name": "tocurrency", "datatype": dbt.type_int()}, + {"name": "tosubsidiary", "datatype": dbt.type_int()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }} diff --git a/macros/get_currencies_columns.sql b/macros/get_currencies_columns.sql index 87f6558..cc14b1c 100644 --- a/macros/get_currencies_columns.sql +++ b/macros/get_currencies_columns.sql @@ -2,15 +2,15 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "currency_extid", "datatype": dbt_utils.type_string()}, - {"name": "currency_id", "datatype": dbt_utils.type_float()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_last_modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "is_inactive", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "precision_0", "datatype": dbt_utils.type_float()}, - {"name": "symbol", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "currency_extid", "datatype": dbt.type_string()}, + {"name": "currency_id", "datatype": dbt.type_float()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "date_last_modified", "datatype": dbt.type_timestamp()}, + {"name": "is_inactive", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "precision_0", "datatype": dbt.type_float()}, + {"name": "symbol", "datatype": dbt.type_string()} ] %} {{ return(columns) }} @@ -21,22 +21,22 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "currencyprecision", "datatype": dbt_utils.type_int()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "displaysymbol", "datatype": dbt_utils.type_string()}, - {"name": "exchangerate", "datatype": dbt_utils.type_float()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "fxrateupdatetimezone", "datatype": dbt_utils.type_int()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "includeinfxrateupdates", "datatype": dbt_utils.type_string()}, - {"name": "isbasecurrency", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "overridecurrencyformat", "datatype": dbt_utils.type_string()}, - {"name": "symbol", "datatype": dbt_utils.type_string()}, - {"name": "symbolplacement", "datatype": dbt_utils.type_int()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "currencyprecision", "datatype": dbt.type_int()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "displaysymbol", "datatype": dbt.type_string()}, + {"name": "exchangerate", "datatype": dbt.type_float()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "fxrateupdatetimezone", "datatype": dbt.type_int()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "includeinfxrateupdates", "datatype": dbt.type_string()}, + {"name": "isbasecurrency", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "overridecurrencyformat", "datatype": dbt.type_string()}, + {"name": "symbol", "datatype": dbt.type_string()}, + {"name": "symbolplacement", "datatype": dbt.type_int()} ] %} {{ return(columns) }} diff --git a/macros/get_customers_columns.sql b/macros/get_customers_columns.sql index e8985d3..a8f2542 100644 --- a/macros/get_customers_columns.sql +++ b/macros/get_customers_columns.sql @@ -2,14 +2,14 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "city", "datatype": dbt_utils.type_string()}, - {"name": "companyname", "datatype": dbt_utils.type_string()}, - {"name": "country", "datatype": dbt_utils.type_string()}, - {"name": "customer_extid", "datatype": dbt_utils.type_string()}, - {"name": "customer_id", "datatype": dbt_utils.type_float()}, - {"name": "date_first_order", "datatype": dbt_utils.type_timestamp()}, - {"name": "state", "datatype": dbt_utils.type_string()}, - {"name": "zipcode", "datatype": dbt_utils.type_string()} + {"name": "city", "datatype": dbt.type_string()}, + {"name": "companyname", "datatype": dbt.type_string()}, + {"name": "country", "datatype": dbt.type_string()}, + {"name": "customer_extid", "datatype": dbt.type_string()}, + {"name": "customer_id", "datatype": dbt.type_float()}, + {"name": "date_first_order", "datatype": dbt.type_timestamp()}, + {"name": "state", "datatype": dbt.type_string()}, + {"name": "zipcode", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }} @@ -22,21 +22,21 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "entityid", "datatype": dbt_utils.type_string()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "parent", "datatype": dbt_utils.type_int()}, - {"name": "isperson", "datatype": dbt_utils.type_string()}, - {"name": "companyname", "datatype": dbt_utils.type_string()}, - {"name": "firstname", "datatype": dbt_utils.type_string()}, - {"name": "lastname", "datatype": dbt_utils.type_string()}, - {"name": "email", "datatype": dbt_utils.type_string()}, - {"name": "phone", "datatype": dbt_utils.type_string()}, - {"name": "defaultbillingaddress", "datatype": dbt_utils.type_int()}, - {"name": "defaultshippingaddress", "datatype": dbt_utils.type_int()}, - {"name": "receivablesaccount", "datatype": dbt_utils.type_int()}, - {"name": "currency", "datatype": dbt_utils.type_int()}, - {"name": "firstorderdate", "datatype": dbt_utils.type_timestamp()} + {"name": "id", "datatype": dbt.type_int()}, + {"name": "entityid", "datatype": dbt.type_string()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "parent", "datatype": dbt.type_int()}, + {"name": "isperson", "datatype": dbt.type_string()}, + {"name": "companyname", "datatype": dbt.type_string()}, + {"name": "firstname", "datatype": dbt.type_string()}, + {"name": "lastname", "datatype": dbt.type_string()}, + {"name": "email", "datatype": dbt.type_string()}, + {"name": "phone", "datatype": dbt.type_string()}, + {"name": "defaultbillingaddress", "datatype": dbt.type_int()}, + {"name": "defaultshippingaddress", "datatype": dbt.type_int()}, + {"name": "receivablesaccount", "datatype": dbt.type_int()}, + {"name": "currency", "datatype": dbt.type_int()}, + {"name": "firstorderdate", "datatype": dbt.type_timestamp()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }} diff --git a/macros/get_departments_columns.sql b/macros/get_departments_columns.sql index 0d734d8..5242f87 100644 --- a/macros/get_departments_columns.sql +++ b/macros/get_departments_columns.sql @@ -2,9 +2,9 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "department_id", "datatype": dbt_utils.type_float()}, - {"name": "full_name", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()} + {"name": "department_id", "datatype": dbt.type_float()}, + {"name": "full_name", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }} @@ -17,13 +17,13 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "fullname", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "parent", "datatype": dbt_utils.type_int()}, - {"name": "subsidiary", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "fullname", "datatype": dbt.type_string()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "parent", "datatype": dbt.type_int()}, + {"name": "subsidiary", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }} diff --git a/macros/get_entity_columns.sql b/macros/get_entity_columns.sql index 5ac78fc..83ea757 100644 --- a/macros/get_entity_columns.sql +++ b/macros/get_entity_columns.sql @@ -2,44 +2,44 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "altemail", "datatype": dbt_utils.type_string()}, - {"name": "altname", "datatype": dbt_utils.type_string()}, - {"name": "altphone", "datatype": dbt_utils.type_string()}, - {"name": "comments", "datatype": dbt_utils.type_string()}, - {"name": "contact", "datatype": dbt_utils.type_int()}, - {"name": "customer", "datatype": dbt_utils.type_int()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "datecreated", "datatype": dbt_utils.type_timestamp()}, - {"name": "email", "datatype": dbt_utils.type_string()}, - {"name": "employee", "datatype": dbt_utils.type_int()}, - {"name": "entityid", "datatype": dbt_utils.type_string()}, - {"name": "entitynumber", "datatype": dbt_utils.type_int()}, - {"name": "entitytitle", "datatype": dbt_utils.type_string()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "fax", "datatype": dbt_utils.type_string()}, - {"name": "firstname", "datatype": dbt_utils.type_string()}, - {"name": "genericresource", "datatype": dbt_utils.type_int()}, - {"name": "homephone", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "isperson", "datatype": dbt_utils.type_string()}, - {"name": "laborcost", "datatype": dbt_utils.type_float()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "lastname", "datatype": dbt_utils.type_string()}, - {"name": "middlename", "datatype": dbt_utils.type_string()}, - {"name": "mobilephone", "datatype": dbt_utils.type_string()}, - {"name": "othername", "datatype": dbt_utils.type_int()}, - {"name": "parent", "datatype": dbt_utils.type_int()}, - {"name": "partner", "datatype": dbt_utils.type_int()}, - {"name": "phone", "datatype": dbt_utils.type_string()}, - {"name": "project", "datatype": dbt_utils.type_int()}, - {"name": "projecttemplate", "datatype": dbt_utils.type_int()}, - {"name": "salutation", "datatype": dbt_utils.type_string()}, - {"name": "title", "datatype": dbt_utils.type_string()}, - {"name": "toplevelparent", "datatype": dbt_utils.type_int()}, - {"name": "type", "datatype": dbt_utils.type_string()}, - {"name": "vendor", "datatype": dbt_utils.type_int()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "altemail", "datatype": dbt.type_string()}, + {"name": "altname", "datatype": dbt.type_string()}, + {"name": "altphone", "datatype": dbt.type_string()}, + {"name": "comments", "datatype": dbt.type_string()}, + {"name": "contact", "datatype": dbt.type_int()}, + {"name": "customer", "datatype": dbt.type_int()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "datecreated", "datatype": dbt.type_timestamp()}, + {"name": "email", "datatype": dbt.type_string()}, + {"name": "employee", "datatype": dbt.type_int()}, + {"name": "entityid", "datatype": dbt.type_string()}, + {"name": "entitynumber", "datatype": dbt.type_int()}, + {"name": "entitytitle", "datatype": dbt.type_string()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "fax", "datatype": dbt.type_string()}, + {"name": "firstname", "datatype": dbt.type_string()}, + {"name": "genericresource", "datatype": dbt.type_int()}, + {"name": "homephone", "datatype": dbt.type_string()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "isperson", "datatype": dbt.type_string()}, + {"name": "laborcost", "datatype": dbt.type_float()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "lastname", "datatype": dbt.type_string()}, + {"name": "middlename", "datatype": dbt.type_string()}, + {"name": "mobilephone", "datatype": dbt.type_string()}, + {"name": "othername", "datatype": dbt.type_int()}, + {"name": "parent", "datatype": dbt.type_int()}, + {"name": "partner", "datatype": dbt.type_int()}, + {"name": "phone", "datatype": dbt.type_string()}, + {"name": "project", "datatype": dbt.type_int()}, + {"name": "projecttemplate", "datatype": dbt.type_int()}, + {"name": "salutation", "datatype": dbt.type_string()}, + {"name": "title", "datatype": dbt.type_string()}, + {"name": "toplevelparent", "datatype": dbt.type_int()}, + {"name": "type", "datatype": dbt.type_string()}, + {"name": "vendor", "datatype": dbt.type_int()} ] %} {{ return(columns) }} diff --git a/macros/get_entityaddress_columns.sql b/macros/get_entityaddress_columns.sql index c418606..5903bd9 100644 --- a/macros/get_entityaddress_columns.sql +++ b/macros/get_entityaddress_columns.sql @@ -2,24 +2,24 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "addr1", "datatype": dbt_utils.type_string()}, - {"name": "addr2", "datatype": dbt_utils.type_string()}, - {"name": "addr3", "datatype": dbt_utils.type_string()}, - {"name": "addressee", "datatype": dbt_utils.type_string()}, - {"name": "addrphone", "datatype": dbt_utils.type_string()}, - {"name": "addrtext", "datatype": dbt_utils.type_string()}, - {"name": "attention", "datatype": dbt_utils.type_string()}, - {"name": "city", "datatype": dbt_utils.type_string()}, - {"name": "country", "datatype": dbt_utils.type_string()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "dropdownstate", "datatype": dbt_utils.type_string()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "nkey", "datatype": dbt_utils.type_int()}, - {"name": "override", "datatype": dbt_utils.type_string()}, - {"name": "recordowner", "datatype": dbt_utils.type_int()}, - {"name": "state", "datatype": dbt_utils.type_string()}, - {"name": "zip", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "addr1", "datatype": dbt.type_string()}, + {"name": "addr2", "datatype": dbt.type_string()}, + {"name": "addr3", "datatype": dbt.type_string()}, + {"name": "addressee", "datatype": dbt.type_string()}, + {"name": "addrphone", "datatype": dbt.type_string()}, + {"name": "addrtext", "datatype": dbt.type_string()}, + {"name": "attention", "datatype": dbt.type_string()}, + {"name": "city", "datatype": dbt.type_string()}, + {"name": "country", "datatype": dbt.type_string()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "dropdownstate", "datatype": dbt.type_string()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "nkey", "datatype": dbt.type_int()}, + {"name": "override", "datatype": dbt.type_string()}, + {"name": "recordowner", "datatype": dbt.type_int()}, + {"name": "state", "datatype": dbt.type_string()}, + {"name": "zip", "datatype": dbt.type_string()} ] %} {{ return(columns) }} diff --git a/macros/get_expense_accounts_columns.sql b/macros/get_expense_accounts_columns.sql index 77b55d5..7354ad4 100644 --- a/macros/get_expense_accounts_columns.sql +++ b/macros/get_expense_accounts_columns.sql @@ -2,22 +2,22 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "account_number", "datatype": dbt_utils.type_string()}, - {"name": "comments", "datatype": dbt_utils.type_string()}, - {"name": "current_balance", "datatype": dbt_utils.type_float()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_last_modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "desription", "datatype": dbt_utils.type_string()}, - {"name": "expense_account_extid", "datatype": dbt_utils.type_string()}, - {"name": "expense_account_id", "datatype": dbt_utils.type_float()}, - {"name": "full_name", "datatype": dbt_utils.type_string()}, - {"name": "is_including_child_subs", "datatype": dbt_utils.type_string()}, - {"name": "is_summary", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "legal_name", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "parent_id", "datatype": dbt_utils.type_float()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "account_number", "datatype": dbt.type_string()}, + {"name": "comments", "datatype": dbt.type_string()}, + {"name": "current_balance", "datatype": dbt.type_float()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "date_last_modified", "datatype": dbt.type_timestamp()}, + {"name": "desription", "datatype": dbt.type_string()}, + {"name": "expense_account_extid", "datatype": dbt.type_string()}, + {"name": "expense_account_id", "datatype": dbt.type_float()}, + {"name": "full_name", "datatype": dbt.type_string()}, + {"name": "is_including_child_subs", "datatype": dbt.type_string()}, + {"name": "is_summary", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "legal_name", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "parent_id", "datatype": dbt.type_float()} ] %} {{ return(columns) }} diff --git a/macros/get_income_accounts_columns.sql b/macros/get_income_accounts_columns.sql index 5a1925e..d4bb248 100644 --- a/macros/get_income_accounts_columns.sql +++ b/macros/get_income_accounts_columns.sql @@ -2,22 +2,22 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "account_number", "datatype": dbt_utils.type_string()}, - {"name": "comments", "datatype": dbt_utils.type_string()}, - {"name": "current_balance", "datatype": dbt_utils.type_float()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_last_modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "desription", "datatype": dbt_utils.type_string()}, - {"name": "full_name", "datatype": dbt_utils.type_string()}, - {"name": "income_account_extid", "datatype": dbt_utils.type_string()}, - {"name": "income_account_id", "datatype": dbt_utils.type_float()}, - {"name": "is_including_child_subs", "datatype": dbt_utils.type_string()}, - {"name": "is_summary", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "legal_name", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "parent_id", "datatype": dbt_utils.type_float()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "account_number", "datatype": dbt.type_string()}, + {"name": "comments", "datatype": dbt.type_string()}, + {"name": "current_balance", "datatype": dbt.type_float()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "date_last_modified", "datatype": dbt.type_timestamp()}, + {"name": "desription", "datatype": dbt.type_string()}, + {"name": "full_name", "datatype": dbt.type_string()}, + {"name": "income_account_extid", "datatype": dbt.type_string()}, + {"name": "income_account_id", "datatype": dbt.type_float()}, + {"name": "is_including_child_subs", "datatype": dbt.type_string()}, + {"name": "is_summary", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "legal_name", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "parent_id", "datatype": dbt.type_float()} ] %} {{ return(columns) }} diff --git a/macros/get_items_columns.sql b/macros/get_items_columns.sql index 7526547..4a31a08 100644 --- a/macros/get_items_columns.sql +++ b/macros/get_items_columns.sql @@ -2,185 +2,185 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "allow_drop_ship", "datatype": dbt_utils.type_string()}, - {"name": "alt_demand_source_item_id", "datatype": dbt_utils.type_float()}, - {"name": "asset_account_id", "datatype": dbt_utils.type_float()}, - {"name": "atp_lead_time", "datatype": dbt_utils.type_float()}, - {"name": "atp_method", "datatype": dbt_utils.type_string()}, - {"name": "available_to_partners", "datatype": dbt_utils.type_string()}, - {"name": "avatax_taxcode", "datatype": dbt_utils.type_string()}, - {"name": "averagecost", "datatype": dbt_utils.type_float()}, - {"name": "backward_consumption_days", "datatype": dbt_utils.type_float()}, - {"name": "build_sub_assemblies", "datatype": dbt_utils.type_string()}, - {"name": "class_id", "datatype": dbt_utils.type_float()}, - {"name": "code_of_supply_id", "datatype": dbt_utils.type_float()}, - {"name": "commodity_code", "datatype": dbt_utils.type_string()}, - {"name": "consumption_unit_id", "datatype": dbt_utils.type_float()}, - {"name": "cost_0", "datatype": dbt_utils.type_float()}, - {"name": "cost_category", "datatype": dbt_utils.type_string()}, - {"name": "cost_estimate_type", "datatype": dbt_utils.type_string()}, - {"name": "costing_method", "datatype": dbt_utils.type_string()}, - {"name": "country_of_manufacture", "datatype": dbt_utils.type_string()}, - {"name": "create_plan_on_event_type", "datatype": dbt_utils.type_string()}, - {"name": "created", "datatype": dbt_utils.type_timestamp()}, - {"name": "current_on_order_count", "datatype": dbt_utils.type_float()}, - {"name": "custreturn_variance_account_id", "datatype": dbt_utils.type_float()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_last_modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_of_last_transaction", "datatype": dbt_utils.type_timestamp()}, - {"name": "default_return_cost", "datatype": dbt_utils.type_float()}, - {"name": "deferred_expense_account_id", "datatype": dbt_utils.type_float()}, - {"name": "deferred_revenue_account_id", "datatype": dbt_utils.type_float()}, - {"name": "demand_source", "datatype": dbt_utils.type_string()}, - {"name": "demand_time_fence", "datatype": dbt_utils.type_float()}, - {"name": "department_id", "datatype": dbt_utils.type_float()}, - {"name": "deposit", "datatype": dbt_utils.type_string()}, - {"name": "displayname", "datatype": dbt_utils.type_string()}, - {"name": "distribution_category", "datatype": dbt_utils.type_string()}, - {"name": "distribution_network", "datatype": dbt_utils.type_string()}, - {"name": "dropship_expense_account_id", "datatype": dbt_utils.type_float()}, - {"name": "effective_bom_control_type", "datatype": dbt_utils.type_string()}, - {"name": "expense_account_id", "datatype": dbt_utils.type_float()}, - {"name": "featureddescription", "datatype": dbt_utils.type_string()}, - {"name": "featureditem", "datatype": dbt_utils.type_string()}, - {"name": "fixed_lot_size", "datatype": dbt_utils.type_float()}, - {"name": "forward_consumption_days", "datatype": dbt_utils.type_float()}, - {"name": "fraud_risk", "datatype": dbt_utils.type_string()}, - {"name": "full_name", "datatype": dbt_utils.type_string()}, - {"name": "fx_adjustment_account_id", "datatype": dbt_utils.type_float()}, - {"name": "gain_loss_account_id", "datatype": dbt_utils.type_float()}, - {"name": "handling_cost", "datatype": dbt_utils.type_float()}, - {"name": "hazmat", "datatype": dbt_utils.type_string()}, - {"name": "hazmat_hazard_class", "datatype": dbt_utils.type_string()}, - {"name": "hazmat_id", "datatype": dbt_utils.type_string()}, - {"name": "hazmat_item_units", "datatype": dbt_utils.type_string()}, - {"name": "hazmat_item_units_qty", "datatype": dbt_utils.type_float()}, - {"name": "hazmat_packing_group", "datatype": dbt_utils.type_string()}, - {"name": "hazmat_shipping_name", "datatype": dbt_utils.type_string()}, - {"name": "include_child_subsidiaries", "datatype": dbt_utils.type_string()}, - {"name": "income_account_id", "datatype": dbt_utils.type_float()}, - {"name": "interco_expense_account_id", "datatype": dbt_utils.type_float()}, - {"name": "interco_income_account_id", "datatype": dbt_utils.type_float()}, - {"name": "invt_count_classification", "datatype": dbt_utils.type_float()}, - {"name": "invt_count_interval", "datatype": dbt_utils.type_float()}, - {"name": "is_cont_rev_handling", "datatype": dbt_utils.type_string()}, - {"name": "is_enforce_min_qty_internally", "datatype": dbt_utils.type_string()}, - {"name": "is_hold_rev_rec", "datatype": dbt_utils.type_string()}, - {"name": "is_moss", "datatype": dbt_utils.type_string()}, - {"name": "is_phantom", "datatype": dbt_utils.type_string()}, - {"name": "is_special_order_item", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "isonline", "datatype": dbt_utils.type_string()}, - {"name": "istaxable", "datatype": dbt_utils.type_string()}, - {"name": "item_defined_cost", "datatype": dbt_utils.type_float()}, - {"name": "item_extid", "datatype": dbt_utils.type_string()}, - {"name": "item_id", "datatype": dbt_utils.type_float()}, - {"name": "item_image", "datatype": dbt_utils.type_float()}, - {"name": "item_revenue_category", "datatype": dbt_utils.type_string()}, - {"name": "item_term_id", "datatype": dbt_utils.type_float()}, - {"name": "last_cogs_correction", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_invt_count_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_purchase_price", "datatype": dbt_utils.type_float()}, - {"name": "location_id", "datatype": dbt_utils.type_float()}, - {"name": "lot_numbered_item", "datatype": dbt_utils.type_string()}, - {"name": "lot_sizing_method", "datatype": dbt_utils.type_string()}, - {"name": "manufacturer", "datatype": dbt_utils.type_string()}, - {"name": "manufacturing_charge_item", "datatype": dbt_utils.type_string()}, - {"name": "match_bill_to_receipt", "datatype": dbt_utils.type_string()}, - {"name": "matrix_type", "datatype": dbt_utils.type_string()}, - {"name": "maximum_quantity", "datatype": dbt_utils.type_float()}, - {"name": "minimum_quantity", "datatype": dbt_utils.type_float()}, - {"name": "modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "mpn", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "nature_of_transaction_codes_id", "datatype": dbt_utils.type_float()}, - {"name": "next_invt_count_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "ng_asset_type_id", "datatype": dbt_utils.type_float()}, - {"name": "ns_lead_time", "datatype": dbt_utils.type_float()}, - {"name": "offersupport", "datatype": dbt_utils.type_string()}, - {"name": "onspecial", "datatype": dbt_utils.type_string()}, - {"name": "overhead_type", "datatype": dbt_utils.type_string()}, - {"name": "parent_id", "datatype": dbt_utils.type_float()}, - {"name": "payment_method_id", "datatype": dbt_utils.type_float()}, - {"name": "periodic_lot_size_days", "datatype": dbt_utils.type_float()}, - {"name": "periodic_lot_size_type", "datatype": dbt_utils.type_string()}, - {"name": "pref_purchase_tax_id", "datatype": dbt_utils.type_float()}, - {"name": "pref_sale_tax_id", "datatype": dbt_utils.type_float()}, - {"name": "pref_stock_level", "datatype": dbt_utils.type_float()}, - {"name": "prices_include_tax", "datatype": dbt_utils.type_string()}, - {"name": "pricing_group_id", "datatype": dbt_utils.type_float()}, - {"name": "print_sub_items", "datatype": dbt_utils.type_string()}, - {"name": "prod_price_var_account_id", "datatype": dbt_utils.type_float()}, - {"name": "prod_qty_var_account_id", "datatype": dbt_utils.type_float()}, - {"name": "prompt_payment_discount_item", "datatype": dbt_utils.type_string()}, - {"name": "purchase_price_var_account_id", "datatype": dbt_utils.type_float()}, - {"name": "purchase_unit_id", "datatype": dbt_utils.type_float()}, - {"name": "purchasedescription", "datatype": dbt_utils.type_string()}, - {"name": "purchaseorderamount", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantity", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "quantityavailable", "datatype": dbt_utils.type_float()}, - {"name": "quantitybackordered", "datatype": dbt_utils.type_float()}, - {"name": "quantityonhand", "datatype": dbt_utils.type_float()}, - {"name": "receiptamount", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantity", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "reorder_multiple", "datatype": dbt_utils.type_float()}, - {"name": "reorderpoint", "datatype": dbt_utils.type_float()}, - {"name": "replenishment_method", "datatype": dbt_utils.type_string()}, - {"name": "resalable", "datatype": dbt_utils.type_string()}, - {"name": "reschedule_in_days", "datatype": dbt_utils.type_float()}, - {"name": "reschedule_out_days", "datatype": dbt_utils.type_float()}, - {"name": "rev_rec_forecast_rule_id", "datatype": dbt_utils.type_float()}, - {"name": "rev_rec_rule_id", "datatype": dbt_utils.type_float()}, - {"name": "revenue_allocation_group", "datatype": dbt_utils.type_string()}, - {"name": "round_up_as_component", "datatype": dbt_utils.type_string()}, - {"name": "safety_stock_days", "datatype": dbt_utils.type_float()}, - {"name": "safety_stock_level", "datatype": dbt_utils.type_float()}, - {"name": "sale_unit_id", "datatype": dbt_utils.type_float()}, - {"name": "salesdescription", "datatype": dbt_utils.type_string()}, - {"name": "salesforce_id", "datatype": dbt_utils.type_string()}, - {"name": "salesprice", "datatype": dbt_utils.type_string()}, - {"name": "scrap_account_id", "datatype": dbt_utils.type_float()}, - {"name": "serialized_item", "datatype": dbt_utils.type_string()}, - {"name": "shippingcost", "datatype": dbt_utils.type_float()}, - {"name": "special_work_order_item", "datatype": dbt_utils.type_string()}, - {"name": "specialsdescription", "datatype": dbt_utils.type_string()}, - {"name": "stock_unit_id", "datatype": dbt_utils.type_float()}, - {"name": "storedescription", "datatype": dbt_utils.type_string()}, - {"name": "storedetaileddescription", "datatype": dbt_utils.type_string()}, - {"name": "storedisplayname", "datatype": dbt_utils.type_string()}, - {"name": "subtype", "datatype": dbt_utils.type_string()}, - {"name": "supplementary_unit__abberviat", "datatype": dbt_utils.type_string()}, - {"name": "supplementary_unit_id", "datatype": dbt_utils.type_float()}, - {"name": "supply_time_fence", "datatype": dbt_utils.type_float()}, - {"name": "supply_type", "datatype": dbt_utils.type_string()}, - {"name": "tax_item_id", "datatype": dbt_utils.type_float()}, - {"name": "totalvalue", "datatype": dbt_utils.type_float()}, - {"name": "transferprice", "datatype": dbt_utils.type_float()}, - {"name": "type_name", "datatype": dbt_utils.type_string()}, - {"name": "type_of_goods_id", "datatype": dbt_utils.type_float()}, - {"name": "udf1", "datatype": dbt_utils.type_string()}, - {"name": "udf2", "datatype": dbt_utils.type_string()}, - {"name": "un_number", "datatype": dbt_utils.type_string()}, - {"name": "unbuild_variance_account_id", "datatype": dbt_utils.type_float()}, - {"name": "units_type_id", "datatype": dbt_utils.type_float()}, - {"name": "upc_code", "datatype": dbt_utils.type_string()}, - {"name": "use_component_yield", "datatype": dbt_utils.type_string()}, - {"name": "vendor_id", "datatype": dbt_utils.type_float()}, - {"name": "vendorname", "datatype": dbt_utils.type_string()}, - {"name": "vendreturn_variance_account_id", "datatype": dbt_utils.type_float()}, - {"name": "vsoe_deferral", "datatype": dbt_utils.type_string()}, - {"name": "vsoe_delivered", "datatype": dbt_utils.type_string()}, - {"name": "vsoe_discount", "datatype": dbt_utils.type_string()}, - {"name": "vsoe_price", "datatype": dbt_utils.type_float()}, - {"name": "weight", "datatype": dbt_utils.type_float()}, - {"name": "weight_in_user_defined_unit", "datatype": dbt_utils.type_float()}, - {"name": "weight_unit_index", "datatype": dbt_utils.type_float()}, - {"name": "wip_account_id", "datatype": dbt_utils.type_float()}, - {"name": "wip_cost_variance_account_id", "datatype": dbt_utils.type_float()}, - {"name": "work_order_lead_time", "datatype": dbt_utils.type_float()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "allow_drop_ship", "datatype": dbt.type_string()}, + {"name": "alt_demand_source_item_id", "datatype": dbt.type_float()}, + {"name": "asset_account_id", "datatype": dbt.type_float()}, + {"name": "atp_lead_time", "datatype": dbt.type_float()}, + {"name": "atp_method", "datatype": dbt.type_string()}, + {"name": "available_to_partners", "datatype": dbt.type_string()}, + {"name": "avatax_taxcode", "datatype": dbt.type_string()}, + {"name": "averagecost", "datatype": dbt.type_float()}, + {"name": "backward_consumption_days", "datatype": dbt.type_float()}, + {"name": "build_sub_assemblies", "datatype": dbt.type_string()}, + {"name": "class_id", "datatype": dbt.type_float()}, + {"name": "code_of_supply_id", "datatype": dbt.type_float()}, + {"name": "commodity_code", "datatype": dbt.type_string()}, + {"name": "consumption_unit_id", "datatype": dbt.type_float()}, + {"name": "cost_0", "datatype": dbt.type_float()}, + {"name": "cost_category", "datatype": dbt.type_string()}, + {"name": "cost_estimate_type", "datatype": dbt.type_string()}, + {"name": "costing_method", "datatype": dbt.type_string()}, + {"name": "country_of_manufacture", "datatype": dbt.type_string()}, + {"name": "create_plan_on_event_type", "datatype": dbt.type_string()}, + {"name": "created", "datatype": dbt.type_timestamp()}, + {"name": "current_on_order_count", "datatype": dbt.type_float()}, + {"name": "custreturn_variance_account_id", "datatype": dbt.type_float()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "date_last_modified", "datatype": dbt.type_timestamp()}, + {"name": "date_of_last_transaction", "datatype": dbt.type_timestamp()}, + {"name": "default_return_cost", "datatype": dbt.type_float()}, + {"name": "deferred_expense_account_id", "datatype": dbt.type_float()}, + {"name": "deferred_revenue_account_id", "datatype": dbt.type_float()}, + {"name": "demand_source", "datatype": dbt.type_string()}, + {"name": "demand_time_fence", "datatype": dbt.type_float()}, + {"name": "department_id", "datatype": dbt.type_float()}, + {"name": "deposit", "datatype": dbt.type_string()}, + {"name": "displayname", "datatype": dbt.type_string()}, + {"name": "distribution_category", "datatype": dbt.type_string()}, + {"name": "distribution_network", "datatype": dbt.type_string()}, + {"name": "dropship_expense_account_id", "datatype": dbt.type_float()}, + {"name": "effective_bom_control_type", "datatype": dbt.type_string()}, + {"name": "expense_account_id", "datatype": dbt.type_float()}, + {"name": "featureddescription", "datatype": dbt.type_string()}, + {"name": "featureditem", "datatype": dbt.type_string()}, + {"name": "fixed_lot_size", "datatype": dbt.type_float()}, + {"name": "forward_consumption_days", "datatype": dbt.type_float()}, + {"name": "fraud_risk", "datatype": dbt.type_string()}, + {"name": "full_name", "datatype": dbt.type_string()}, + {"name": "fx_adjustment_account_id", "datatype": dbt.type_float()}, + {"name": "gain_loss_account_id", "datatype": dbt.type_float()}, + {"name": "handling_cost", "datatype": dbt.type_float()}, + {"name": "hazmat", "datatype": dbt.type_string()}, + {"name": "hazmat_hazard_class", "datatype": dbt.type_string()}, + {"name": "hazmat_id", "datatype": dbt.type_string()}, + {"name": "hazmat_item_units", "datatype": dbt.type_string()}, + {"name": "hazmat_item_units_qty", "datatype": dbt.type_float()}, + {"name": "hazmat_packing_group", "datatype": dbt.type_string()}, + {"name": "hazmat_shipping_name", "datatype": dbt.type_string()}, + {"name": "include_child_subsidiaries", "datatype": dbt.type_string()}, + {"name": "income_account_id", "datatype": dbt.type_float()}, + {"name": "interco_expense_account_id", "datatype": dbt.type_float()}, + {"name": "interco_income_account_id", "datatype": dbt.type_float()}, + {"name": "invt_count_classification", "datatype": dbt.type_float()}, + {"name": "invt_count_interval", "datatype": dbt.type_float()}, + {"name": "is_cont_rev_handling", "datatype": dbt.type_string()}, + {"name": "is_enforce_min_qty_internally", "datatype": dbt.type_string()}, + {"name": "is_hold_rev_rec", "datatype": dbt.type_string()}, + {"name": "is_moss", "datatype": dbt.type_string()}, + {"name": "is_phantom", "datatype": dbt.type_string()}, + {"name": "is_special_order_item", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "isonline", "datatype": dbt.type_string()}, + {"name": "istaxable", "datatype": dbt.type_string()}, + {"name": "item_defined_cost", "datatype": dbt.type_float()}, + {"name": "item_extid", "datatype": dbt.type_string()}, + {"name": "item_id", "datatype": dbt.type_float()}, + {"name": "item_image", "datatype": dbt.type_float()}, + {"name": "item_revenue_category", "datatype": dbt.type_string()}, + {"name": "item_term_id", "datatype": dbt.type_float()}, + {"name": "last_cogs_correction", "datatype": dbt.type_timestamp()}, + {"name": "last_invt_count_date", "datatype": dbt.type_timestamp()}, + {"name": "last_purchase_price", "datatype": dbt.type_float()}, + {"name": "location_id", "datatype": dbt.type_float()}, + {"name": "lot_numbered_item", "datatype": dbt.type_string()}, + {"name": "lot_sizing_method", "datatype": dbt.type_string()}, + {"name": "manufacturer", "datatype": dbt.type_string()}, + {"name": "manufacturing_charge_item", "datatype": dbt.type_string()}, + {"name": "match_bill_to_receipt", "datatype": dbt.type_string()}, + {"name": "matrix_type", "datatype": dbt.type_string()}, + {"name": "maximum_quantity", "datatype": dbt.type_float()}, + {"name": "minimum_quantity", "datatype": dbt.type_float()}, + {"name": "modified", "datatype": dbt.type_timestamp()}, + {"name": "mpn", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "nature_of_transaction_codes_id", "datatype": dbt.type_float()}, + {"name": "next_invt_count_date", "datatype": dbt.type_timestamp()}, + {"name": "ng_asset_type_id", "datatype": dbt.type_float()}, + {"name": "ns_lead_time", "datatype": dbt.type_float()}, + {"name": "offersupport", "datatype": dbt.type_string()}, + {"name": "onspecial", "datatype": dbt.type_string()}, + {"name": "overhead_type", "datatype": dbt.type_string()}, + {"name": "parent_id", "datatype": dbt.type_float()}, + {"name": "payment_method_id", "datatype": dbt.type_float()}, + {"name": "periodic_lot_size_days", "datatype": dbt.type_float()}, + {"name": "periodic_lot_size_type", "datatype": dbt.type_string()}, + {"name": "pref_purchase_tax_id", "datatype": dbt.type_float()}, + {"name": "pref_sale_tax_id", "datatype": dbt.type_float()}, + {"name": "pref_stock_level", "datatype": dbt.type_float()}, + {"name": "prices_include_tax", "datatype": dbt.type_string()}, + {"name": "pricing_group_id", "datatype": dbt.type_float()}, + {"name": "print_sub_items", "datatype": dbt.type_string()}, + {"name": "prod_price_var_account_id", "datatype": dbt.type_float()}, + {"name": "prod_qty_var_account_id", "datatype": dbt.type_float()}, + {"name": "prompt_payment_discount_item", "datatype": dbt.type_string()}, + {"name": "purchase_price_var_account_id", "datatype": dbt.type_float()}, + {"name": "purchase_unit_id", "datatype": dbt.type_float()}, + {"name": "purchasedescription", "datatype": dbt.type_string()}, + {"name": "purchaseorderamount", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantity", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantitydiff", "datatype": dbt.type_float()}, + {"name": "quantityavailable", "datatype": dbt.type_float()}, + {"name": "quantitybackordered", "datatype": dbt.type_float()}, + {"name": "quantityonhand", "datatype": dbt.type_float()}, + {"name": "receiptamount", "datatype": dbt.type_float()}, + {"name": "receiptquantity", "datatype": dbt.type_float()}, + {"name": "receiptquantitydiff", "datatype": dbt.type_float()}, + {"name": "reorder_multiple", "datatype": dbt.type_float()}, + {"name": "reorderpoint", "datatype": dbt.type_float()}, + {"name": "replenishment_method", "datatype": dbt.type_string()}, + {"name": "resalable", "datatype": dbt.type_string()}, + {"name": "reschedule_in_days", "datatype": dbt.type_float()}, + {"name": "reschedule_out_days", "datatype": dbt.type_float()}, + {"name": "rev_rec_forecast_rule_id", "datatype": dbt.type_float()}, + {"name": "rev_rec_rule_id", "datatype": dbt.type_float()}, + {"name": "revenue_allocation_group", "datatype": dbt.type_string()}, + {"name": "round_up_as_component", "datatype": dbt.type_string()}, + {"name": "safety_stock_days", "datatype": dbt.type_float()}, + {"name": "safety_stock_level", "datatype": dbt.type_float()}, + {"name": "sale_unit_id", "datatype": dbt.type_float()}, + {"name": "salesdescription", "datatype": dbt.type_string()}, + {"name": "salesforce_id", "datatype": dbt.type_string()}, + {"name": "salesprice", "datatype": dbt.type_string()}, + {"name": "scrap_account_id", "datatype": dbt.type_float()}, + {"name": "serialized_item", "datatype": dbt.type_string()}, + {"name": "shippingcost", "datatype": dbt.type_float()}, + {"name": "special_work_order_item", "datatype": dbt.type_string()}, + {"name": "specialsdescription", "datatype": dbt.type_string()}, + {"name": "stock_unit_id", "datatype": dbt.type_float()}, + {"name": "storedescription", "datatype": dbt.type_string()}, + {"name": "storedetaileddescription", "datatype": dbt.type_string()}, + {"name": "storedisplayname", "datatype": dbt.type_string()}, + {"name": "subtype", "datatype": dbt.type_string()}, + {"name": "supplementary_unit__abberviat", "datatype": dbt.type_string()}, + {"name": "supplementary_unit_id", "datatype": dbt.type_float()}, + {"name": "supply_time_fence", "datatype": dbt.type_float()}, + {"name": "supply_type", "datatype": dbt.type_string()}, + {"name": "tax_item_id", "datatype": dbt.type_float()}, + {"name": "totalvalue", "datatype": dbt.type_float()}, + {"name": "transferprice", "datatype": dbt.type_float()}, + {"name": "type_name", "datatype": dbt.type_string()}, + {"name": "type_of_goods_id", "datatype": dbt.type_float()}, + {"name": "udf1", "datatype": dbt.type_string()}, + {"name": "udf2", "datatype": dbt.type_string()}, + {"name": "un_number", "datatype": dbt.type_string()}, + {"name": "unbuild_variance_account_id", "datatype": dbt.type_float()}, + {"name": "units_type_id", "datatype": dbt.type_float()}, + {"name": "upc_code", "datatype": dbt.type_string()}, + {"name": "use_component_yield", "datatype": dbt.type_string()}, + {"name": "vendor_id", "datatype": dbt.type_float()}, + {"name": "vendorname", "datatype": dbt.type_string()}, + {"name": "vendreturn_variance_account_id", "datatype": dbt.type_float()}, + {"name": "vsoe_deferral", "datatype": dbt.type_string()}, + {"name": "vsoe_delivered", "datatype": dbt.type_string()}, + {"name": "vsoe_discount", "datatype": dbt.type_string()}, + {"name": "vsoe_price", "datatype": dbt.type_float()}, + {"name": "weight", "datatype": dbt.type_float()}, + {"name": "weight_in_user_defined_unit", "datatype": dbt.type_float()}, + {"name": "weight_unit_index", "datatype": dbt.type_float()}, + {"name": "wip_account_id", "datatype": dbt.type_float()}, + {"name": "wip_cost_variance_account_id", "datatype": dbt.type_float()}, + {"name": "work_order_lead_time", "datatype": dbt.type_float()} ] %} {{ return(columns) }} @@ -191,164 +191,164 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "alternatedemandsourceitem", "datatype": dbt_utils.type_int()}, - {"name": "amortizationperiod", "datatype": dbt_utils.type_int()}, - {"name": "amortizationtemplate", "datatype": dbt_utils.type_int()}, - {"name": "assetaccount", "datatype": dbt_utils.type_int()}, - {"name": "atpmethod", "datatype": dbt_utils.type_string()}, - {"name": "autoexpandkitforrevenuemgmt", "datatype": dbt_utils.type_string()}, - {"name": "averagecost", "datatype": dbt_utils.type_float()}, - {"name": "backwardconsumptiondays", "datatype": dbt_utils.type_int()}, - {"name": "billexchratevarianceacct", "datatype": dbt_utils.type_int()}, - {"name": "billingschedule", "datatype": dbt_utils.type_int()}, - {"name": "billpricevarianceacct", "datatype": dbt_utils.type_int()}, - {"name": "billqtyvarianceacct", "datatype": dbt_utils.type_int()}, - {"name": "buildentireassembly", "datatype": dbt_utils.type_string()}, - {"name": "buildtime", "datatype": dbt_utils.type_float()}, - {"name": "class", "datatype": dbt_utils.type_int()}, - {"name": "consumptionunit", "datatype": dbt_utils.type_int()}, - {"name": "copydescription", "datatype": dbt_utils.type_string()}, - {"name": "cost", "datatype": dbt_utils.type_float()}, - {"name": "costestimate", "datatype": dbt_utils.type_float()}, - {"name": "costestimatetype", "datatype": dbt_utils.type_string()}, - {"name": "costingmethod", "datatype": dbt_utils.type_string()}, - {"name": "costingmethoddisplay", "datatype": dbt_utils.type_string()}, - {"name": "countryofmanufacture", "datatype": dbt_utils.type_string()}, - {"name": "createddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "createexpenseplanson", "datatype": dbt_utils.type_int()}, - {"name": "createjob", "datatype": dbt_utils.type_string()}, - {"name": "createrevenueplanson", "datatype": dbt_utils.type_int()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "deferralaccount", "datatype": dbt_utils.type_int()}, - {"name": "deferredrevenueaccount", "datatype": dbt_utils.type_int()}, - {"name": "deferrevrec", "datatype": dbt_utils.type_string()}, - {"name": "demandmodifier", "datatype": dbt_utils.type_float()}, - {"name": "demandsource", "datatype": dbt_utils.type_string()}, - {"name": "demandtimefence", "datatype": dbt_utils.type_int()}, - {"name": "department", "datatype": dbt_utils.type_int()}, - {"name": "description", "datatype": dbt_utils.type_string()}, - {"name": "directrevenueposting", "datatype": dbt_utils.type_string()}, - {"name": "displayname", "datatype": dbt_utils.type_string()}, - {"name": "dropshipexpenseaccount", "datatype": dbt_utils.type_int()}, - {"name": "enforceminqtyinternally", "datatype": dbt_utils.type_string()}, - {"name": "excludefromsitemap", "datatype": dbt_utils.type_string()}, - {"name": "expenseaccount", "datatype": dbt_utils.type_int()}, - {"name": "expenseamortizationrule", "datatype": dbt_utils.type_int()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "fixedlotsize", "datatype": dbt_utils.type_float()}, - {"name": "forwardconsumptiondays", "datatype": dbt_utils.type_int()}, - {"name": "froogleproductfeed", "datatype": dbt_utils.type_string()}, - {"name": "fullname", "datatype": dbt_utils.type_string()}, - {"name": "fxcost", "datatype": dbt_utils.type_float()}, - {"name": "gainlossaccount", "datatype": dbt_utils.type_int()}, - {"name": "generateaccruals", "datatype": dbt_utils.type_string()}, - {"name": "handlingcost", "datatype": dbt_utils.type_float()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "includechildren", "datatype": dbt_utils.type_string()}, - {"name": "incomeaccount", "datatype": dbt_utils.type_int()}, - {"name": "intercodefrevaccount", "datatype": dbt_utils.type_int()}, - {"name": "intercoexpenseaccount", "datatype": dbt_utils.type_int()}, - {"name": "intercoincomeaccount", "datatype": dbt_utils.type_int()}, - {"name": "isdropshipitem", "datatype": dbt_utils.type_string()}, - {"name": "isfulfillable", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "islotitem", "datatype": dbt_utils.type_string()}, - {"name": "isonline", "datatype": dbt_utils.type_string()}, - {"name": "isphantom", "datatype": dbt_utils.type_string()}, - {"name": "isserialitem", "datatype": dbt_utils.type_string()}, - {"name": "isspecialorderitem", "datatype": dbt_utils.type_string()}, - {"name": "isspecialworkorderitem", "datatype": dbt_utils.type_string()}, - {"name": "itemid", "datatype": dbt_utils.type_string()}, - {"name": "itemrevenuecategory", "datatype": dbt_utils.type_int()}, - {"name": "itemtype", "datatype": dbt_utils.type_string()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "lastpurchaseprice", "datatype": dbt_utils.type_float()}, - {"name": "leadtime", "datatype": dbt_utils.type_int()}, - {"name": "location", "datatype": dbt_utils.type_int()}, - {"name": "manufacturer", "datatype": dbt_utils.type_string()}, - {"name": "matchbilltoreceipt", "datatype": dbt_utils.type_string()}, - {"name": "matrixitemnametemplate", "datatype": dbt_utils.type_string()}, - {"name": "matrixtype", "datatype": dbt_utils.type_string()}, - {"name": "maximumquantity", "datatype": dbt_utils.type_int()}, - {"name": "minimumquantity", "datatype": dbt_utils.type_int()}, - {"name": "mpn", "datatype": dbt_utils.type_string()}, - {"name": "nextagcategory", "datatype": dbt_utils.type_string()}, - {"name": "nextagproductfeed", "datatype": dbt_utils.type_string()}, - {"name": "overallquantitypricingtype", "datatype": dbt_utils.type_string()}, - {"name": "parent", "datatype": dbt_utils.type_int()}, - {"name": "periodiclotsizedays", "datatype": dbt_utils.type_int()}, - {"name": "periodiclotsizetype", "datatype": dbt_utils.type_string()}, - {"name": "preferredlocation", "datatype": dbt_utils.type_int()}, - {"name": "pricinggroup", "datatype": dbt_utils.type_int()}, - {"name": "printitems", "datatype": dbt_utils.type_string()}, - {"name": "prodpricevarianceacct", "datatype": dbt_utils.type_int()}, - {"name": "prodqtyvarianceacct", "datatype": dbt_utils.type_int()}, - {"name": "projectexpensetype", "datatype": dbt_utils.type_int()}, - {"name": "projecttemplate", "datatype": dbt_utils.type_int()}, - {"name": "purchasedescription", "datatype": dbt_utils.type_string()}, - {"name": "purchaseorderamount", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantity", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "purchasepricevarianceacct", "datatype": dbt_utils.type_int()}, - {"name": "purchaseunit", "datatype": dbt_utils.type_int()}, - {"name": "quantitypricingschedule", "datatype": dbt_utils.type_int()}, - {"name": "receiptamount", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantity", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "relateditemsdescription", "datatype": dbt_utils.type_string()}, - {"name": "rescheduleindays", "datatype": dbt_utils.type_int()}, - {"name": "rescheduleoutdays", "datatype": dbt_utils.type_int()}, - {"name": "residual", "datatype": dbt_utils.type_float()}, - {"name": "revenueallocationgroup", "datatype": dbt_utils.type_int()}, - {"name": "revenuerecognitionrule", "datatype": dbt_utils.type_int()}, - {"name": "revrecforecastrule", "datatype": dbt_utils.type_int()}, - {"name": "revreclassfxaccount", "datatype": dbt_utils.type_int()}, - {"name": "roundupascomponent", "datatype": dbt_utils.type_string()}, - {"name": "safetystocklevel", "datatype": dbt_utils.type_float()}, - {"name": "saleunit", "datatype": dbt_utils.type_int()}, - {"name": "scrapacct", "datatype": dbt_utils.type_int()}, - {"name": "searchkeywords", "datatype": dbt_utils.type_string()}, - {"name": "seasonaldemand", "datatype": dbt_utils.type_string()}, - {"name": "shipindividually", "datatype": dbt_utils.type_string()}, - {"name": "shippackage", "datatype": dbt_utils.type_int()}, - {"name": "shippingcost", "datatype": dbt_utils.type_float()}, - {"name": "shoppingdotcomcategory", "datatype": dbt_utils.type_string()}, - {"name": "shoppingproductfeed", "datatype": dbt_utils.type_string()}, - {"name": "shopzillacategoryid", "datatype": dbt_utils.type_int()}, - {"name": "shopzillaproductfeed", "datatype": dbt_utils.type_string()}, - {"name": "sitemappriority", "datatype": dbt_utils.type_string()}, - {"name": "stockdescription", "datatype": dbt_utils.type_string()}, - {"name": "stockunit", "datatype": dbt_utils.type_int()}, - {"name": "storedescription", "datatype": dbt_utils.type_string()}, - {"name": "storedisplayimage", "datatype": dbt_utils.type_int()}, - {"name": "storedisplayname", "datatype": dbt_utils.type_string()}, - {"name": "storedisplaythumbnail", "datatype": dbt_utils.type_int()}, - {"name": "subsidiary", "datatype": dbt_utils.type_string()}, - {"name": "subtype", "datatype": dbt_utils.type_string()}, - {"name": "supplylotsizingmethod", "datatype": dbt_utils.type_string()}, - {"name": "supplyreplenishmentmethod", "datatype": dbt_utils.type_string()}, - {"name": "supplytimefence", "datatype": dbt_utils.type_int()}, - {"name": "supplytype", "datatype": dbt_utils.type_string()}, - {"name": "totalquantityonhand", "datatype": dbt_utils.type_float()}, - {"name": "totalvalue", "datatype": dbt_utils.type_float()}, - {"name": "transferprice", "datatype": dbt_utils.type_float()}, - {"name": "unbuildvarianceaccount", "datatype": dbt_utils.type_int()}, - {"name": "unitstype", "datatype": dbt_utils.type_int()}, - {"name": "upccode", "datatype": dbt_utils.type_string()}, - {"name": "usebins", "datatype": dbt_utils.type_string()}, - {"name": "usemarginalrates", "datatype": dbt_utils.type_string()}, - {"name": "vendorname", "datatype": dbt_utils.type_string()}, - {"name": "vendreturnvarianceaccount", "datatype": dbt_utils.type_int()}, - {"name": "vsoedelivered", "datatype": dbt_utils.type_string()}, - {"name": "vsoepermitdiscount", "datatype": dbt_utils.type_string()}, - {"name": "vsoesopgroup", "datatype": dbt_utils.type_string()}, - {"name": "weight", "datatype": dbt_utils.type_float()}, - {"name": "weightunit", "datatype": dbt_utils.type_int()}, - {"name": "weightunits", "datatype": dbt_utils.type_string()}, - {"name": "wipacct", "datatype": dbt_utils.type_int()}, - {"name": "wipvarianceacct", "datatype": dbt_utils.type_int()}, - {"name": "yahooproductfeed", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "alternatedemandsourceitem", "datatype": dbt.type_int()}, + {"name": "amortizationperiod", "datatype": dbt.type_int()}, + {"name": "amortizationtemplate", "datatype": dbt.type_int()}, + {"name": "assetaccount", "datatype": dbt.type_int()}, + {"name": "atpmethod", "datatype": dbt.type_string()}, + {"name": "autoexpandkitforrevenuemgmt", "datatype": dbt.type_string()}, + {"name": "averagecost", "datatype": dbt.type_float()}, + {"name": "backwardconsumptiondays", "datatype": dbt.type_int()}, + {"name": "billexchratevarianceacct", "datatype": dbt.type_int()}, + {"name": "billingschedule", "datatype": dbt.type_int()}, + {"name": "billpricevarianceacct", "datatype": dbt.type_int()}, + {"name": "billqtyvarianceacct", "datatype": dbt.type_int()}, + {"name": "buildentireassembly", "datatype": dbt.type_string()}, + {"name": "buildtime", "datatype": dbt.type_float()}, + {"name": "class", "datatype": dbt.type_int()}, + {"name": "consumptionunit", "datatype": dbt.type_int()}, + {"name": "copydescription", "datatype": dbt.type_string()}, + {"name": "cost", "datatype": dbt.type_float()}, + {"name": "costestimate", "datatype": dbt.type_float()}, + {"name": "costestimatetype", "datatype": dbt.type_string()}, + {"name": "costingmethod", "datatype": dbt.type_string()}, + {"name": "costingmethoddisplay", "datatype": dbt.type_string()}, + {"name": "countryofmanufacture", "datatype": dbt.type_string()}, + {"name": "createddate", "datatype": dbt.type_timestamp()}, + {"name": "createexpenseplanson", "datatype": dbt.type_int()}, + {"name": "createjob", "datatype": dbt.type_string()}, + {"name": "createrevenueplanson", "datatype": dbt.type_int()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "deferralaccount", "datatype": dbt.type_int()}, + {"name": "deferredrevenueaccount", "datatype": dbt.type_int()}, + {"name": "deferrevrec", "datatype": dbt.type_string()}, + {"name": "demandmodifier", "datatype": dbt.type_float()}, + {"name": "demandsource", "datatype": dbt.type_string()}, + {"name": "demandtimefence", "datatype": dbt.type_int()}, + {"name": "department", "datatype": dbt.type_int()}, + {"name": "description", "datatype": dbt.type_string()}, + {"name": "directrevenueposting", "datatype": dbt.type_string()}, + {"name": "displayname", "datatype": dbt.type_string()}, + {"name": "dropshipexpenseaccount", "datatype": dbt.type_int()}, + {"name": "enforceminqtyinternally", "datatype": dbt.type_string()}, + {"name": "excludefromsitemap", "datatype": dbt.type_string()}, + {"name": "expenseaccount", "datatype": dbt.type_int()}, + {"name": "expenseamortizationrule", "datatype": dbt.type_int()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "fixedlotsize", "datatype": dbt.type_float()}, + {"name": "forwardconsumptiondays", "datatype": dbt.type_int()}, + {"name": "froogleproductfeed", "datatype": dbt.type_string()}, + {"name": "fullname", "datatype": dbt.type_string()}, + {"name": "fxcost", "datatype": dbt.type_float()}, + {"name": "gainlossaccount", "datatype": dbt.type_int()}, + {"name": "generateaccruals", "datatype": dbt.type_string()}, + {"name": "handlingcost", "datatype": dbt.type_float()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "includechildren", "datatype": dbt.type_string()}, + {"name": "incomeaccount", "datatype": dbt.type_int()}, + {"name": "intercodefrevaccount", "datatype": dbt.type_int()}, + {"name": "intercoexpenseaccount", "datatype": dbt.type_int()}, + {"name": "intercoincomeaccount", "datatype": dbt.type_int()}, + {"name": "isdropshipitem", "datatype": dbt.type_string()}, + {"name": "isfulfillable", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "islotitem", "datatype": dbt.type_string()}, + {"name": "isonline", "datatype": dbt.type_string()}, + {"name": "isphantom", "datatype": dbt.type_string()}, + {"name": "isserialitem", "datatype": dbt.type_string()}, + {"name": "isspecialorderitem", "datatype": dbt.type_string()}, + {"name": "isspecialworkorderitem", "datatype": dbt.type_string()}, + {"name": "itemid", "datatype": dbt.type_string()}, + {"name": "itemrevenuecategory", "datatype": dbt.type_int()}, + {"name": "itemtype", "datatype": dbt.type_string()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "lastpurchaseprice", "datatype": dbt.type_float()}, + {"name": "leadtime", "datatype": dbt.type_int()}, + {"name": "location", "datatype": dbt.type_int()}, + {"name": "manufacturer", "datatype": dbt.type_string()}, + {"name": "matchbilltoreceipt", "datatype": dbt.type_string()}, + {"name": "matrixitemnametemplate", "datatype": dbt.type_string()}, + {"name": "matrixtype", "datatype": dbt.type_string()}, + {"name": "maximumquantity", "datatype": dbt.type_int()}, + {"name": "minimumquantity", "datatype": dbt.type_int()}, + {"name": "mpn", "datatype": dbt.type_string()}, + {"name": "nextagcategory", "datatype": dbt.type_string()}, + {"name": "nextagproductfeed", "datatype": dbt.type_string()}, + {"name": "overallquantitypricingtype", "datatype": dbt.type_string()}, + {"name": "parent", "datatype": dbt.type_int()}, + {"name": "periodiclotsizedays", "datatype": dbt.type_int()}, + {"name": "periodiclotsizetype", "datatype": dbt.type_string()}, + {"name": "preferredlocation", "datatype": dbt.type_int()}, + {"name": "pricinggroup", "datatype": dbt.type_int()}, + {"name": "printitems", "datatype": dbt.type_string()}, + {"name": "prodpricevarianceacct", "datatype": dbt.type_int()}, + {"name": "prodqtyvarianceacct", "datatype": dbt.type_int()}, + {"name": "projectexpensetype", "datatype": dbt.type_int()}, + {"name": "projecttemplate", "datatype": dbt.type_int()}, + {"name": "purchasedescription", "datatype": dbt.type_string()}, + {"name": "purchaseorderamount", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantity", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantitydiff", "datatype": dbt.type_float()}, + {"name": "purchasepricevarianceacct", "datatype": dbt.type_int()}, + {"name": "purchaseunit", "datatype": dbt.type_int()}, + {"name": "quantitypricingschedule", "datatype": dbt.type_int()}, + {"name": "receiptamount", "datatype": dbt.type_float()}, + {"name": "receiptquantity", "datatype": dbt.type_float()}, + {"name": "receiptquantitydiff", "datatype": dbt.type_float()}, + {"name": "relateditemsdescription", "datatype": dbt.type_string()}, + {"name": "rescheduleindays", "datatype": dbt.type_int()}, + {"name": "rescheduleoutdays", "datatype": dbt.type_int()}, + {"name": "residual", "datatype": dbt.type_float()}, + {"name": "revenueallocationgroup", "datatype": dbt.type_int()}, + {"name": "revenuerecognitionrule", "datatype": dbt.type_int()}, + {"name": "revrecforecastrule", "datatype": dbt.type_int()}, + {"name": "revreclassfxaccount", "datatype": dbt.type_int()}, + {"name": "roundupascomponent", "datatype": dbt.type_string()}, + {"name": "safetystocklevel", "datatype": dbt.type_float()}, + {"name": "saleunit", "datatype": dbt.type_int()}, + {"name": "scrapacct", "datatype": dbt.type_int()}, + {"name": "searchkeywords", "datatype": dbt.type_string()}, + {"name": "seasonaldemand", "datatype": dbt.type_string()}, + {"name": "shipindividually", "datatype": dbt.type_string()}, + {"name": "shippackage", "datatype": dbt.type_int()}, + {"name": "shippingcost", "datatype": dbt.type_float()}, + {"name": "shoppingdotcomcategory", "datatype": dbt.type_string()}, + {"name": "shoppingproductfeed", "datatype": dbt.type_string()}, + {"name": "shopzillacategoryid", "datatype": dbt.type_int()}, + {"name": "shopzillaproductfeed", "datatype": dbt.type_string()}, + {"name": "sitemappriority", "datatype": dbt.type_string()}, + {"name": "stockdescription", "datatype": dbt.type_string()}, + {"name": "stockunit", "datatype": dbt.type_int()}, + {"name": "storedescription", "datatype": dbt.type_string()}, + {"name": "storedisplayimage", "datatype": dbt.type_int()}, + {"name": "storedisplayname", "datatype": dbt.type_string()}, + {"name": "storedisplaythumbnail", "datatype": dbt.type_int()}, + {"name": "subsidiary", "datatype": dbt.type_string()}, + {"name": "subtype", "datatype": dbt.type_string()}, + {"name": "supplylotsizingmethod", "datatype": dbt.type_string()}, + {"name": "supplyreplenishmentmethod", "datatype": dbt.type_string()}, + {"name": "supplytimefence", "datatype": dbt.type_int()}, + {"name": "supplytype", "datatype": dbt.type_string()}, + {"name": "totalquantityonhand", "datatype": dbt.type_float()}, + {"name": "totalvalue", "datatype": dbt.type_float()}, + {"name": "transferprice", "datatype": dbt.type_float()}, + {"name": "unbuildvarianceaccount", "datatype": dbt.type_int()}, + {"name": "unitstype", "datatype": dbt.type_int()}, + {"name": "upccode", "datatype": dbt.type_string()}, + {"name": "usebins", "datatype": dbt.type_string()}, + {"name": "usemarginalrates", "datatype": dbt.type_string()}, + {"name": "vendorname", "datatype": dbt.type_string()}, + {"name": "vendreturnvarianceaccount", "datatype": dbt.type_int()}, + {"name": "vsoedelivered", "datatype": dbt.type_string()}, + {"name": "vsoepermitdiscount", "datatype": dbt.type_string()}, + {"name": "vsoesopgroup", "datatype": dbt.type_string()}, + {"name": "weight", "datatype": dbt.type_float()}, + {"name": "weightunit", "datatype": dbt.type_int()}, + {"name": "weightunits", "datatype": dbt.type_string()}, + {"name": "wipacct", "datatype": dbt.type_int()}, + {"name": "wipvarianceacct", "datatype": dbt.type_int()}, + {"name": "yahooproductfeed", "datatype": dbt.type_string()} ] %} {{ return(columns) }} diff --git a/macros/get_job_columns.sql b/macros/get_job_columns.sql index cb5026d..b24082c 100644 --- a/macros/get_job_columns.sql +++ b/macros/get_job_columns.sql @@ -2,76 +2,76 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "accountnumber", "datatype": dbt_utils.type_string()}, - {"name": "actualtime", "datatype": dbt_utils.type_float()}, - {"name": "allowallresourcesfortasks", "datatype": dbt_utils.type_string()}, - {"name": "allowexpenses", "datatype": dbt_utils.type_string()}, - {"name": "allowtime", "datatype": dbt_utils.type_string()}, - {"name": "alternatecontact", "datatype": dbt_utils.type_string()}, - {"name": "altname", "datatype": dbt_utils.type_string()}, - {"name": "billingschedule", "datatype": dbt_utils.type_int()}, - {"name": "calculatedenddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "calculatedenddatebaseline", "datatype": dbt_utils.type_timestamp()}, - {"name": "category", "datatype": dbt_utils.type_int()}, - {"name": "comments", "datatype": dbt_utils.type_string()}, - {"name": "companyname", "datatype": dbt_utils.type_string()}, - {"name": "contact", "datatype": dbt_utils.type_int()}, - {"name": "contactlist", "datatype": dbt_utils.type_string()}, - {"name": "currency", "datatype": dbt_utils.type_int()}, - {"name": "currencyprecision", "datatype": dbt_utils.type_int()}, - {"name": "custentity1", "datatype": dbt_utils.type_string()}, - {"name": "custentity4", "datatype": dbt_utils.type_string()}, - {"name": "custentity5", "datatype": dbt_utils.type_int()}, - {"name": "customer", "datatype": dbt_utils.type_int()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "datecreated", "datatype": dbt_utils.type_timestamp()}, - {"name": "defaultbillingaddress", "datatype": dbt_utils.type_int()}, - {"name": "defaultshippingaddress", "datatype": dbt_utils.type_int()}, - {"name": "enddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "entityid", "datatype": dbt_utils.type_string()}, - {"name": "entitynumber", "datatype": dbt_utils.type_int()}, - {"name": "entitystatus", "datatype": dbt_utils.type_int()}, - {"name": "entitytitle", "datatype": dbt_utils.type_string()}, - {"name": "estimatedcost", "datatype": dbt_utils.type_float()}, - {"name": "estimatedgrossprofit", "datatype": dbt_utils.type_float()}, - {"name": "estimatedgrossprofitpercent", "datatype": dbt_utils.type_float()}, - {"name": "estimatedlaborcost", "datatype": dbt_utils.type_float()}, - {"name": "estimatedlaborcostbaseline", "datatype": dbt_utils.type_float()}, - {"name": "estimatedlaborrevenue", "datatype": dbt_utils.type_float()}, - {"name": "estimatedrevenue", "datatype": dbt_utils.type_float()}, - {"name": "estimatedtime", "datatype": dbt_utils.type_float()}, - {"name": "estimatedtimeoverride", "datatype": dbt_utils.type_float()}, - {"name": "estimatedtimeoverridebaseline", "datatype": dbt_utils.type_float()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "files", "datatype": dbt_utils.type_string()}, - {"name": "forecastchargerunondemand", "datatype": dbt_utils.type_string()}, - {"name": "fxrate", "datatype": dbt_utils.type_float()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "includecrmtasksintotals", "datatype": dbt_utils.type_string()}, - {"name": "isexempttime", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "isproductivetime", "datatype": dbt_utils.type_string()}, - {"name": "isutilizedtime", "datatype": dbt_utils.type_string()}, - {"name": "jobbillingtype", "datatype": dbt_utils.type_string()}, - {"name": "jobitem", "datatype": dbt_utils.type_int()}, - {"name": "jobprice", "datatype": dbt_utils.type_float()}, - {"name": "jobtype", "datatype": dbt_utils.type_int()}, - {"name": "lastbaselinedate", "datatype": dbt_utils.type_timestamp()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "limittimetoassignees", "datatype": dbt_utils.type_string()}, - {"name": "materializetime", "datatype": dbt_utils.type_string()}, - {"name": "parent", "datatype": dbt_utils.type_int()}, - {"name": "percentcomplete", "datatype": dbt_utils.type_float()}, - {"name": "percenttimecomplete", "datatype": dbt_utils.type_float()}, - {"name": "primarycontact", "datatype": dbt_utils.type_string()}, - {"name": "projectedenddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "projectedenddatebaseline", "datatype": dbt_utils.type_timestamp()}, - {"name": "projectmanager", "datatype": dbt_utils.type_int()}, - {"name": "startdate", "datatype": dbt_utils.type_timestamp()}, - {"name": "startdatebaseline", "datatype": dbt_utils.type_timestamp()}, - {"name": "timeapproval", "datatype": dbt_utils.type_int()}, - {"name": "timeremaining", "datatype": dbt_utils.type_float()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "accountnumber", "datatype": dbt.type_string()}, + {"name": "actualtime", "datatype": dbt.type_float()}, + {"name": "allowallresourcesfortasks", "datatype": dbt.type_string()}, + {"name": "allowexpenses", "datatype": dbt.type_string()}, + {"name": "allowtime", "datatype": dbt.type_string()}, + {"name": "alternatecontact", "datatype": dbt.type_string()}, + {"name": "altname", "datatype": dbt.type_string()}, + {"name": "billingschedule", "datatype": dbt.type_int()}, + {"name": "calculatedenddate", "datatype": dbt.type_timestamp()}, + {"name": "calculatedenddatebaseline", "datatype": dbt.type_timestamp()}, + {"name": "category", "datatype": dbt.type_int()}, + {"name": "comments", "datatype": dbt.type_string()}, + {"name": "companyname", "datatype": dbt.type_string()}, + {"name": "contact", "datatype": dbt.type_int()}, + {"name": "contactlist", "datatype": dbt.type_string()}, + {"name": "currency", "datatype": dbt.type_int()}, + {"name": "currencyprecision", "datatype": dbt.type_int()}, + {"name": "custentity1", "datatype": dbt.type_string()}, + {"name": "custentity4", "datatype": dbt.type_string()}, + {"name": "custentity5", "datatype": dbt.type_int()}, + {"name": "customer", "datatype": dbt.type_int()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "datecreated", "datatype": dbt.type_timestamp()}, + {"name": "defaultbillingaddress", "datatype": dbt.type_int()}, + {"name": "defaultshippingaddress", "datatype": dbt.type_int()}, + {"name": "enddate", "datatype": dbt.type_timestamp()}, + {"name": "entityid", "datatype": dbt.type_string()}, + {"name": "entitynumber", "datatype": dbt.type_int()}, + {"name": "entitystatus", "datatype": dbt.type_int()}, + {"name": "entitytitle", "datatype": dbt.type_string()}, + {"name": "estimatedcost", "datatype": dbt.type_float()}, + {"name": "estimatedgrossprofit", "datatype": dbt.type_float()}, + {"name": "estimatedgrossprofitpercent", "datatype": dbt.type_float()}, + {"name": "estimatedlaborcost", "datatype": dbt.type_float()}, + {"name": "estimatedlaborcostbaseline", "datatype": dbt.type_float()}, + {"name": "estimatedlaborrevenue", "datatype": dbt.type_float()}, + {"name": "estimatedrevenue", "datatype": dbt.type_float()}, + {"name": "estimatedtime", "datatype": dbt.type_float()}, + {"name": "estimatedtimeoverride", "datatype": dbt.type_float()}, + {"name": "estimatedtimeoverridebaseline", "datatype": dbt.type_float()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "files", "datatype": dbt.type_string()}, + {"name": "forecastchargerunondemand", "datatype": dbt.type_string()}, + {"name": "fxrate", "datatype": dbt.type_float()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "includecrmtasksintotals", "datatype": dbt.type_string()}, + {"name": "isexempttime", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "isproductivetime", "datatype": dbt.type_string()}, + {"name": "isutilizedtime", "datatype": dbt.type_string()}, + {"name": "jobbillingtype", "datatype": dbt.type_string()}, + {"name": "jobitem", "datatype": dbt.type_int()}, + {"name": "jobprice", "datatype": dbt.type_float()}, + {"name": "jobtype", "datatype": dbt.type_int()}, + {"name": "lastbaselinedate", "datatype": dbt.type_timestamp()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "limittimetoassignees", "datatype": dbt.type_string()}, + {"name": "materializetime", "datatype": dbt.type_string()}, + {"name": "parent", "datatype": dbt.type_int()}, + {"name": "percentcomplete", "datatype": dbt.type_float()}, + {"name": "percenttimecomplete", "datatype": dbt.type_float()}, + {"name": "primarycontact", "datatype": dbt.type_string()}, + {"name": "projectedenddate", "datatype": dbt.type_timestamp()}, + {"name": "projectedenddatebaseline", "datatype": dbt.type_timestamp()}, + {"name": "projectmanager", "datatype": dbt.type_int()}, + {"name": "startdate", "datatype": dbt.type_timestamp()}, + {"name": "startdatebaseline", "datatype": dbt.type_timestamp()}, + {"name": "timeapproval", "datatype": dbt.type_int()}, + {"name": "timeremaining", "datatype": dbt.type_float()} ] %} {{ return(columns) }} diff --git a/macros/get_locationmainaddress_columns.sql b/macros/get_locationmainaddress_columns.sql index 0f1cab5..0e29fd9 100644 --- a/macros/get_locationmainaddress_columns.sql +++ b/macros/get_locationmainaddress_columns.sql @@ -2,24 +2,24 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "addr1", "datatype": dbt_utils.type_string()}, - {"name": "addr2", "datatype": dbt_utils.type_string()}, - {"name": "addr3", "datatype": dbt_utils.type_string()}, - {"name": "addressee", "datatype": dbt_utils.type_string()}, - {"name": "addrphone", "datatype": dbt_utils.type_string()}, - {"name": "addrtext", "datatype": dbt_utils.type_string()}, - {"name": "attention", "datatype": dbt_utils.type_string()}, - {"name": "city", "datatype": dbt_utils.type_string()}, - {"name": "country", "datatype": dbt_utils.type_string()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "dropdownstate", "datatype": dbt_utils.type_string()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "nkey", "datatype": dbt_utils.type_int()}, - {"name": "override", "datatype": dbt_utils.type_string()}, - {"name": "recordowner", "datatype": dbt_utils.type_int()}, - {"name": "state", "datatype": dbt_utils.type_string()}, - {"name": "zip", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "addr1", "datatype": dbt.type_string()}, + {"name": "addr2", "datatype": dbt.type_string()}, + {"name": "addr3", "datatype": dbt.type_string()}, + {"name": "addressee", "datatype": dbt.type_string()}, + {"name": "addrphone", "datatype": dbt.type_string()}, + {"name": "addrtext", "datatype": dbt.type_string()}, + {"name": "attention", "datatype": dbt.type_string()}, + {"name": "city", "datatype": dbt.type_string()}, + {"name": "country", "datatype": dbt.type_string()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "dropdownstate", "datatype": dbt.type_string()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "nkey", "datatype": dbt.type_int()}, + {"name": "override", "datatype": dbt.type_string()}, + {"name": "recordowner", "datatype": dbt.type_int()}, + {"name": "state", "datatype": dbt.type_string()}, + {"name": "zip", "datatype": dbt.type_string()} ] %} {{ return(columns) }} diff --git a/macros/get_locations_columns.sql b/macros/get_locations_columns.sql index 0cb9643..0a6443b 100644 --- a/macros/get_locations_columns.sql +++ b/macros/get_locations_columns.sql @@ -2,12 +2,12 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "city", "datatype": dbt_utils.type_string()}, - {"name": "country", "datatype": dbt_utils.type_string()}, - {"name": "full_name", "datatype": dbt_utils.type_string()}, - {"name": "location_id", "datatype": dbt_utils.type_float()}, - {"name": "name", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "city", "datatype": dbt.type_string()}, + {"name": "country", "datatype": dbt.type_string()}, + {"name": "full_name", "datatype": dbt.type_string()}, + {"name": "location_id", "datatype": dbt.type_float()}, + {"name": "name", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }} @@ -20,13 +20,13 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "fullname", "datatype": dbt_utils.type_string()}, - {"name": "mainaddress", "datatype": dbt_utils.type_int()}, - {"name": "parent", "datatype": dbt_utils.type_int()}, - {"name": "subsidiary", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "fullname", "datatype": dbt.type_string()}, + {"name": "mainaddress", "datatype": dbt.type_int()}, + {"name": "parent", "datatype": dbt.type_int()}, + {"name": "subsidiary", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }} diff --git a/macros/get_subsidiaries_columns.sql b/macros/get_subsidiaries_columns.sql index d016f21..b1e5efb 100644 --- a/macros/get_subsidiaries_columns.sql +++ b/macros/get_subsidiaries_columns.sql @@ -2,59 +2,59 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "address", "datatype": dbt_utils.type_string()}, - {"name": "address1", "datatype": dbt_utils.type_string()}, - {"name": "address2", "datatype": dbt_utils.type_string()}, - {"name": "base_currency_id", "datatype": dbt_utils.type_float()}, - {"name": "branch_id", "datatype": dbt_utils.type_string()}, - {"name": "brn", "datatype": dbt_utils.type_string()}, - {"name": "city", "datatype": dbt_utils.type_string()}, - {"name": "country", "datatype": dbt_utils.type_string()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_last_modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "edition", "datatype": dbt_utils.type_string()}, - {"name": "federal_number", "datatype": dbt_utils.type_string()}, - {"name": "fiscal_calendar_id", "datatype": dbt_utils.type_float()}, - {"name": "full_name", "datatype": dbt_utils.type_string()}, - {"name": "is_elimination", "datatype": dbt_utils.type_string()}, - {"name": "is_moss", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "isinactive_bool", "datatype": dbt_utils.type_string()}, - {"name": "legal_name", "datatype": dbt_utils.type_string()}, - {"name": "moss_nexus_id", "datatype": dbt_utils.type_float()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "parent_id", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderamount", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantity", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "receiptamount", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantity", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "return_address", "datatype": dbt_utils.type_string()}, - {"name": "return_address1", "datatype": dbt_utils.type_string()}, - {"name": "return_address2", "datatype": dbt_utils.type_string()}, - {"name": "return_city", "datatype": dbt_utils.type_string()}, - {"name": "return_country", "datatype": dbt_utils.type_string()}, - {"name": "return_state", "datatype": dbt_utils.type_string()}, - {"name": "return_zipcode", "datatype": dbt_utils.type_string()}, - {"name": "shipping_address", "datatype": dbt_utils.type_string()}, - {"name": "shipping_address1", "datatype": dbt_utils.type_string()}, - {"name": "shipping_address2", "datatype": dbt_utils.type_string()}, - {"name": "shipping_city", "datatype": dbt_utils.type_string()}, - {"name": "shipping_country", "datatype": dbt_utils.type_string()}, - {"name": "shipping_state", "datatype": dbt_utils.type_string()}, - {"name": "shipping_zipcode", "datatype": dbt_utils.type_string()}, - {"name": "state", "datatype": dbt_utils.type_string()}, - {"name": "state_tax_number", "datatype": dbt_utils.type_string()}, - {"name": "subnav__searchable_subsidiary", "datatype": dbt_utils.type_float()}, - {"name": "subsidiary_extid", "datatype": dbt_utils.type_string()}, - {"name": "subsidiary_id", "datatype": dbt_utils.type_float()}, - {"name": "taxonomy_reference_id", "datatype": dbt_utils.type_float()}, - {"name": "tran_num_prefix", "datatype": dbt_utils.type_string()}, - {"name": "uen", "datatype": dbt_utils.type_string()}, - {"name": "url", "datatype": dbt_utils.type_string()}, - {"name": "zipcode", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "address", "datatype": dbt.type_string()}, + {"name": "address1", "datatype": dbt.type_string()}, + {"name": "address2", "datatype": dbt.type_string()}, + {"name": "base_currency_id", "datatype": dbt.type_float()}, + {"name": "branch_id", "datatype": dbt.type_string()}, + {"name": "brn", "datatype": dbt.type_string()}, + {"name": "city", "datatype": dbt.type_string()}, + {"name": "country", "datatype": dbt.type_string()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "date_last_modified", "datatype": dbt.type_timestamp()}, + {"name": "edition", "datatype": dbt.type_string()}, + {"name": "federal_number", "datatype": dbt.type_string()}, + {"name": "fiscal_calendar_id", "datatype": dbt.type_float()}, + {"name": "full_name", "datatype": dbt.type_string()}, + {"name": "is_elimination", "datatype": dbt.type_string()}, + {"name": "is_moss", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "isinactive_bool", "datatype": dbt.type_string()}, + {"name": "legal_name", "datatype": dbt.type_string()}, + {"name": "moss_nexus_id", "datatype": dbt.type_float()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "parent_id", "datatype": dbt.type_float()}, + {"name": "purchaseorderamount", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantity", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantitydiff", "datatype": dbt.type_float()}, + {"name": "receiptamount", "datatype": dbt.type_float()}, + {"name": "receiptquantity", "datatype": dbt.type_float()}, + {"name": "receiptquantitydiff", "datatype": dbt.type_float()}, + {"name": "return_address", "datatype": dbt.type_string()}, + {"name": "return_address1", "datatype": dbt.type_string()}, + {"name": "return_address2", "datatype": dbt.type_string()}, + {"name": "return_city", "datatype": dbt.type_string()}, + {"name": "return_country", "datatype": dbt.type_string()}, + {"name": "return_state", "datatype": dbt.type_string()}, + {"name": "return_zipcode", "datatype": dbt.type_string()}, + {"name": "shipping_address", "datatype": dbt.type_string()}, + {"name": "shipping_address1", "datatype": dbt.type_string()}, + {"name": "shipping_address2", "datatype": dbt.type_string()}, + {"name": "shipping_city", "datatype": dbt.type_string()}, + {"name": "shipping_country", "datatype": dbt.type_string()}, + {"name": "shipping_state", "datatype": dbt.type_string()}, + {"name": "shipping_zipcode", "datatype": dbt.type_string()}, + {"name": "state", "datatype": dbt.type_string()}, + {"name": "state_tax_number", "datatype": dbt.type_string()}, + {"name": "subnav__searchable_subsidiary", "datatype": dbt.type_float()}, + {"name": "subsidiary_extid", "datatype": dbt.type_string()}, + {"name": "subsidiary_id", "datatype": dbt.type_float()}, + {"name": "taxonomy_reference_id", "datatype": dbt.type_float()}, + {"name": "tran_num_prefix", "datatype": dbt.type_string()}, + {"name": "uen", "datatype": dbt.type_string()}, + {"name": "url", "datatype": dbt.type_string()}, + {"name": "zipcode", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }} @@ -66,17 +66,17 @@ {% macro get_netsuite2_subsidiaries_columns() %} {% set columns = [ - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "fullname", "datatype": dbt_utils.type_string()}, - {"name": "email", "datatype": dbt_utils.type_string()}, - {"name": "mainaddress", "datatype": dbt_utils.type_int()}, - {"name": "country", "datatype": dbt_utils.type_string()}, - {"name": "state", "datatype": dbt_utils.type_string()}, - {"name": "fiscalcalendar", "datatype": dbt_utils.type_int()}, - {"name": "parent", "datatype": dbt_utils.type_int()} + {"name": "id", "datatype": dbt.type_int()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "fullname", "datatype": dbt.type_string()}, + {"name": "email", "datatype": dbt.type_string()}, + {"name": "mainaddress", "datatype": dbt.type_int()}, + {"name": "country", "datatype": dbt.type_string()}, + {"name": "state", "datatype": dbt.type_string()}, + {"name": "fiscalcalendar", "datatype": dbt.type_int()}, + {"name": "parent", "datatype": dbt.type_int()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }} diff --git a/macros/get_transaction_accounting_lines_columns.sql b/macros/get_transaction_accounting_lines_columns.sql index dd0de80..10e5dc5 100644 --- a/macros/get_transaction_accounting_lines_columns.sql +++ b/macros/get_transaction_accounting_lines_columns.sql @@ -2,22 +2,22 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "account", "datatype": dbt_utils.type_int()}, - {"name": "accountingbook", "datatype": dbt_utils.type_int()}, - {"name": "amount", "datatype": dbt_utils.type_float()}, - {"name": "amountpaid", "datatype": dbt_utils.type_float()}, - {"name": "amountunpaid", "datatype": dbt_utils.type_float()}, - {"name": "credit", "datatype": dbt_utils.type_float()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "debit", "datatype": dbt_utils.type_float()}, - {"name": "exchangerate", "datatype": dbt_utils.type_float()}, - {"name": "netamount", "datatype": dbt_utils.type_float()}, - {"name": "paymentamountunused", "datatype": dbt_utils.type_float()}, - {"name": "paymentamountused", "datatype": dbt_utils.type_float()}, - {"name": "posting", "datatype": dbt_utils.type_string()}, - {"name": "transaction", "datatype": dbt_utils.type_int()}, - {"name": "transactionline", "datatype": dbt_utils.type_int()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "account", "datatype": dbt.type_int()}, + {"name": "accountingbook", "datatype": dbt.type_int()}, + {"name": "amount", "datatype": dbt.type_float()}, + {"name": "amountpaid", "datatype": dbt.type_float()}, + {"name": "amountunpaid", "datatype": dbt.type_float()}, + {"name": "credit", "datatype": dbt.type_float()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "debit", "datatype": dbt.type_float()}, + {"name": "exchangerate", "datatype": dbt.type_float()}, + {"name": "netamount", "datatype": dbt.type_float()}, + {"name": "paymentamountunused", "datatype": dbt.type_float()}, + {"name": "paymentamountused", "datatype": dbt.type_float()}, + {"name": "posting", "datatype": dbt.type_string()}, + {"name": "transaction", "datatype": dbt.type_int()}, + {"name": "transactionline", "datatype": dbt.type_int()} ] %} {{ return(columns) }} diff --git a/macros/get_transaction_lines_columns.sql b/macros/get_transaction_lines_columns.sql index bbceb96..a2cab97 100644 --- a/macros/get_transaction_lines_columns.sql +++ b/macros/get_transaction_lines_columns.sql @@ -1,18 +1,18 @@ {% macro get_transaction_lines_columns() %} {% set columns = [ - {"name": "account_id", "datatype": dbt_utils.type_float()}, - {"name": "amount", "datatype": dbt_utils.type_float()}, - {"name": "class_id", "datatype": dbt_utils.type_float()}, - {"name": "company_id", "datatype": dbt_utils.type_float()}, - {"name": "department_id", "datatype": dbt_utils.type_float()}, - {"name": "item_id", "datatype": dbt_utils.type_float()}, - {"name": "location_id", "datatype": dbt_utils.type_float()}, - {"name": "memo", "datatype": dbt_utils.type_string()}, - {"name": "non_posting_line", "datatype": dbt_utils.type_string()}, - {"name": "subsidiary_id", "datatype": dbt_utils.type_float()}, - {"name": "transaction_id", "datatype": dbt_utils.type_float()}, - {"name": "transaction_line_id", "datatype": dbt_utils.type_float()} + {"name": "account_id", "datatype": dbt.type_float()}, + {"name": "amount", "datatype": dbt.type_float()}, + {"name": "class_id", "datatype": dbt.type_float()}, + {"name": "company_id", "datatype": dbt.type_float()}, + {"name": "department_id", "datatype": dbt.type_float()}, + {"name": "item_id", "datatype": dbt.type_float()}, + {"name": "location_id", "datatype": dbt.type_float()}, + {"name": "memo", "datatype": dbt.type_string()}, + {"name": "non_posting_line", "datatype": dbt.type_string()}, + {"name": "subsidiary_id", "datatype": dbt.type_float()}, + {"name": "transaction_id", "datatype": dbt.type_float()}, + {"name": "transaction_line_id", "datatype": dbt.type_float()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }} @@ -25,24 +25,24 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "transaction", "datatype": dbt_utils.type_int()}, - {"name": "linesequencenumber", "datatype": dbt_utils.type_int()}, - {"name": "memo", "datatype": dbt_utils.type_string()}, - {"name": "entity", "datatype": dbt_utils.type_int()}, - {"name": "item", "datatype": dbt_utils.type_int()}, - {"name": "class", "datatype": dbt_utils.type_int()}, - {"name": "location", "datatype": dbt_utils.type_int()}, - {"name": "subsidiary", "datatype": dbt_utils.type_int()}, - {"name": "department", "datatype": dbt_utils.type_int()}, - {"name": "isclosed", "datatype": dbt_utils.type_string()}, - {"name": "isbillable", "datatype": dbt_utils.type_string()}, - {"name": "iscogs", "datatype": dbt_utils.type_string()}, - {"name": "cleared", "datatype": dbt_utils.type_string()}, - {"name": "commitmentfirm", "datatype": dbt_utils.type_string()}, - {"name": "mainline", "datatype": dbt_utils.type_string()}, - {"name": "taxline", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "transaction", "datatype": dbt.type_int()}, + {"name": "linesequencenumber", "datatype": dbt.type_int()}, + {"name": "memo", "datatype": dbt.type_string()}, + {"name": "entity", "datatype": dbt.type_int()}, + {"name": "item", "datatype": dbt.type_int()}, + {"name": "class", "datatype": dbt.type_int()}, + {"name": "location", "datatype": dbt.type_int()}, + {"name": "subsidiary", "datatype": dbt.type_int()}, + {"name": "department", "datatype": dbt.type_int()}, + {"name": "isclosed", "datatype": dbt.type_string()}, + {"name": "isbillable", "datatype": dbt.type_string()}, + {"name": "iscogs", "datatype": dbt.type_string()}, + {"name": "cleared", "datatype": dbt.type_string()}, + {"name": "commitmentfirm", "datatype": dbt.type_string()}, + {"name": "mainline", "datatype": dbt.type_string()}, + {"name": "taxline", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }} diff --git a/macros/get_transactionaccountingline_columns.sql b/macros/get_transactionaccountingline_columns.sql index 91c938e..bc56c9b 100644 --- a/macros/get_transactionaccountingline_columns.sql +++ b/macros/get_transactionaccountingline_columns.sql @@ -2,24 +2,24 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "account", "datatype": dbt_utils.type_int()}, - {"name": "accountingbook", "datatype": dbt_utils.type_int()}, - {"name": "amount", "datatype": dbt_utils.type_float()}, - {"name": "amountlinked", "datatype": dbt_utils.type_float()}, - {"name": "amountpaid", "datatype": dbt_utils.type_float()}, - {"name": "amountunpaid", "datatype": dbt_utils.type_float()}, - {"name": "credit", "datatype": dbt_utils.type_float()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "debit", "datatype": dbt_utils.type_float()}, - {"name": "exchangerate", "datatype": dbt_utils.type_float()}, - {"name": "netamount", "datatype": dbt_utils.type_float()}, - {"name": "overheadparentitem", "datatype": dbt_utils.type_int()}, - {"name": "paymentamountunused", "datatype": dbt_utils.type_float()}, - {"name": "paymentamountused", "datatype": dbt_utils.type_float()}, - {"name": "posting", "datatype": dbt_utils.type_string()}, - {"name": "transaction", "datatype": dbt_utils.type_int()}, - {"name": "transactionline", "datatype": dbt_utils.type_int()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "account", "datatype": dbt.type_int()}, + {"name": "accountingbook", "datatype": dbt.type_int()}, + {"name": "amount", "datatype": dbt.type_float()}, + {"name": "amountlinked", "datatype": dbt.type_float()}, + {"name": "amountpaid", "datatype": dbt.type_float()}, + {"name": "amountunpaid", "datatype": dbt.type_float()}, + {"name": "credit", "datatype": dbt.type_float()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "debit", "datatype": dbt.type_float()}, + {"name": "exchangerate", "datatype": dbt.type_float()}, + {"name": "netamount", "datatype": dbt.type_float()}, + {"name": "overheadparentitem", "datatype": dbt.type_int()}, + {"name": "paymentamountunused", "datatype": dbt.type_float()}, + {"name": "paymentamountused", "datatype": dbt.type_float()}, + {"name": "posting", "datatype": dbt.type_string()}, + {"name": "transaction", "datatype": dbt.type_int()}, + {"name": "transactionline", "datatype": dbt.type_int()} ] %} {{ return(columns) }} diff --git a/macros/get_transactions_columns.sql b/macros/get_transactions_columns.sql index 45cd173..c3d180a 100644 --- a/macros/get_transactions_columns.sql +++ b/macros/get_transactions_columns.sql @@ -2,15 +2,15 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "accounting_period_id", "datatype": dbt_utils.type_float()}, - {"name": "currency_id", "datatype": dbt_utils.type_float()}, - {"name": "due_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "is_advanced_intercompany", "datatype": dbt_utils.type_string()}, - {"name": "is_intercompany", "datatype": dbt_utils.type_string()}, - {"name": "status", "datatype": dbt_utils.type_string()}, - {"name": "trandate", "datatype": dbt_utils.type_timestamp()}, - {"name": "transaction_id", "datatype": dbt_utils.type_float()}, - {"name": "transaction_type", "datatype": dbt_utils.type_string()} + {"name": "accounting_period_id", "datatype": dbt.type_float()}, + {"name": "currency_id", "datatype": dbt.type_float()}, + {"name": "due_date", "datatype": dbt.type_timestamp()}, + {"name": "is_advanced_intercompany", "datatype": dbt.type_string()}, + {"name": "is_intercompany", "datatype": dbt.type_string()}, + {"name": "status", "datatype": dbt.type_string()}, + {"name": "trandate", "datatype": dbt.type_timestamp()}, + {"name": "transaction_id", "datatype": dbt.type_float()}, + {"name": "transaction_type", "datatype": dbt.type_string()} ] %} {{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }} @@ -22,22 +22,22 @@ {% macro get_netsuite2_transactions_columns() %} {% set columns = [ - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "transactionnumber", "datatype": dbt_utils.type_string()}, - {"name": "type", "datatype": dbt_utils.type_string()}, - {"name": "memo", "datatype": dbt_utils.type_string()}, - {"name": "trandate", "datatype": dbt_utils.type_timestamp()}, - {"name": "status", "datatype": dbt_utils.type_string()}, - {"name": "createddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "duedate", "datatype": dbt_utils.type_timestamp()}, - {"name": "closedate", "datatype": dbt_utils.type_timestamp()}, - {"name": "currency", "datatype": dbt_utils.type_int()}, - {"name": "entity", "datatype": dbt_utils.type_int()}, - {"name": "postingperiod", "datatype": dbt_utils.type_int()}, - {"name": "posting", "datatype": dbt_utils.type_string()}, - {"name": "intercoadj", "datatype": dbt_utils.type_string()}, - {"name": "isreversal", "datatype": dbt_utils.type_string()}, + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "transactionnumber", "datatype": dbt.type_string()}, + {"name": "type", "datatype": dbt.type_string()}, + {"name": "memo", "datatype": dbt.type_string()}, + {"name": "trandate", "datatype": dbt.type_timestamp()}, + {"name": "status", "datatype": dbt.type_string()}, + {"name": "createddate", "datatype": dbt.type_timestamp()}, + {"name": "duedate", "datatype": dbt.type_timestamp()}, + {"name": "closedate", "datatype": dbt.type_timestamp()}, + {"name": "currency", "datatype": dbt.type_int()}, + {"name": "entity", "datatype": dbt.type_int()}, + {"name": "postingperiod", "datatype": dbt.type_int()}, + {"name": "posting", "datatype": dbt.type_string()}, + {"name": "intercoadj", "datatype": dbt.type_string()}, + {"name": "isreversal", "datatype": dbt.type_string()}, {"name": "_fivetran_deleted", "datatype": "boolean"} ] %} diff --git a/macros/get_vendor_types_columns.sql b/macros/get_vendor_types_columns.sql index aaca246..9f55e96 100644 --- a/macros/get_vendor_types_columns.sql +++ b/macros/get_vendor_types_columns.sql @@ -2,13 +2,13 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "parent_id", "datatype": dbt_utils.type_float()}, - {"name": "vendor_type_extid", "datatype": dbt_utils.type_string()}, - {"name": "vendor_type_id", "datatype": dbt_utils.type_float()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "parent_id", "datatype": dbt.type_float()}, + {"name": "vendor_type_extid", "datatype": dbt.type_string()}, + {"name": "vendor_type_id", "datatype": dbt.type_float()} ] %} {{ return(columns) }} diff --git a/macros/get_vendorcategory_columns.sql b/macros/get_vendorcategory_columns.sql index 12af505..877ea10 100644 --- a/macros/get_vendorcategory_columns.sql +++ b/macros/get_vendorcategory_columns.sql @@ -2,14 +2,14 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "istaxagency", "datatype": dbt_utils.type_string()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "name", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "istaxagency", "datatype": dbt.type_string()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "name", "datatype": dbt.type_string()} ] %} {{ return(columns) }} diff --git a/macros/get_vendors_columns.sql b/macros/get_vendors_columns.sql index f5b6851..4712d59 100644 --- a/macros/get_vendors_columns.sql +++ b/macros/get_vendors_columns.sql @@ -2,107 +2,107 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "account_owner", "datatype": dbt_utils.type_string()}, - {"name": "accountnumber", "datatype": dbt_utils.type_string()}, - {"name": "accounts_email", "datatype": dbt_utils.type_string()}, - {"name": "annual_revenue", "datatype": dbt_utils.type_float()}, - {"name": "auto_renewals", "datatype": dbt_utils.type_string()}, - {"name": "auto_send_statements", "datatype": dbt_utils.type_string()}, - {"name": "billaddress", "datatype": dbt_utils.type_string()}, - {"name": "billing_class_id", "datatype": dbt_utils.type_float()}, - {"name": "city", "datatype": dbt_utils.type_string()}, - {"name": "comments", "datatype": dbt_utils.type_string()}, - {"name": "companyname", "datatype": dbt_utils.type_string()}, - {"name": "country", "datatype": dbt_utils.type_string()}, - {"name": "create_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "creditlimit", "datatype": dbt_utils.type_float()}, - {"name": "currency_id", "datatype": dbt_utils.type_float()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "date_last_modified", "datatype": dbt_utils.type_timestamp()}, - {"name": "dic", "datatype": dbt_utils.type_string()}, - {"name": "email", "datatype": dbt_utils.type_string()}, - {"name": "email_bill_payment_vouchers", "datatype": dbt_utils.type_string()}, - {"name": "email_cash_sales", "datatype": dbt_utils.type_string()}, - {"name": "email_credit_notes", "datatype": dbt_utils.type_string()}, - {"name": "email_invoices", "datatype": dbt_utils.type_string()}, - {"name": "email_item_fulfilments", "datatype": dbt_utils.type_string()}, - {"name": "email_purchase_orders", "datatype": dbt_utils.type_string()}, - {"name": "email_quotes", "datatype": dbt_utils.type_string()}, - {"name": "email_sales_orders", "datatype": dbt_utils.type_string()}, - {"name": "email_statements", "datatype": dbt_utils.type_string()}, - {"name": "employee_number", "datatype": dbt_utils.type_string()}, - {"name": "exemption_certificate_no", "datatype": dbt_utils.type_string()}, - {"name": "expense_account_id", "datatype": dbt_utils.type_float()}, - {"name": "fax", "datatype": dbt_utils.type_string()}, - {"name": "full_name", "datatype": dbt_utils.type_string()}, - {"name": "home_phone", "datatype": dbt_utils.type_string()}, - {"name": "hris_id", "datatype": dbt_utils.type_string()}, - {"name": "ico", "datatype": dbt_utils.type_string()}, - {"name": "id_number_in_the_country_of_r", "datatype": dbt_utils.type_string()}, - {"name": "id_type_in_the_country_of_r_id", "datatype": dbt_utils.type_float()}, - {"name": "in_transit_balance", "datatype": dbt_utils.type_float()}, - {"name": "incoterm", "datatype": dbt_utils.type_string()}, - {"name": "industry_id", "datatype": dbt_utils.type_float()}, - {"name": "invoice_via_procurement_syste", "datatype": dbt_utils.type_string()}, - {"name": "invoicing_details", "datatype": dbt_utils.type_string()}, - {"name": "is1099eligible", "datatype": dbt_utils.type_string()}, - {"name": "is_partner", "datatype": dbt_utils.type_string()}, - {"name": "is_person", "datatype": dbt_utils.type_string()}, - {"name": "isemailhtml", "datatype": dbt_utils.type_string()}, - {"name": "isemailpdf", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "labor_cost", "datatype": dbt_utils.type_float()}, - {"name": "last_modified_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "last_sales_activity", "datatype": dbt_utils.type_timestamp()}, - {"name": "line1", "datatype": dbt_utils.type_string()}, - {"name": "line2", "datatype": dbt_utils.type_string()}, - {"name": "line3", "datatype": dbt_utils.type_string()}, - {"name": "loginaccess", "datatype": dbt_utils.type_string()}, - {"name": "lsa_link", "datatype": dbt_utils.type_string()}, - {"name": "lsa_link_name", "datatype": dbt_utils.type_string()}, - {"name": "mobile_phone", "datatype": dbt_utils.type_string()}, - {"name": "msa_effective_date", "datatype": dbt_utils.type_timestamp()}, - {"name": "name", "datatype": dbt_utils.type_string()}, - {"name": "no__of_employees", "datatype": dbt_utils.type_float()}, - {"name": "openbalance", "datatype": dbt_utils.type_float()}, - {"name": "openbalance_foreign", "datatype": dbt_utils.type_float()}, - {"name": "payables_account_id", "datatype": dbt_utils.type_float()}, - {"name": "payment_terms_id", "datatype": dbt_utils.type_float()}, - {"name": "phone", "datatype": dbt_utils.type_string()}, - {"name": "prepayment_balance", "datatype": dbt_utils.type_float()}, - {"name": "printoncheckas", "datatype": dbt_utils.type_string()}, - {"name": "purchaseorderamount", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantity", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "purchases_email", "datatype": dbt_utils.type_string()}, - {"name": "receiptamount", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantity", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "represents_subsidiary_id", "datatype": dbt_utils.type_float()}, - {"name": "restrict_access_to_expensify", "datatype": dbt_utils.type_string()}, - {"name": "salesforce_id", "datatype": dbt_utils.type_string()}, - {"name": "shipaddress", "datatype": dbt_utils.type_string()}, - {"name": "shipping_email", "datatype": dbt_utils.type_string()}, - {"name": "state", "datatype": dbt_utils.type_string()}, - {"name": "subsidiary", "datatype": dbt_utils.type_float()}, - {"name": "tax_contact_first_name", "datatype": dbt_utils.type_string()}, - {"name": "tax_contact_id", "datatype": dbt_utils.type_float()}, - {"name": "tax_contact_last_name", "datatype": dbt_utils.type_string()}, - {"name": "tax_contact_middle_name", "datatype": dbt_utils.type_string()}, - {"name": "tax_number", "datatype": dbt_utils.type_string()}, - {"name": "taxidnum", "datatype": dbt_utils.type_string()}, - {"name": "time_approver_id", "datatype": dbt_utils.type_float()}, - {"name": "transactions_need_approval", "datatype": dbt_utils.type_string()}, - {"name": "uen", "datatype": dbt_utils.type_string()}, - {"name": "unbilled_orders", "datatype": dbt_utils.type_float()}, - {"name": "unbilled_orders_foreign", "datatype": dbt_utils.type_float()}, - {"name": "url", "datatype": dbt_utils.type_string()}, - {"name": "vat_registration_no", "datatype": dbt_utils.type_string()}, - {"name": "vendor_extid", "datatype": dbt_utils.type_string()}, - {"name": "vendor_id", "datatype": dbt_utils.type_float()}, - {"name": "vendor_type_id", "datatype": dbt_utils.type_float()}, - {"name": "zipcode", "datatype": dbt_utils.type_string()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "account_owner", "datatype": dbt.type_string()}, + {"name": "accountnumber", "datatype": dbt.type_string()}, + {"name": "accounts_email", "datatype": dbt.type_string()}, + {"name": "annual_revenue", "datatype": dbt.type_float()}, + {"name": "auto_renewals", "datatype": dbt.type_string()}, + {"name": "auto_send_statements", "datatype": dbt.type_string()}, + {"name": "billaddress", "datatype": dbt.type_string()}, + {"name": "billing_class_id", "datatype": dbt.type_float()}, + {"name": "city", "datatype": dbt.type_string()}, + {"name": "comments", "datatype": dbt.type_string()}, + {"name": "companyname", "datatype": dbt.type_string()}, + {"name": "country", "datatype": dbt.type_string()}, + {"name": "create_date", "datatype": dbt.type_timestamp()}, + {"name": "creditlimit", "datatype": dbt.type_float()}, + {"name": "currency_id", "datatype": dbt.type_float()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "date_last_modified", "datatype": dbt.type_timestamp()}, + {"name": "dic", "datatype": dbt.type_string()}, + {"name": "email", "datatype": dbt.type_string()}, + {"name": "email_bill_payment_vouchers", "datatype": dbt.type_string()}, + {"name": "email_cash_sales", "datatype": dbt.type_string()}, + {"name": "email_credit_notes", "datatype": dbt.type_string()}, + {"name": "email_invoices", "datatype": dbt.type_string()}, + {"name": "email_item_fulfilments", "datatype": dbt.type_string()}, + {"name": "email_purchase_orders", "datatype": dbt.type_string()}, + {"name": "email_quotes", "datatype": dbt.type_string()}, + {"name": "email_sales_orders", "datatype": dbt.type_string()}, + {"name": "email_statements", "datatype": dbt.type_string()}, + {"name": "employee_number", "datatype": dbt.type_string()}, + {"name": "exemption_certificate_no", "datatype": dbt.type_string()}, + {"name": "expense_account_id", "datatype": dbt.type_float()}, + {"name": "fax", "datatype": dbt.type_string()}, + {"name": "full_name", "datatype": dbt.type_string()}, + {"name": "home_phone", "datatype": dbt.type_string()}, + {"name": "hris_id", "datatype": dbt.type_string()}, + {"name": "ico", "datatype": dbt.type_string()}, + {"name": "id_number_in_the_country_of_r", "datatype": dbt.type_string()}, + {"name": "id_type_in_the_country_of_r_id", "datatype": dbt.type_float()}, + {"name": "in_transit_balance", "datatype": dbt.type_float()}, + {"name": "incoterm", "datatype": dbt.type_string()}, + {"name": "industry_id", "datatype": dbt.type_float()}, + {"name": "invoice_via_procurement_syste", "datatype": dbt.type_string()}, + {"name": "invoicing_details", "datatype": dbt.type_string()}, + {"name": "is1099eligible", "datatype": dbt.type_string()}, + {"name": "is_partner", "datatype": dbt.type_string()}, + {"name": "is_person", "datatype": dbt.type_string()}, + {"name": "isemailhtml", "datatype": dbt.type_string()}, + {"name": "isemailpdf", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "labor_cost", "datatype": dbt.type_float()}, + {"name": "last_modified_date", "datatype": dbt.type_timestamp()}, + {"name": "last_sales_activity", "datatype": dbt.type_timestamp()}, + {"name": "line1", "datatype": dbt.type_string()}, + {"name": "line2", "datatype": dbt.type_string()}, + {"name": "line3", "datatype": dbt.type_string()}, + {"name": "loginaccess", "datatype": dbt.type_string()}, + {"name": "lsa_link", "datatype": dbt.type_string()}, + {"name": "lsa_link_name", "datatype": dbt.type_string()}, + {"name": "mobile_phone", "datatype": dbt.type_string()}, + {"name": "msa_effective_date", "datatype": dbt.type_timestamp()}, + {"name": "name", "datatype": dbt.type_string()}, + {"name": "no__of_employees", "datatype": dbt.type_float()}, + {"name": "openbalance", "datatype": dbt.type_float()}, + {"name": "openbalance_foreign", "datatype": dbt.type_float()}, + {"name": "payables_account_id", "datatype": dbt.type_float()}, + {"name": "payment_terms_id", "datatype": dbt.type_float()}, + {"name": "phone", "datatype": dbt.type_string()}, + {"name": "prepayment_balance", "datatype": dbt.type_float()}, + {"name": "printoncheckas", "datatype": dbt.type_string()}, + {"name": "purchaseorderamount", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantity", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantitydiff", "datatype": dbt.type_float()}, + {"name": "purchases_email", "datatype": dbt.type_string()}, + {"name": "receiptamount", "datatype": dbt.type_float()}, + {"name": "receiptquantity", "datatype": dbt.type_float()}, + {"name": "receiptquantitydiff", "datatype": dbt.type_float()}, + {"name": "represents_subsidiary_id", "datatype": dbt.type_float()}, + {"name": "restrict_access_to_expensify", "datatype": dbt.type_string()}, + {"name": "salesforce_id", "datatype": dbt.type_string()}, + {"name": "shipaddress", "datatype": dbt.type_string()}, + {"name": "shipping_email", "datatype": dbt.type_string()}, + {"name": "state", "datatype": dbt.type_string()}, + {"name": "subsidiary", "datatype": dbt.type_float()}, + {"name": "tax_contact_first_name", "datatype": dbt.type_string()}, + {"name": "tax_contact_id", "datatype": dbt.type_float()}, + {"name": "tax_contact_last_name", "datatype": dbt.type_string()}, + {"name": "tax_contact_middle_name", "datatype": dbt.type_string()}, + {"name": "tax_number", "datatype": dbt.type_string()}, + {"name": "taxidnum", "datatype": dbt.type_string()}, + {"name": "time_approver_id", "datatype": dbt.type_float()}, + {"name": "transactions_need_approval", "datatype": dbt.type_string()}, + {"name": "uen", "datatype": dbt.type_string()}, + {"name": "unbilled_orders", "datatype": dbt.type_float()}, + {"name": "unbilled_orders_foreign", "datatype": dbt.type_float()}, + {"name": "url", "datatype": dbt.type_string()}, + {"name": "vat_registration_no", "datatype": dbt.type_string()}, + {"name": "vendor_extid", "datatype": dbt.type_string()}, + {"name": "vendor_id", "datatype": dbt.type_float()}, + {"name": "vendor_type_id", "datatype": dbt.type_float()}, + {"name": "zipcode", "datatype": dbt.type_string()} ] %} {{ return(columns) }} @@ -113,72 +113,72 @@ {% set columns = [ {"name": "_fivetran_deleted", "datatype": "boolean"}, - {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, - {"name": "accountnumber", "datatype": dbt_utils.type_string()}, - {"name": "altemail", "datatype": dbt_utils.type_string()}, - {"name": "altname", "datatype": dbt_utils.type_string()}, - {"name": "altphone", "datatype": dbt_utils.type_string()}, - {"name": "balance", "datatype": dbt_utils.type_float()}, - {"name": "balanceprimary", "datatype": dbt_utils.type_float()}, - {"name": "billingclass", "datatype": dbt_utils.type_int()}, - {"name": "category", "datatype": dbt_utils.type_int()}, - {"name": "comments", "datatype": dbt_utils.type_string()}, - {"name": "companyname", "datatype": dbt_utils.type_string()}, - {"name": "contact", "datatype": dbt_utils.type_int()}, - {"name": "contactlist", "datatype": dbt_utils.type_string()}, - {"name": "creditlimit", "datatype": dbt_utils.type_float()}, - {"name": "currency", "datatype": dbt_utils.type_int()}, - {"name": "date_deleted", "datatype": dbt_utils.type_timestamp()}, - {"name": "datecreated", "datatype": dbt_utils.type_timestamp()}, - {"name": "defaultbankaccount", "datatype": dbt_utils.type_int()}, - {"name": "defaultbillingaddress", "datatype": dbt_utils.type_int()}, - {"name": "defaultshippingaddress", "datatype": dbt_utils.type_int()}, - {"name": "defaultvendorpaymentaccount", "datatype": dbt_utils.type_int()}, - {"name": "email", "datatype": dbt_utils.type_string()}, - {"name": "emailpreference", "datatype": dbt_utils.type_string()}, - {"name": "emailtransactions", "datatype": dbt_utils.type_string()}, - {"name": "entityid", "datatype": dbt_utils.type_string()}, - {"name": "entitynumber", "datatype": dbt_utils.type_int()}, - {"name": "entitytitle", "datatype": dbt_utils.type_string()}, - {"name": "expenseaccount", "datatype": dbt_utils.type_int()}, - {"name": "externalid", "datatype": dbt_utils.type_string()}, - {"name": "fax", "datatype": dbt_utils.type_string()}, - {"name": "faxtransactions", "datatype": dbt_utils.type_string()}, - {"name": "firstname", "datatype": dbt_utils.type_string()}, - {"name": "giveaccess", "datatype": dbt_utils.type_string()}, - {"name": "homephone", "datatype": dbt_utils.type_string()}, - {"name": "id", "datatype": dbt_utils.type_int()}, - {"name": "incoterm", "datatype": dbt_utils.type_int()}, - {"name": "isautogeneratedrepresentingentity", "datatype": dbt_utils.type_string()}, - {"name": "isinactive", "datatype": dbt_utils.type_string()}, - {"name": "isjobresourcevend", "datatype": dbt_utils.type_string()}, - {"name": "isperson", "datatype": dbt_utils.type_string()}, - {"name": "laborcost", "datatype": dbt_utils.type_float()}, - {"name": "lastmodifieddate", "datatype": dbt_utils.type_timestamp()}, - {"name": "lastname", "datatype": dbt_utils.type_string()}, - {"name": "legalname", "datatype": dbt_utils.type_string()}, - {"name": "middlename", "datatype": dbt_utils.type_string()}, - {"name": "mobilephone", "datatype": dbt_utils.type_string()}, - {"name": "payablesaccount", "datatype": dbt_utils.type_int()}, - {"name": "phone", "datatype": dbt_utils.type_string()}, - {"name": "printoncheckas", "datatype": dbt_utils.type_string()}, - {"name": "printtransactions", "datatype": dbt_utils.type_string()}, - {"name": "purchaseorderamount", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantity", "datatype": dbt_utils.type_float()}, - {"name": "purchaseorderquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "receiptamount", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantity", "datatype": dbt_utils.type_float()}, - {"name": "receiptquantitydiff", "datatype": dbt_utils.type_float()}, - {"name": "representingsubsidiary", "datatype": dbt_utils.type_int()}, - {"name": "rolesforsearch", "datatype": dbt_utils.type_string()}, - {"name": "salutation", "datatype": dbt_utils.type_string()}, - {"name": "subsidiaryedition", "datatype": dbt_utils.type_string()}, - {"name": "terms", "datatype": dbt_utils.type_int()}, - {"name": "title", "datatype": dbt_utils.type_string()}, - {"name": "unbilledorders", "datatype": dbt_utils.type_float()}, - {"name": "unbilledordersprimary", "datatype": dbt_utils.type_float()}, - {"name": "url", "datatype": dbt_utils.type_string()}, - {"name": "workcalendar", "datatype": dbt_utils.type_int()} + {"name": "_fivetran_synced", "datatype": dbt.type_timestamp()}, + {"name": "accountnumber", "datatype": dbt.type_string()}, + {"name": "altemail", "datatype": dbt.type_string()}, + {"name": "altname", "datatype": dbt.type_string()}, + {"name": "altphone", "datatype": dbt.type_string()}, + {"name": "balance", "datatype": dbt.type_float()}, + {"name": "balanceprimary", "datatype": dbt.type_float()}, + {"name": "billingclass", "datatype": dbt.type_int()}, + {"name": "category", "datatype": dbt.type_int()}, + {"name": "comments", "datatype": dbt.type_string()}, + {"name": "companyname", "datatype": dbt.type_string()}, + {"name": "contact", "datatype": dbt.type_int()}, + {"name": "contactlist", "datatype": dbt.type_string()}, + {"name": "creditlimit", "datatype": dbt.type_float()}, + {"name": "currency", "datatype": dbt.type_int()}, + {"name": "date_deleted", "datatype": dbt.type_timestamp()}, + {"name": "datecreated", "datatype": dbt.type_timestamp()}, + {"name": "defaultbankaccount", "datatype": dbt.type_int()}, + {"name": "defaultbillingaddress", "datatype": dbt.type_int()}, + {"name": "defaultshippingaddress", "datatype": dbt.type_int()}, + {"name": "defaultvendorpaymentaccount", "datatype": dbt.type_int()}, + {"name": "email", "datatype": dbt.type_string()}, + {"name": "emailpreference", "datatype": dbt.type_string()}, + {"name": "emailtransactions", "datatype": dbt.type_string()}, + {"name": "entityid", "datatype": dbt.type_string()}, + {"name": "entitynumber", "datatype": dbt.type_int()}, + {"name": "entitytitle", "datatype": dbt.type_string()}, + {"name": "expenseaccount", "datatype": dbt.type_int()}, + {"name": "externalid", "datatype": dbt.type_string()}, + {"name": "fax", "datatype": dbt.type_string()}, + {"name": "faxtransactions", "datatype": dbt.type_string()}, + {"name": "firstname", "datatype": dbt.type_string()}, + {"name": "giveaccess", "datatype": dbt.type_string()}, + {"name": "homephone", "datatype": dbt.type_string()}, + {"name": "id", "datatype": dbt.type_int()}, + {"name": "incoterm", "datatype": dbt.type_int()}, + {"name": "isautogeneratedrepresentingentity", "datatype": dbt.type_string()}, + {"name": "isinactive", "datatype": dbt.type_string()}, + {"name": "isjobresourcevend", "datatype": dbt.type_string()}, + {"name": "isperson", "datatype": dbt.type_string()}, + {"name": "laborcost", "datatype": dbt.type_float()}, + {"name": "lastmodifieddate", "datatype": dbt.type_timestamp()}, + {"name": "lastname", "datatype": dbt.type_string()}, + {"name": "legalname", "datatype": dbt.type_string()}, + {"name": "middlename", "datatype": dbt.type_string()}, + {"name": "mobilephone", "datatype": dbt.type_string()}, + {"name": "payablesaccount", "datatype": dbt.type_int()}, + {"name": "phone", "datatype": dbt.type_string()}, + {"name": "printoncheckas", "datatype": dbt.type_string()}, + {"name": "printtransactions", "datatype": dbt.type_string()}, + {"name": "purchaseorderamount", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantity", "datatype": dbt.type_float()}, + {"name": "purchaseorderquantitydiff", "datatype": dbt.type_float()}, + {"name": "receiptamount", "datatype": dbt.type_float()}, + {"name": "receiptquantity", "datatype": dbt.type_float()}, + {"name": "receiptquantitydiff", "datatype": dbt.type_float()}, + {"name": "representingsubsidiary", "datatype": dbt.type_int()}, + {"name": "rolesforsearch", "datatype": dbt.type_string()}, + {"name": "salutation", "datatype": dbt.type_string()}, + {"name": "subsidiaryedition", "datatype": dbt.type_string()}, + {"name": "terms", "datatype": dbt.type_int()}, + {"name": "title", "datatype": dbt.type_string()}, + {"name": "unbilledorders", "datatype": dbt.type_float()}, + {"name": "unbilledordersprimary", "datatype": dbt.type_float()}, + {"name": "url", "datatype": dbt.type_string()}, + {"name": "workcalendar", "datatype": dbt.type_int()} ] %} {{ return(columns) }} From f98e7d2e32dbdc77feac7be60813530916c3b9ff Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:36 -0800 Subject: [PATCH 05/25] Updating dbt version --- dbt_project.yml | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 7b6e2fc..b656131 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,21 +1,17 @@ config-version: 2 -require-dbt-version: [">=1.0.0", "<2.0.0"] - +require-dbt-version: [">=1.2.0", "<2.0.0"] name: 'netsuite_source' -version: '0.5.1' - +version: '0.6.0' models: netsuite_source: +materialized: table +schema: netsuite_source - netsuite: tmp: +materialized: view netsuite2: tmp: +materialized: view - vars: netsuite_source: @@ -37,8 +33,6 @@ vars: netsuite_transactions: "{{ source('netsuite','transactions') }}" netsuite_vendor_types: "{{ source('netsuite','vendor_types') }}" netsuite_vendors: "{{ source('netsuite','vendors') }}" - - # Netsuite2 netsuite2_accounting_books: "{{ source('netsuite2','accounting_book') }}" netsuite2_accounting_periods: "{{ source('netsuite2','accounting_period') }}" netsuite2_accounts: "{{ source('netsuite2','account') }}" @@ -62,7 +56,6 @@ vars: netsuite2_account_types: "{{ source('netsuite2', 'account_type') }}" netsuite2_entity_address: "{{ source('netsuite2', 'entity_address') }}" netsuite2_location_main_address: "{{ source('netsuite2', 'location_main_address') }}" - accounts_pass_through_columns: [] classes_pass_through_columns: [] departments_pass_through_columns: [] @@ -72,8 +65,7 @@ vars: locations_pass_through_columns: [] subsidiaries_pass_through_columns: [] consolidated_exchange_rates_pass_through_columns: [] - clean-targets: - - target - - dbt_modules - - dbt_packages +- target +- dbt_modules +- dbt_packages From 5fc4d0ec18a8bc3ec104b00d54203c327346a928 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:36 -0800 Subject: [PATCH 06/25] Updating dbt version --- integration_tests/dbt_project.yml | 66 ++++++++++++++----------------- 1 file changed, 30 insertions(+), 36 deletions(-) diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index d75c200..ae85c7a 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -1,14 +1,11 @@ name: 'netsuite_source_integration_tests' -version: '0.5.1' +version: '0.6.0' profile: 'integration_tests' config-version: 2 - vars: netsuite_source: netsuite_schema: netsuite_source_integration_tests - netsuite_data_model_override: netsuite # Set the variable to the same data model to generate run both sources for integration testing. - - # Netsuite Seed Data + netsuite_data_model_override: netsuite netsuite_accounting_books_identifier: "netsuite_accounting_books_data" netsuite_accounting_periods_identifier: "netsuite_accounting_periods_data" netsuite_accounts_identifier: "netsuite_accounts_data" @@ -26,35 +23,32 @@ vars: netsuite_transactions_identifier: "netsuite_transactions_data" netsuite_vendor_types_identifier: "netsuite_vendor_types_data" netsuite_vendors_identifier: "netsuite_vendors_data" - - # Netsuite2 Seed Data - netsuite2_accounting_book_identifier: "netsuite2_accounting_book_data" - netsuite2_accounting_period_identifier: "netsuite2_accounting_period_data" - netsuite2_account_identifier: "netsuite2_account_data" - netsuite2_classification_identifier: "netsuite2_classification_data" - netsuite2_consolidated_exchange_rate_identifier: "netsuite2_consolidated_exchange_rate_data" - netsuite2_currency_identifier: "netsuite2_currency_data" - netsuite2_customer_identifier: "netsuite2_customer_data" - netsuite2_department_identifier: "netsuite2_department_data" - netsuite2_entity_identifier: "netsuite2_entities_data" - netsuite2_item_identifier: "netsuite2_item_data" - netsuite2_job_identifier: "netsuite2_job_data" - netsuite2_location_identifier: "netsuite2_location_data" - netsuite2_subsidiary_identifier: "netsuite2_subsidiary_data" - netsuite2_transaction_accounting_line_identifier: "netsuite2_tran_acct_line_data" - netsuite2_transaction_line_identifier: "netsuite2_transaction_line_data" - netsuite2_transaction_identifier: "netsuite2_transaction_data" - netsuite2_vendor_identifier: "netsuite2_vendor_data" - netsuite2_vendor_category_identifier: "netsuite2_vendor_category_data" - netsuite2_accounting_book_subsidiaries_identifier: "netsuite2_accounting_book_sub_data" - netsuite2_accounting_period_fiscal_calendars_identifier: "netsuite2_accounting_period_fiscal_cal_data" - netsuite2_account_type_identifier: "netsuite2_account_type_data" - netsuite2_entity_address_identifier: "netsuite2_entity_address_data" - netsuite2_location_main_address_identifier: "netsuite2_location_main_address_data" - + netsuite2_accounting_book_identifier: "netsuite2_accounting_book_data" + netsuite2_accounting_period_identifier: "netsuite2_accounting_period_data" + netsuite2_account_identifier: "netsuite2_account_data" + netsuite2_classification_identifier: "netsuite2_classification_data" + netsuite2_consolidated_exchange_rate_identifier: "netsuite2_consolidated_exchange_rate_data" + netsuite2_currency_identifier: "netsuite2_currency_data" + netsuite2_customer_identifier: "netsuite2_customer_data" + netsuite2_department_identifier: "netsuite2_department_data" + netsuite2_entity_identifier: "netsuite2_entities_data" + netsuite2_item_identifier: "netsuite2_item_data" + netsuite2_job_identifier: "netsuite2_job_data" + netsuite2_location_identifier: "netsuite2_location_data" + netsuite2_subsidiary_identifier: "netsuite2_subsidiary_data" + netsuite2_transaction_accounting_line_identifier: "netsuite2_tran_acct_line_data" + netsuite2_transaction_line_identifier: "netsuite2_transaction_line_data" + netsuite2_transaction_identifier: "netsuite2_transaction_data" + netsuite2_vendor_identifier: "netsuite2_vendor_data" + netsuite2_vendor_category_identifier: "netsuite2_vendor_category_data" + netsuite2_accounting_book_subsidiaries_identifier: "netsuite2_accounting_book_sub_data" + netsuite2_accounting_period_fiscal_calendars_identifier: "netsuite2_accounting_period_fiscal_cal_data" + netsuite2_account_type_identifier: "netsuite2_account_type_data" + netsuite2_entity_address_identifier: "netsuite2_entity_address_data" + netsuite2_location_main_address_identifier: "netsuite2_location_main_address_data" seeds: - +quote_columns: "{{ true if target.type in ('redshift','postgres') else false }}" - netsuite_source_integration_tests: - +column_types: - ending: timestamp - due_date: timestamp \ No newline at end of file + +quote_columns: "{{ true if target.type in ('redshift','postgres') else false }}" + netsuite_source_integration_tests: + +column_types: + ending: timestamp + due_date: timestamp From e7d5e59cc3ddcf7593f614fc5fedb32e6ed467d8 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:37 -0800 Subject: [PATCH 07/25] Updating package dependencies --- packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.yml b/packages.yml index e8d9d9e..8911cb1 100644 --- a/packages.yml +++ b/packages.yml @@ -1,3 +1,3 @@ packages: - package: fivetran/fivetran_utils - version: [">=0.3.0", "<0.4.0"] + version: [">=0.4.0", "<0.5.0"] From 1870f0e5c26429bc15b2af96fbc574e75feea24b Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:38 -0800 Subject: [PATCH 08/25] deleting file: .circleci/config.yml --- .circleci/config.yml | 75 -------------------------------------------- 1 file changed, 75 deletions(-) delete mode 100644 .circleci/config.yml diff --git a/.circleci/config.yml b/.circleci/config.yml deleted file mode 100644 index cef7f07..0000000 --- a/.circleci/config.yml +++ /dev/null @@ -1,75 +0,0 @@ -version: 2 - -jobs: - build: - docker: - - image: circleci/python:3.7.9-stretch - - steps: - - checkout - - - run: - run: setup_creds - command: | - echo $GCLOUD_SERVICE_KEY | base64 --decode --ignore-garbage > ${HOME}/gcloud-service-key.json - - run: - name: "Setup dbt" - command: | - sudo apt install libsasl2-dev - python3 -m venv venv - . venv/bin/activate - pip install --upgrade pip setuptools - pip install -r integration_tests/requirements.txt - mkdir -p ~/.dbt - cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml - - run: - name: "Run Tests - Postgres" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target postgres --full-refresh - dbt run --target postgres --full-refresh --vars '{netsuite2__multibook_accounting_enabled: false, netsuite2__using_vendor_categories: false}' - dbt run --target postgres --full-refresh - dbt test --target postgres - - run: - name: "Run Tests - Redshift" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target redshift --full-refresh - dbt run --target redshift --full-refresh --vars '{netsuite2__multibook_accounting_enabled: false, netsuite2__using_vendor_categories: false}' - dbt run --target redshift --full-refresh - dbt test --target redshift - - run: - name: "Run Tests - Snowflake" - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target snowflake --full-refresh - dbt run --target snowflake --full-refresh --vars '{netsuite2__multibook_accounting_enabled: false, netsuite2__using_vendor_categories: false}' - dbt run --target snowflake --full-refresh - dbt test --target snowflake - - run: - name: "Run Tests - BigQuery" - environment: - GCLOUD_SERVICE_KEY_PATH: "/home/circleci/gcloud-service-key.json" - - command: | - . venv/bin/activate - echo `pwd` - cd integration_tests - dbt deps - dbt seed --target bigquery --full-refresh - dbt run --target bigquery --full-refresh --vars '{netsuite2__multibook_accounting_enabled: false, netsuite2__using_vendor_categories: false}' - dbt run --target bigquery --full-refresh - dbt test --target bigquery - - save_cache: - key: deps2-{{ .Branch }} - paths: - - "venv" From 6721321803f53b1e8f8cf9d96ef58b994f9765e4 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:38 -0800 Subject: [PATCH 09/25] deleting file: integration_tests/requirements.txt --- integration_tests/requirements.txt | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 integration_tests/requirements.txt diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt deleted file mode 100644 index 4913903..0000000 --- a/integration_tests/requirements.txt +++ /dev/null @@ -1,6 +0,0 @@ -dbt-snowflake>=1.0.0 -dbt-bigquery>=1.0.0 -dbt-redshift>=1.0.0 -dbt-postgres>=1.0.0 -dbt-spark>=1.0.0 -dbt-spark[PyHive]>=1.0.0 \ No newline at end of file From bcd65ab30cb5b0f1fc3cd6a316c51022782ed96f Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:39 -0800 Subject: [PATCH 10/25] deleting file: integration_tests/ci/sample.profiles.yml --- integration_tests/ci/sample.profiles.yml | 48 ------------------------ 1 file changed, 48 deletions(-) delete mode 100644 integration_tests/ci/sample.profiles.yml diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml deleted file mode 100644 index dc3f058..0000000 --- a/integration_tests/ci/sample.profiles.yml +++ /dev/null @@ -1,48 +0,0 @@ - -# HEY! This file is used in the netsuite integrations tests with CircleCI. -# You should __NEVER__ check credentials into version control. Thanks for reading :) - -config: - send_anonymous_usage_stats: False - use_colors: True - -integration_tests: - target: snowflake - outputs: - redshift: - type: redshift - host: "{{ env_var('CI_REDSHIFT_DBT_HOST') }}" - user: "{{ env_var('CI_REDSHIFT_DBT_USER') }}" - pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" - dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" - port: 5439 - schema: netsuite_source_integration_tests - threads: 8 - bigquery: - type: bigquery - method: service-account - keyfile: "{{ env_var('GCLOUD_SERVICE_KEY_PATH') }}" - project: 'dbt-package-testing' - schema: netsuite_source_integration_tests - threads: 8 - snowflake: - type: snowflake - account: "{{ env_var('CI_SNOWFLAKE_DBT_ACCOUNT') }}" - user: "{{ env_var('CI_SNOWFLAKE_DBT_USER') }}" - password: "{{ env_var('CI_SNOWFLAKE_DBT_PASS') }}" - role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" - database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" - warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" - schema: netsuite_source_integration_tests - threads: 8 - postgres: - type: postgres - host: "{{ env_var('CI_POSTGRES_DBT_HOST') }}" - user: "{{ env_var('CI_POSTGRES_DBT_USER') }}" - password: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" - port: 5432 - dbname: "{{ env_var('CI_POSTGRES_DBT_DATABASE') }}" - schema: netsuite_source_integration_tests - threads: 8 - keepalives_idle: 0 - sslmode: prefer \ No newline at end of file From 67573b8005ab8a4377506914df15464ebd62a6c3 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:39 -0800 Subject: [PATCH 11/25] adding file: integration_tests/requirements.txt --- integration_tests/requirements.txt | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 integration_tests/requirements.txt diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt new file mode 100644 index 0000000..46e2da6 --- /dev/null +++ b/integration_tests/requirements.txt @@ -0,0 +1,7 @@ +dbt-snowflake~=1.2.0 +dbt-bigquery~=1.2.0 +dbt-redshift~=1.2.0 +dbt-postgres~=1.2.0 +dbt-spark~=1.2.0 +dbt-spark[PyHive]~=1.2.0 +dbt-databricks~=1.2.0 \ No newline at end of file From 2e44c31ae96e9935abe605adac540c99a571819c Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:40 -0800 Subject: [PATCH 12/25] adding file: integration_tests/ci/sample.profiles.yml --- integration_tests/ci/sample.profiles.yml | 54 ++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 integration_tests/ci/sample.profiles.yml diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml new file mode 100644 index 0000000..f524bd8 --- /dev/null +++ b/integration_tests/ci/sample.profiles.yml @@ -0,0 +1,54 @@ + +# HEY! This file is used in the dbt package integrations tests with CircleCI. +# You should __NEVER__ check credentials into version control. Thanks for reading :) + +config: + send_anonymous_usage_stats: False + use_colors: True + +integration_tests: + target: redshift + outputs: + redshift: + type: redshift + host: "{{ env_var('CI_REDSHIFT_DBT_HOST') }}" + user: "{{ env_var('CI_REDSHIFT_DBT_USER') }}" + pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" + dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" + port: 5439 + schema: + threads: 8 + bigquery: + type: bigquery + method: service-account-json + project: 'dbt-package-testing' + schema: + threads: 8 + keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}" + snowflake: + type: snowflake + account: "{{ env_var('CI_SNOWFLAKE_DBT_ACCOUNT') }}" + user: "{{ env_var('CI_SNOWFLAKE_DBT_USER') }}" + password: "{{ env_var('CI_SNOWFLAKE_DBT_PASS') }}" + role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" + database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" + warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" + schema: + threads: 8 + postgres: + type: postgres + host: "{{ env_var('CI_POSTGRES_DBT_HOST') }}" + user: "{{ env_var('CI_POSTGRES_DBT_USER') }}" + pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" + dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" + port: 5432 + schema: + threads: 8 + databricks: + catalog: null + host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" + http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" + schema: + threads: 2 + token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" + type: databricks \ No newline at end of file From 7dba14c28f2aed54576d48b3f7d89df0c3eefb47 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:40 -0800 Subject: [PATCH 13/25] adding file: .buildkite/pipeline.yml --- .buildkite/pipeline.yml | 73 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 73 insertions(+) create mode 100644 .buildkite/pipeline.yml diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml new file mode 100644 index 0000000..b84fe04 --- /dev/null +++ b/.buildkite/pipeline.yml @@ -0,0 +1,73 @@ +steps: + - label: ":postgres: Run Tests - Postgres" + key: "run-dbt-postgres" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "CI_POSTGRES_DBT_DBNAME" + - "CI_POSTGRES_DBT_HOST" + - "CI_POSTGRES_DBT_PASS" + - "CI_POSTGRES_DBT_USER" + commands: | + bash .buildkite/scripts/run_models.sh postgres + + - label: ":snowflake-db: Run Tests - Snowflake" + key: "run_dbt_snowflake" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "CI_SNOWFLAKE_DBT_ACCOUNT" + - "CI_SNOWFLAKE_DBT_DATABASE" + - "CI_SNOWFLAKE_DBT_PASS" + - "CI_SNOWFLAKE_DBT_ROLE" + - "CI_SNOWFLAKE_DBT_USER" + - "CI_SNOWFLAKE_DBT_WAREHOUSE" + commands: | + bash .buildkite/scripts/run_models.sh snowflake + + - label: ":gcloud: Run Tests - BigQuery" + key: "run_dbt_bigquery" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "GCLOUD_SERVICE_KEY" + commands: | + bash .buildkite/scripts/run_models.sh bigquery + + - label: ":amazon-redshift: Run Tests - Redshift" + key: "run_dbt_redshift" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "CI_REDSHIFT_DBT_DBNAME" + - "CI_REDSHIFT_DBT_HOST" + - "CI_REDSHIFT_DBT_PASS" + - "CI_REDSHIFT_DBT_USER" + commands: | + bash .buildkite/scripts/run_models.sh redshift + + - label: ":upside_down_face: Run Tests - Databricks" + key: "run_dbt_databricks" + plugins: + - docker#v3.13.0: + image: "python:3.8" + shell: [ "/bin/bash", "-e", "-c" ] + environment: + - "BASH_ENV=/tmp/.bashrc" + - "CI_DATABRICKS_DBT_HOST" + - "CI_DATABRICKS_DBT_HTTP_PATH" + - "CI_DATABRICKS_DBT_TOKEN" + commands: | + bash .buildkite/scripts/run_models.sh databricks \ No newline at end of file From 8683c82661dad9f38a0616a1c0926151d8d84b67 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:41 -0800 Subject: [PATCH 14/25] adding file: .buildkite/scripts/run_models.sh --- .buildkite/scripts/run_models.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .buildkite/scripts/run_models.sh diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh new file mode 100644 index 0000000..a18ae39 --- /dev/null +++ b/.buildkite/scripts/run_models.sh @@ -0,0 +1,23 @@ +#!/bin/bash + +apt-get update +apt-get install libsasl2-dev + +python3 -m venv venv +. venv/bin/activate +pip install --upgrade pip setuptools +pip install -r integration_tests/requirements.txt +mkdir -p ~/.dbt +cp integration_tests/ci/sample.profiles.yml ~/.dbt/profiles.yml + +db=$1 +echo `pwd` +cd integration_tests +dbt deps +dbt seed --target "$db" --full-refresh +dbt run --target "$db" --full-refresh +dbt test --target "$db" +## UPDATE FOR VARS HERE, IF NO VARS, PLEASE REMOVE +dbt run --vars '{apple_search_ads__using_search_terms: True}' --target "$db" --full-refresh +dbt test --target "$db" +### END VARS CHUNK, REMOVE IF NOT USING \ No newline at end of file From 1e8adc98eb41d347bd179181c657f6dde23f4840 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen <94874400+fivetran-sheringuyen@users.noreply.github.com> Date: Thu, 13 Oct 2022 15:59:41 -0800 Subject: [PATCH 15/25] adding file: .buildkite/hooks/pre-command --- .buildkite/hooks/pre-command | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .buildkite/hooks/pre-command diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command new file mode 100644 index 0000000..04c85c0 --- /dev/null +++ b/.buildkite/hooks/pre-command @@ -0,0 +1,24 @@ +#!/bin/bash + +set -e + +# Export secrets for Docker containers. +# Restrict exposing secrets only to the steps that need them +export GCLOUD_SERVICE_KEY=$(gcloud secrets versions access latest --secret="GCLOUD_SERVICE_KEY" --project="dbt-package-testing-363917") +export CI_POSTGRES_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_POSTGRES_DBT_HOST" --project="dbt-package-testing-363917") +export CI_POSTGRES_DBT_USER=$(gcloud secrets versions access latest --secret="CI_POSTGRES_DBT_USER" --project="dbt-package-testing-363917") +export CI_POSTGRES_DBT_PASS=$(gcloud secrets versions access latest --secret="CI_POSTGRES_DBT_PASS" --project="dbt-package-testing-363917") +export CI_POSTGRES_DBT_DBNAME=$(gcloud secrets versions access latest --secret="CI_POSTGRES_DBT_DBNAME" --project="dbt-package-testing-363917") +export CI_REDSHIFT_DBT_DBNAME=$(gcloud secrets versions access latest --secret="CI_REDSHIFT_DBT_DBNAME" --project="dbt-package-testing-363917") +export CI_REDSHIFT_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_REDSHIFT_DBT_HOST" --project="dbt-package-testing-363917") +export CI_REDSHIFT_DBT_PASS=$(gcloud secrets versions access latest --secret="CI_REDSHIFT_DBT_PASS" --project="dbt-package-testing-363917") +export CI_REDSHIFT_DBT_USER=$(gcloud secrets versions access latest --secret="CI_REDSHIFT_DBT_USER" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_ACCOUNT=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_ACCOUNT" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_DATABASE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_DATABASE" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_PASS=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_PASS" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_ROLE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_ROLE" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_USER=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_USER" --project="dbt-package-testing-363917") +export CI_SNOWFLAKE_DBT_WAREHOUSE=$(gcloud secrets versions access latest --secret="CI_SNOWFLAKE_DBT_WAREHOUSE" --project="dbt-package-testing-363917") +export CI_DATABRICKS_DBT_HOST=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HOST" --project="dbt-package-testing-363917") +export CI_DATABRICKS_DBT_HTTP_PATH=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_HTTP_PATH" --project="dbt-package-testing-363917") +export CI_DATABRICKS_DBT_TOKEN=$(gcloud secrets versions access latest --secret="CI_DATABRICKS_DBT_TOKEN" --project="dbt-package-testing-363917") \ No newline at end of file From fe99e3be1d475c11a3d9d1d4eec00b3668557176 Mon Sep 17 00:00:00 2001 From: rpalloni Date: Fri, 14 Oct 2022 12:16:04 +0200 Subject: [PATCH 16/25] fix pr ref and items/vendors macros --- CHANGELOG.md | 6 +++--- macros/get_items_columns.sql | 2 ++ macros/get_vendors_columns.sql | 4 ++++ 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cbc0af8..b5a1dbc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,11 +2,11 @@ ## Features - Added this changelog to capture iterations of the package! -- Added the `vendors_pass_through_columns` variable to be leveraged within the `stg_netsuite__vendors` 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`. -- Added the `items_pass_through_columns` variable to be leveraged within the `stg_netsuite__items` 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`. +- Added the `vendors_pass_through_columns` variable to be leveraged within the `stg_netsuite__vendors` 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`. ([#23](https://github.com/fivetran/dbt_netsuite_source/pull/23)) +- Added the `items_pass_through_columns` variable to be leveraged within the `stg_netsuite__items` 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`. ([#23](https://github.com/fivetran/dbt_netsuite_source/pull/23)) ## Contributors -- [rpalloni](https://github.com/rpalloni) +- [rpalloni](https://github.com/rpalloni) ([#23](https://github.com/fivetran/dbt_netsuite_source/pull/23)) # dbt_netsuite_source v0.5.1 diff --git a/macros/get_items_columns.sql b/macros/get_items_columns.sql index 7526547..c0573c9 100644 --- a/macros/get_items_columns.sql +++ b/macros/get_items_columns.sql @@ -351,6 +351,8 @@ {"name": "yahooproductfeed", "datatype": dbt_utils.type_string()} ] %} +{{ fivetran_utils.add_pass_through_columns(columns, var('items_pass_through_columns')) }} + {{ return(columns) }} {% endmacro %} diff --git a/macros/get_vendors_columns.sql b/macros/get_vendors_columns.sql index f5b6851..75ca6d6 100644 --- a/macros/get_vendors_columns.sql +++ b/macros/get_vendors_columns.sql @@ -105,6 +105,8 @@ {"name": "zipcode", "datatype": dbt_utils.type_string()} ] %} +{{ fivetran_utils.add_pass_through_columns(columns, var('vendors_pass_through_columns')) }} + {{ return(columns) }} {% endmacro %} @@ -181,6 +183,8 @@ {"name": "workcalendar", "datatype": dbt_utils.type_int()} ] %} +{{ fivetran_utils.add_pass_through_columns(columns, var('vendors_pass_through_columns')) }} + {{ return(columns) }} {% endmacro %} From fda8b92cfc5fdd51005abca7b13d890ee5845afd Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Fri, 14 Oct 2022 09:11:05 -0500 Subject: [PATCH 17/25] PR 23 merge with 24 updates --- CHANGELOG.md | 41 ++++++++++++++++++++++++++++++++++-- macros/get_items_columns.sql | 2 ++ 2 files changed, 41 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b5a1dbc..64e6abd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,44 @@ -# dbt_netsuite_source v0.5.2 +# dbt_netsuite_source v0.6.0 + +## 🚨 Breaking Changes 🚨: +(PR #24)[https://github.com/fivetran/dbt_netsuite_source/pull/24] includes the following breaking changes: +- Dispatch update for dbt-utils to dbt-core cross-db macros migration. Specifically `{{ dbt_utils. }}` have been updated to `{{ dbt. }}` for the below macros: + - `any_value` + - `bool_or` + - `cast_bool_to_text` + - `concat` + - `date_trunc` + - `dateadd` + - `datediff` + - `escape_single_quotes` + - `except` + - `hash` + - `intersect` + - `last_day` + - `length` + - `listagg` + - `position` + - `replace` + - `right` + - `safe_cast` + - `split_part` + - `string_literal` + - `type_bigint` + - `type_float` + - `type_int` + - `type_numeric` + - `type_string` + - `type_timestamp` + - `array_append` + - `array_concat` + - `array_construct` +- For `current_timestamp` and `current_timestamp_in_utc` macros, the dispatch AND the macro names have been updated to the below, respectively: + - `dbt.current_timestamp_backcompat` + - `dbt.current_timestamp_in_utc_backcompat` +- `dbt_utils.surrogate_key` has also been updated to `dbt_utils.generate_surrogate_key`. Since the method for creating surrogate keys differ, we suggest all users do a `full-refresh` for the most accurate data. For more information, please refer to dbt-utils [release notes](https://github.com/dbt-labs/dbt-utils/releases) for this update. +- `packages.yml` has been updated to reflect new default `fivetran/fivetran_utils` version, previously `[">=0.3.0", "<0.4.0"]` now `[">=0.4.0", "<0.5.0"]`. ## Features -- Added this changelog to capture iterations of the package! - Added the `vendors_pass_through_columns` variable to be leveraged within the `stg_netsuite__vendors` 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`. ([#23](https://github.com/fivetran/dbt_netsuite_source/pull/23)) - Added the `items_pass_through_columns` variable to be leveraged within the `stg_netsuite__items` 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`. ([#23](https://github.com/fivetran/dbt_netsuite_source/pull/23)) diff --git a/macros/get_items_columns.sql b/macros/get_items_columns.sql index 9866fc3..ed7a90d 100644 --- a/macros/get_items_columns.sql +++ b/macros/get_items_columns.sql @@ -183,6 +183,8 @@ {"name": "work_order_lead_time", "datatype": dbt.type_float()} ] %} +{{ fivetran_utils.add_pass_through_columns(columns, var('items_pass_through_columns')) }} + {{ return(columns) }} {% endmacro %} From fdfcf4650dcb9b5252380fec3bf97a8fe2e5081d Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Fri, 14 Oct 2022 09:12:13 -0500 Subject: [PATCH 18/25] hyperlink fix --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64e6abd..e3cf3e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # dbt_netsuite_source v0.6.0 ## 🚨 Breaking Changes 🚨: -(PR #24)[https://github.com/fivetran/dbt_netsuite_source/pull/24] includes the following breaking changes: +[PR #24](https://github.com/fivetran/dbt_netsuite_source/pull/24) includes the following breaking changes: - Dispatch update for dbt-utils to dbt-core cross-db macros migration. Specifically `{{ dbt_utils. }}` have been updated to `{{ dbt. }}` for the below macros: - `any_value` - `bool_or` From 8e336475bcb6e5237f26f64e1f5b625d7e464d82 Mon Sep 17 00:00:00 2001 From: Sheri Nguyen Date: Mon, 17 Oct 2022 09:58:14 -0500 Subject: [PATCH 19/25] Update dbt adapter versions and dbt required versions --- dbt_project.yml | 2 +- integration_tests/requirements.txt | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 7d71836..21d32c5 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,5 +1,5 @@ config-version: 2 -require-dbt-version: [">=1.2.0", "<2.0.0"] +require-dbt-version: [">=1.3.0", "<2.0.0"] name: 'netsuite_source' version: '0.6.0' diff --git a/integration_tests/requirements.txt b/integration_tests/requirements.txt index 46e2da6..87ae0f9 100644 --- a/integration_tests/requirements.txt +++ b/integration_tests/requirements.txt @@ -1,7 +1,7 @@ -dbt-snowflake~=1.2.0 -dbt-bigquery~=1.2.0 -dbt-redshift~=1.2.0 -dbt-postgres~=1.2.0 -dbt-spark~=1.2.0 -dbt-spark[PyHive]~=1.2.0 -dbt-databricks~=1.2.0 \ No newline at end of file +dbt-snowflake>=1.3.0,<2.0.0 +dbt-bigquery>=1.3.0,<2.0.0 +dbt-redshift>=1.3.0,<2.0.0 +dbt-postgres>=1.3.0,<2.0.0 +dbt-spark>=1.3.0,<2.0.0 +dbt-spark[PyHive]>=1.3.0,<2.0.0 +dbt-databricks>=1.3.0,<2.0.0 \ No newline at end of file From 0624974d64ebe9144546b24ac5d1dd8bc7ee19b5 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Mon, 24 Oct 2022 15:27:42 -0500 Subject: [PATCH 20/25] docs regen --- integration_tests/ci/sample.profiles.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index f524bd8..19e8633 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -16,13 +16,13 @@ integration_tests: pass: "{{ env_var('CI_REDSHIFT_DBT_PASS') }}" dbname: "{{ env_var('CI_REDSHIFT_DBT_DBNAME') }}" port: 5439 - schema: + schema: netsuite_source_integration_tests threads: 8 bigquery: type: bigquery method: service-account-json project: 'dbt-package-testing' - schema: + schema: netsuite_source_integration_tests threads: 8 keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}" snowflake: @@ -33,7 +33,7 @@ integration_tests: role: "{{ env_var('CI_SNOWFLAKE_DBT_ROLE') }}" database: "{{ env_var('CI_SNOWFLAKE_DBT_DATABASE') }}" warehouse: "{{ env_var('CI_SNOWFLAKE_DBT_WAREHOUSE') }}" - schema: + schema: netsuite_source_integration_tests threads: 8 postgres: type: postgres @@ -42,13 +42,13 @@ integration_tests: pass: "{{ env_var('CI_POSTGRES_DBT_PASS') }}" dbname: "{{ env_var('CI_POSTGRES_DBT_DBNAME') }}" port: 5432 - schema: + schema: netsuite_source_integration_tests threads: 8 databricks: catalog: null host: "{{ env_var('CI_DATABRICKS_DBT_HOST') }}" http_path: "{{ env_var('CI_DATABRICKS_DBT_HTTP_PATH') }}" - schema: + schema: netsuite_source_integration_tests threads: 2 token: "{{ env_var('CI_DATABRICKS_DBT_TOKEN') }}" type: databricks \ No newline at end of file From 5f831c7b9bf2b2e4b1f7566cd6bf7aeb08f1c762 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Mon, 24 Oct 2022 15:27:52 -0500 Subject: [PATCH 21/25] docs regen --- .buildkite/pipeline.yml | 16 +--------------- .buildkite/scripts/run_models.sh | 2 +- README.md | 8 ++++---- docs/catalog.json | 2 +- docs/index.html | 24 ++++++++++++------------ docs/manifest.json | 2 +- docs/run_results.json | 2 +- 7 files changed, 21 insertions(+), 35 deletions(-) diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index b84fe04..6d5cf8e 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -56,18 +56,4 @@ steps: - "CI_REDSHIFT_DBT_PASS" - "CI_REDSHIFT_DBT_USER" commands: | - bash .buildkite/scripts/run_models.sh redshift - - - label: ":upside_down_face: Run Tests - Databricks" - key: "run_dbt_databricks" - plugins: - - docker#v3.13.0: - image: "python:3.8" - shell: [ "/bin/bash", "-e", "-c" ] - environment: - - "BASH_ENV=/tmp/.bashrc" - - "CI_DATABRICKS_DBT_HOST" - - "CI_DATABRICKS_DBT_HTTP_PATH" - - "CI_DATABRICKS_DBT_TOKEN" - commands: | - bash .buildkite/scripts/run_models.sh databricks \ No newline at end of file + bash .buildkite/scripts/run_models.sh redshift \ No newline at end of file diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index a18ae39..485bd3a 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -18,6 +18,6 @@ dbt seed --target "$db" --full-refresh dbt run --target "$db" --full-refresh dbt test --target "$db" ## UPDATE FOR VARS HERE, IF NO VARS, PLEASE REMOVE -dbt run --vars '{apple_search_ads__using_search_terms: True}' --target "$db" --full-refresh +dbt run --vars '{netsuite2__multibook_accounting_enabled: false, netsuite2__using_vendor_categories: false}' --target "$db" --full-refresh dbt test --target "$db" ### END VARS CHUNK, REMOVE IF NOT USING \ No newline at end of file diff --git a/README.md b/README.md index c2d93fc..07513c4 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ href="https://github.com/fivetran/dbt_netsuite_source/blob/main/LICENSE"> - + @@ -75,7 +75,7 @@ Include the following netsuite_source package version in your `packages.yml` fil ```yaml packages: - package: fivetran/netsuite_source - version: [">=0.5.0", "<0.6.0"] + version: [">=0.6.0", "<0.7.0"] ``` ## Step 3: Define Netsuite.com or Netsuite2 Source @@ -185,10 +185,10 @@ This dbt package is dependent on the following dbt packages. Please be aware tha ```yml packages: - package: fivetran/fivetran_utils - version: [">=0.3.0", "<0.4.0"] + version: [">=0.4.0", "<0.5.0"] - package: dbt-labs/dbt_utils - version: [">=0.8.0", "<0.9.0"] + version: [">=1.0.0", "<1.1.0"] ``` # 🙌 How is this package maintained and can I contribute? diff --git a/docs/catalog.json b/docs/catalog.json index c486dac..fb7ebff 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.0.4", "generated_at": "2022-07-26T22:56:16.960701Z", "invocation_id": "50807ff8-9fa8-41d4-91a0-2cb3e52fde86", "env": {}}, "nodes": {"seed.netsuite_source_integration_tests.netsuite2_account_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data"}, "seed.netsuite_source_integration_tests.netsuite2_account_type_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_type_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_sub_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_fiscal_cal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, "seed.netsuite_source_integration_tests.netsuite2_classification_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_classification_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data"}, "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_consolidated_exchange_rate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data"}, "seed.netsuite_source_integration_tests.netsuite2_currency_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_currency_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data"}, "seed.netsuite_source_integration_tests.netsuite2_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data"}, "seed.netsuite_source_integration_tests.netsuite2_department_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data"}, "seed.netsuite_source_integration_tests.netsuite2_entities_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entities_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data"}, "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entity_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data"}, "seed.netsuite_source_integration_tests.netsuite2_item_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data"}, "seed.netsuite_source_integration_tests.netsuite2_job_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_job_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data"}, "seed.netsuite_source_integration_tests.netsuite2_location_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data"}, "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_main_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data"}, "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_subsidiary_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data"}, "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_tran_acct_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data"}, "seed.netsuite_source_integration_tests.netsuite2_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data"}, "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data"}, "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_category_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data"}, "seed.netsuite_source_integration_tests.netsuite2_vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data"}, "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_books_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data"}, "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_periods_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data"}, "seed.netsuite_source_integration_tests.netsuite_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_classes_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_classes_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data"}, "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_consolidated_exchange_rates_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data"}, "seed.netsuite_source_integration_tests.netsuite_currencies_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_currencies_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data"}, "seed.netsuite_source_integration_tests.netsuite_customers_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_customers_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data"}, "seed.netsuite_source_integration_tests.netsuite_departments_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_departments_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data"}, "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_expense_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_income_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_items_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_items_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data"}, "seed.netsuite_source_integration_tests.netsuite_locations_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_locations_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data"}, "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_subsidiaries_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data"}, "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transaction_lines_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data"}, "seed.netsuite_source_integration_tests.netsuite_transactions_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transactions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data"}, "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendor_types_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data"}, "seed.netsuite_source_integration_tests.netsuite_vendors_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendors_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data"}, "model.netsuite_source.stg_netsuite2__account_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__account_types", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_type_id": {"type": "text", "index": 3, "name": "account_type_id", "comment": null}, "is_balancesheet": {"type": "boolean", "index": 4, "name": "is_balancesheet", "comment": null}, "is_leftside": {"type": "boolean", "index": 5, "name": "is_leftside", "comment": null}, "type_name": {"type": "text", "index": 6, "name": "type_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__account_types_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "accounting_book_id": {"type": "integer", "index": 3, "name": "accounting_book_id", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "subsidiary_id": {"type": "integer", "index": 5, "name": "subsidiary_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_books", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 3, "name": "accounting_book_name", "comment": null}, "base_book_id": {"type": "integer", "index": 4, "name": "base_book_id", "comment": null}, "effective_period_id": {"type": "integer", "index": 5, "name": "effective_period_id", "comment": null}, "is_adjustment_only": {"type": "boolean", "index": 6, "name": "is_adjustment_only", "comment": null}, "is_consolidated": {"type": "boolean", "index": 7, "name": "is_consolidated", "comment": null}, "is_contingent_revenue_handling": {"type": "character varying", "index": 8, "name": "is_contingent_revenue_handling", "comment": null}, "is_primary": {"type": "boolean", "index": 9, "name": "is_primary", "comment": null}, "is_two_step_revenue_allocation": {"type": "character varying", "index": 10, "name": "is_two_step_revenue_allocation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_books_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "parent_id": {"type": "integer", "index": 5, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "accounting_period_id": {"type": "integer", "index": 2, "name": "accounting_period_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "starting_at": {"type": "timestamp without time zone", "index": 5, "name": "starting_at", "comment": null}, "ending_at": {"type": "timestamp without time zone", "index": 6, "name": "ending_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 7, "name": "closed_at", "comment": null}, "is_quarter": {"type": "boolean", "index": 8, "name": "is_quarter", "comment": null}, "is_year": {"type": "boolean", "index": 9, "name": "is_year", "comment": null}, "is_adjustment": {"type": "boolean", "index": 10, "name": "is_adjustment", "comment": null}, "is_posting": {"type": "boolean", "index": 11, "name": "is_posting", "comment": null}, "is_closed": {"type": "boolean", "index": 12, "name": "is_closed", "comment": null}, "is_all_locked": {"type": "boolean", "index": 13, "name": "is_all_locked", "comment": null}, "is_ar_locked": {"type": "boolean", "index": 14, "name": "is_ar_locked", "comment": null}, "is_ap_locked": {"type": "boolean", "index": 15, "name": "is_ap_locked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_periods_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, "model.netsuite_source.stg_netsuite2__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "account_external_id": {"type": "text", "index": 3, "name": "account_external_id", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "account_type_id": {"type": "text", "index": 6, "name": "account_type_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "account_description": {"type": "integer", "index": 8, "name": "account_description", "comment": null}, "deferral_account_id": {"type": "integer", "index": 9, "name": "deferral_account_id", "comment": null}, "cash_flow_rate_type": {"type": "text", "index": 10, "name": "cash_flow_rate_type", "comment": null}, "general_rate_type": {"type": "text", "index": 11, "name": "general_rate_type", "comment": null}, "currency_id": {"type": "integer", "index": 12, "name": "currency_id", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "location_id": {"type": "integer", "index": 15, "name": "location_id", "comment": null}, "is_including_child_subs": {"type": "boolean", "index": 16, "name": "is_including_child_subs", "comment": null}, "is_inactive": {"type": "boolean", "index": 17, "name": "is_inactive", "comment": null}, "is_summary": {"type": "boolean", "index": 18, "name": "is_summary", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, "model.netsuite_source.stg_netsuite2__classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__classes", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 2, "name": "class_id", "comment": null}, "class_external_id": {"type": "integer", "index": 3, "name": "class_external_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 5, "name": "full_name", "comment": null}, "is_inactive": {"type": "boolean", "index": 6, "name": "is_inactive", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 7, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__classes_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 2, "name": "accounting_period_id", "comment": null}, "from_currency_id": {"type": "integer", "index": 3, "name": "from_currency_id", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 4, "name": "from_subsidiary_id", "comment": null}, "to_currency_id": {"type": "integer", "index": 5, "name": "to_currency_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 6, "name": "to_subsidiary_id", "comment": null}, "current_rate": {"type": "integer", "index": 7, "name": "current_rate", "comment": null}, "average_rate": {"type": "integer", "index": 8, "name": "average_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 9, "name": "historical_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, "model.netsuite_source.stg_netsuite2__currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__currencies", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "currency_id": {"type": "integer", "index": 2, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 4, "name": "symbol", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__currencies_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, "model.netsuite_source.stg_netsuite2__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__customers", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "entity_id": {"type": "text", "index": 2, "name": "entity_id", "comment": null}, "customer_external_id": {"type": "integer", "index": 3, "name": "customer_external_id", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}, "is_person": {"type": "boolean", "index": 5, "name": "is_person", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "first_name": {"type": "text", "index": 7, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 8, "name": "last_name", "comment": null}, "email_address": {"type": "text", "index": 9, "name": "email_address", "comment": null}, "phone_number": {"type": "integer", "index": 10, "name": "phone_number", "comment": null}, "default_billing_address_id": {"type": "integer", "index": 11, "name": "default_billing_address_id", "comment": null}, "default_shipping_address_id": {"type": "integer", "index": 12, "name": "default_shipping_address_id", "comment": null}, "receivables_account_id": {"type": "integer", "index": 13, "name": "receivables_account_id", "comment": null}, "currency_id": {"type": "integer", "index": 14, "name": "currency_id", "comment": null}, "date_first_order_at": {"type": "integer", "index": 15, "name": "date_first_order_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__customers_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, "model.netsuite_source.stg_netsuite2__departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__departments", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "department_id": {"type": "integer", "index": 2, "name": "department_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 5, "name": "full_name", "comment": null}, "subsidiary_id": {"type": "text", "index": 6, "name": "subsidiary_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 7, "name": "is_inactive", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__departments_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, "model.netsuite_source.stg_netsuite2__entities": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entities", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "entity_id": {"type": "integer", "index": 2, "name": "entity_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "entity_name": {"type": "text", "index": 4, "name": "entity_name", "comment": null}, "entity_type": {"type": "text", "index": 5, "name": "entity_type", "comment": null}, "is_person": {"type": "boolean", "index": 6, "name": "is_person", "comment": null}, "contact_id": {"type": "integer", "index": 7, "name": "contact_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "employee_id": {"type": "integer", "index": 9, "name": "employee_id", "comment": null}, "job_id": {"type": "integer", "index": 10, "name": "job_id", "comment": null}, "vendor_id": {"type": "integer", "index": 11, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entities_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, "model.netsuite_source.stg_netsuite2__entity_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entity_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 2, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 3, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 4, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 5, "name": "addressee", "comment": null}, "full_address": {"type": "text", "index": 6, "name": "full_address", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}, "nkey": {"type": "integer", "index": 10, "name": "nkey", "comment": null}, "zipcode": {"type": "integer", "index": 11, "name": "zipcode", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entity_address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, "model.netsuite_source.stg_netsuite2__items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__items", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 5, "name": "sales_description", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 8, "name": "location_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 9, "name": "subsidiary_id", "comment": null}, "asset_account_id": {"type": "integer", "index": 10, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "integer", "index": 11, "name": "expense_account_id", "comment": null}, "gain_loss_account_id": {"type": "integer", "index": 12, "name": "gain_loss_account_id", "comment": null}, "income_account_id": {"type": "integer", "index": 13, "name": "income_account_id", "comment": null}, "interco_expense_account_id": {"type": "integer", "index": 14, "name": "interco_expense_account_id", "comment": null}, "interco_income_account_id": {"type": "integer", "index": 15, "name": "interco_income_account_id", "comment": null}, "deferred_expense_account_id": {"type": "integer", "index": 16, "name": "deferred_expense_account_id", "comment": null}, "deferred_revenue_account_id": {"type": "integer", "index": 17, "name": "deferred_revenue_account_id", "comment": null}, "parent_item_id": {"type": "integer", "index": 18, "name": "parent_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, "model.netsuite_source.stg_netsuite2__items_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__items_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, "model.netsuite_source.stg_netsuite2__jobs": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__jobs", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "job_id": {"type": "integer", "index": 2, "name": "job_id", "comment": null}, "job_external_id": {"type": "integer", "index": 3, "name": "job_external_id", "comment": null}, "customer_id": {"type": "integer", "index": 4, "name": "customer_id", "comment": null}, "entity_id": {"type": "text", "index": 5, "name": "entity_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 6, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 7, "name": "shipping_address_id", "comment": null}, "parent_id": {"type": "integer", "index": 8, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__jobs_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, "model.netsuite_source.stg_netsuite2__location_main_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__location_main_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 2, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 3, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 4, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 5, "name": "addressee", "comment": null}, "full_address": {"type": "text", "index": 6, "name": "full_address", "comment": null}, "city": {"type": "integer", "index": 7, "name": "city", "comment": null}, "country": {"type": "integer", "index": 8, "name": "country", "comment": null}, "state": {"type": "integer", "index": 9, "name": "state", "comment": null}, "nkey": {"type": "integer", "index": 10, "name": "nkey", "comment": null}, "zipcode": {"type": "integer", "index": 11, "name": "zipcode", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__location_main_address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, "model.netsuite_source.stg_netsuite2__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__locations", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 4, "name": "full_name", "comment": null}, "main_address_id": {"type": "integer", "index": 5, "name": "main_address_id", "comment": null}, "parent_id": {"type": "integer", "index": 6, "name": "parent_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 7, "name": "subsidiary_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__locations_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "subsidiary_id": {"type": "integer", "index": 2, "name": "subsidiary_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 4, "name": "full_name", "comment": null}, "email_address": {"type": "integer", "index": 5, "name": "email_address", "comment": null}, "main_address_id": {"type": "integer", "index": 6, "name": "main_address_id", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 9, "name": "fiscal_calendar_id", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "transaction_id": {"type": "integer", "index": 3, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 5, "name": "accounting_book_id", "comment": null}, "account_id": {"type": "integer", "index": 6, "name": "account_id", "comment": null}, "is_posting": {"type": "boolean", "index": 7, "name": "is_posting", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "credit_amount": {"type": "integer", "index": 9, "name": "credit_amount", "comment": null}, "debit_amount": {"type": "integer", "index": 10, "name": "debit_amount", "comment": null}, "net_amount": {"type": "integer", "index": 11, "name": "net_amount", "comment": null}, "paid_amount": {"type": "integer", "index": 12, "name": "paid_amount", "comment": null}, "unpaid_amount": {"type": "integer", "index": 13, "name": "unpaid_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "transaction_id": {"type": "integer", "index": 3, "name": "transaction_id", "comment": null}, "transaction_line_number": {"type": "integer", "index": 4, "name": "transaction_line_number", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "entity_id": {"type": "integer", "index": 6, "name": "entity_id", "comment": null}, "item_id": {"type": "integer", "index": 7, "name": "item_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 9, "name": "location_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 10, "name": "subsidiary_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "is_closed": {"type": "boolean", "index": 12, "name": "is_closed", "comment": null}, "is_billable": {"type": "boolean", "index": 13, "name": "is_billable", "comment": null}, "is_cogs": {"type": "boolean", "index": 14, "name": "is_cogs", "comment": null}, "is_cleared": {"type": "boolean", "index": 15, "name": "is_cleared", "comment": null}, "is_commitment_firm": {"type": "boolean", "index": 16, "name": "is_commitment_firm", "comment": null}, "is_main_line": {"type": "boolean", "index": 17, "name": "is_main_line", "comment": null}, "is_tax_line": {"type": "boolean", "index": 18, "name": "is_tax_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, "model.netsuite_source.stg_netsuite2__transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "transaction_id": {"type": "integer", "index": 2, "name": "transaction_id", "comment": null}, "transaction_number": {"type": "integer", "index": 3, "name": "transaction_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "due_date_at": {"type": "timestamp without time zone", "index": 9, "name": "due_date_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 10, "name": "closed_at", "comment": null}, "currency_id": {"type": "integer", "index": 11, "name": "currency_id", "comment": null}, "entity_id": {"type": "integer", "index": 12, "name": "entity_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 13, "name": "accounting_period_id", "comment": null}, "is_posting": {"type": "boolean", "index": 14, "name": "is_posting", "comment": null}, "is_intercompany_adjustment": {"type": "boolean", "index": 15, "name": "is_intercompany_adjustment", "comment": null}, "is_reversal": {"type": "boolean", "index": 16, "name": "is_reversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transactions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendor_categories", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_category_id": {"type": "integer", "index": 1, "name": "vendor_category_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendor_categories_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, "model.netsuite_source.stg_netsuite2__vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendors", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "vendor_id": {"type": "integer", "index": 2, "name": "vendor_id", "comment": null}, "company_name": {"type": "integer", "index": 3, "name": "company_name", "comment": null}, "create_date_at": {"type": "timestamp without time zone", "index": 4, "name": "create_date_at", "comment": null}, "vendor_category_id": {"type": "integer", "index": 5, "name": "vendor_category_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendors_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, "model.netsuite_source.stg_netsuite__accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_books", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_books_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, "model.netsuite_source.stg_netsuite__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting_at": {"type": "timestamp without time zone", "index": 6, "name": "starting_at", "comment": null}, "ending_at": {"type": "timestamp without time zone", "index": 7, "name": "ending_at", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "is_closed": {"type": "text", "index": 11, "name": "is_closed", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_periods_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, "model.netsuite_source.stg_netsuite__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "character varying", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, "model.netsuite_source.stg_netsuite__classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__classes", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, "model.netsuite_source.stg_netsuite__classes_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__classes_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, "model.netsuite_source.stg_netsuite__currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__currencies", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__currencies_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, "model.netsuite_source.stg_netsuite__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__customers", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "character varying", "index": 2, "name": "company_name", "comment": null}, "customer_external_id": {"type": "character varying", "index": 3, "name": "customer_external_id", "comment": null}, "city": {"type": "integer", "index": 4, "name": "city", "comment": null}, "state": {"type": "integer", "index": 5, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 6, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 7, "name": "country", "comment": null}, "date_first_order_at": {"type": "integer", "index": 8, "name": "date_first_order_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, "model.netsuite_source.stg_netsuite__customers_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__customers_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, "model.netsuite_source.stg_netsuite__departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__departments", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, "model.netsuite_source.stg_netsuite__departments_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__departments_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, "model.netsuite_source.stg_netsuite__expense_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__expense_accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__expense_accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, "model.netsuite_source.stg_netsuite__income_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__income_accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__income_accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, "model.netsuite_source.stg_netsuite__items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__items", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "character varying", "index": 4, "name": "sales_description", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__items"}, "model.netsuite_source.stg_netsuite__items_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__items_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, "model.netsuite_source.stg_netsuite__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__locations", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, "model.netsuite_source.stg_netsuite__locations_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__locations_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, "model.netsuite_source.stg_netsuite__subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "full_name": {"type": "character varying", "index": 3, "name": "full_name", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 5, "name": "parent_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transaction_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transaction_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, "model.netsuite_source.stg_netsuite__transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date_at": {"type": "timestamp without time zone", "index": 6, "name": "due_date_at", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transactions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, "model.netsuite_source.stg_netsuite__vendor_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendor_types", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendor_types_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, "model.netsuite_source.stg_netsuite__vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendors", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "company_name": {"type": "character varying", "index": 2, "name": "company_name", "comment": null}, "create_date_at": {"type": "timestamp without time zone", "index": 3, "name": "create_date_at", "comment": null}, "vendor_type_id": {"type": "integer", "index": 4, "name": "vendor_type_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendors_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}}, "sources": {"source.netsuite_source.netsuite2.account": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.account"}, "source.netsuite_source.netsuite2.account_type": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_type_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.account_type"}, "source.netsuite_source.netsuite2.accounting_book": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_book"}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_sub_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries"}, "source.netsuite_source.netsuite2.accounting_period": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_period"}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_fiscal_cal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"}, "source.netsuite_source.netsuite2.classification": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_classification_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.classification"}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_consolidated_exchange_rate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate"}, "source.netsuite_source.netsuite2.currency": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_currency_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.currency"}, "source.netsuite_source.netsuite2.customer": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.customer"}, "source.netsuite_source.netsuite2.department": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.department"}, "source.netsuite_source.netsuite2.entity": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entities_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.entity"}, "source.netsuite_source.netsuite2.entity_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entity_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.entity_address"}, "source.netsuite_source.netsuite2.item": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.item"}, "source.netsuite_source.netsuite2.job": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_job_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.job"}, "source.netsuite_source.netsuite2.location": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.location"}, "source.netsuite_source.netsuite2.location_main_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_main_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.location_main_address"}, "source.netsuite_source.netsuite2.subsidiary": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_subsidiary_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.subsidiary"}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_tran_acct_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line"}, "source.netsuite_source.netsuite2.transaction": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction"}, "source.netsuite_source.netsuite2.transaction_line": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction_line"}, "source.netsuite_source.netsuite2.vendor_category": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_category_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.vendor_category"}, "source.netsuite_source.netsuite2.vendor": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.vendor"}, "source.netsuite_source.netsuite.accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_books_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounting_books"}, "source.netsuite_source.netsuite.accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_periods_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounting_periods"}, "source.netsuite_source.netsuite.accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounts"}, "source.netsuite_source.netsuite.classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_classes_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.classes"}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_consolidated_exchange_rates_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates"}, "source.netsuite_source.netsuite.currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_currencies_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.currencies"}, "source.netsuite_source.netsuite.customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_customers_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.customers"}, "source.netsuite_source.netsuite.departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_departments_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.departments"}, "source.netsuite_source.netsuite.expense_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_expense_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.expense_accounts"}, "source.netsuite_source.netsuite.income_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_income_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.income_accounts"}, "source.netsuite_source.netsuite.items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_items_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.items"}, "source.netsuite_source.netsuite.locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_locations_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.locations"}, "source.netsuite_source.netsuite.subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_subsidiaries_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.subsidiaries"}, "source.netsuite_source.netsuite.transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transaction_lines_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.transaction_lines"}, "source.netsuite_source.netsuite.transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transactions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.transactions"}, "source.netsuite_source.netsuite.vendor_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendor_types_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.vendor_types"}, "source.netsuite_source.netsuite.vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendors_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.vendors"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2022-10-24T20:25:46.795044Z", "invocation_id": "4195529c-716a-4b27-ac5b-72f919bfcd43", "env": {}}, "nodes": {"seed.netsuite_source_integration_tests.netsuite2_account_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data"}, "seed.netsuite_source_integration_tests.netsuite2_account_type_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_type_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_sub_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_fiscal_cal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, "seed.netsuite_source_integration_tests.netsuite2_classification_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_classification_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data"}, "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_consolidated_exchange_rate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data"}, "seed.netsuite_source_integration_tests.netsuite2_currency_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_currency_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data"}, "seed.netsuite_source_integration_tests.netsuite2_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data"}, "seed.netsuite_source_integration_tests.netsuite2_department_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data"}, "seed.netsuite_source_integration_tests.netsuite2_entities_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entities_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data"}, "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entity_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data"}, "seed.netsuite_source_integration_tests.netsuite2_item_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data"}, "seed.netsuite_source_integration_tests.netsuite2_job_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_job_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data"}, "seed.netsuite_source_integration_tests.netsuite2_location_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data"}, "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_main_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data"}, "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_subsidiary_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data"}, "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_tran_acct_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data"}, "seed.netsuite_source_integration_tests.netsuite2_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data"}, "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data"}, "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_category_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data"}, "seed.netsuite_source_integration_tests.netsuite2_vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data"}, "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_books_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data"}, "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_periods_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data"}, "seed.netsuite_source_integration_tests.netsuite_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_classes_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_classes_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data"}, "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_consolidated_exchange_rates_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data"}, "seed.netsuite_source_integration_tests.netsuite_currencies_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_currencies_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data"}, "seed.netsuite_source_integration_tests.netsuite_customers_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_customers_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data"}, "seed.netsuite_source_integration_tests.netsuite_departments_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_departments_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data"}, "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_expense_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_income_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_items_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_items_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data"}, "seed.netsuite_source_integration_tests.netsuite_locations_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_locations_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data"}, "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_subsidiaries_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data"}, "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transaction_lines_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data"}, "seed.netsuite_source_integration_tests.netsuite_transactions_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transactions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data"}, "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendor_types_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data"}, "seed.netsuite_source_integration_tests.netsuite_vendors_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendors_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data"}, "model.netsuite_source.stg_netsuite2__account_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__account_types", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_type_id": {"type": "text", "index": 3, "name": "account_type_id", "comment": null}, "is_balancesheet": {"type": "boolean", "index": 4, "name": "is_balancesheet", "comment": null}, "is_leftside": {"type": "boolean", "index": 5, "name": "is_leftside", "comment": null}, "type_name": {"type": "text", "index": 6, "name": "type_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__account_types_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "accounting_book_id": {"type": "integer", "index": 3, "name": "accounting_book_id", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "subsidiary_id": {"type": "integer", "index": 5, "name": "subsidiary_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_books", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 3, "name": "accounting_book_name", "comment": null}, "base_book_id": {"type": "integer", "index": 4, "name": "base_book_id", "comment": null}, "effective_period_id": {"type": "integer", "index": 5, "name": "effective_period_id", "comment": null}, "is_adjustment_only": {"type": "boolean", "index": 6, "name": "is_adjustment_only", "comment": null}, "is_consolidated": {"type": "boolean", "index": 7, "name": "is_consolidated", "comment": null}, "is_contingent_revenue_handling": {"type": "text", "index": 8, "name": "is_contingent_revenue_handling", "comment": null}, "is_primary": {"type": "boolean", "index": 9, "name": "is_primary", "comment": null}, "is_two_step_revenue_allocation": {"type": "text", "index": 10, "name": "is_two_step_revenue_allocation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_books_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "parent_id": {"type": "integer", "index": 5, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "accounting_period_id": {"type": "integer", "index": 2, "name": "accounting_period_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "starting_at": {"type": "timestamp without time zone", "index": 5, "name": "starting_at", "comment": null}, "ending_at": {"type": "timestamp without time zone", "index": 6, "name": "ending_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 7, "name": "closed_at", "comment": null}, "is_quarter": {"type": "boolean", "index": 8, "name": "is_quarter", "comment": null}, "is_year": {"type": "boolean", "index": 9, "name": "is_year", "comment": null}, "is_adjustment": {"type": "boolean", "index": 10, "name": "is_adjustment", "comment": null}, "is_posting": {"type": "boolean", "index": 11, "name": "is_posting", "comment": null}, "is_closed": {"type": "boolean", "index": 12, "name": "is_closed", "comment": null}, "is_all_locked": {"type": "boolean", "index": 13, "name": "is_all_locked", "comment": null}, "is_ar_locked": {"type": "boolean", "index": 14, "name": "is_ar_locked", "comment": null}, "is_ap_locked": {"type": "boolean", "index": 15, "name": "is_ap_locked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_periods_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, "model.netsuite_source.stg_netsuite2__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "account_external_id": {"type": "text", "index": 3, "name": "account_external_id", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "account_type_id": {"type": "text", "index": 6, "name": "account_type_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "account_description": {"type": "integer", "index": 8, "name": "account_description", "comment": null}, "deferral_account_id": {"type": "integer", "index": 9, "name": "deferral_account_id", "comment": null}, "cash_flow_rate_type": {"type": "text", "index": 10, "name": "cash_flow_rate_type", "comment": null}, "general_rate_type": {"type": "text", "index": 11, "name": "general_rate_type", "comment": null}, "currency_id": {"type": "integer", "index": 12, "name": "currency_id", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "location_id": {"type": "integer", "index": 15, "name": "location_id", "comment": null}, "is_including_child_subs": {"type": "boolean", "index": 16, "name": "is_including_child_subs", "comment": null}, "is_inactive": {"type": "boolean", "index": 17, "name": "is_inactive", "comment": null}, "is_summary": {"type": "boolean", "index": 18, "name": "is_summary", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, "model.netsuite_source.stg_netsuite2__classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__classes", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 2, "name": "class_id", "comment": null}, "class_external_id": {"type": "integer", "index": 3, "name": "class_external_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 5, "name": "full_name", "comment": null}, "is_inactive": {"type": "boolean", "index": 6, "name": "is_inactive", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 7, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__classes_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 2, "name": "accounting_period_id", "comment": null}, "from_currency_id": {"type": "integer", "index": 3, "name": "from_currency_id", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 4, "name": "from_subsidiary_id", "comment": null}, "to_currency_id": {"type": "integer", "index": 5, "name": "to_currency_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 6, "name": "to_subsidiary_id", "comment": null}, "current_rate": {"type": "integer", "index": 7, "name": "current_rate", "comment": null}, "average_rate": {"type": "integer", "index": 8, "name": "average_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 9, "name": "historical_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, "model.netsuite_source.stg_netsuite2__currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__currencies", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "currency_id": {"type": "integer", "index": 2, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 4, "name": "symbol", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__currencies_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, "model.netsuite_source.stg_netsuite2__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__customers", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "entity_id": {"type": "text", "index": 2, "name": "entity_id", "comment": null}, "customer_external_id": {"type": "integer", "index": 3, "name": "customer_external_id", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}, "is_person": {"type": "boolean", "index": 5, "name": "is_person", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "first_name": {"type": "text", "index": 7, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 8, "name": "last_name", "comment": null}, "email_address": {"type": "text", "index": 9, "name": "email_address", "comment": null}, "phone_number": {"type": "integer", "index": 10, "name": "phone_number", "comment": null}, "default_billing_address_id": {"type": "integer", "index": 11, "name": "default_billing_address_id", "comment": null}, "default_shipping_address_id": {"type": "integer", "index": 12, "name": "default_shipping_address_id", "comment": null}, "receivables_account_id": {"type": "integer", "index": 13, "name": "receivables_account_id", "comment": null}, "currency_id": {"type": "integer", "index": 14, "name": "currency_id", "comment": null}, "date_first_order_at": {"type": "integer", "index": 15, "name": "date_first_order_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__customers_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, "model.netsuite_source.stg_netsuite2__departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__departments", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "department_id": {"type": "integer", "index": 2, "name": "department_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 5, "name": "full_name", "comment": null}, "subsidiary_id": {"type": "text", "index": 6, "name": "subsidiary_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 7, "name": "is_inactive", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__departments_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, "model.netsuite_source.stg_netsuite2__entities": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entities", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "entity_id": {"type": "integer", "index": 2, "name": "entity_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "entity_name": {"type": "text", "index": 4, "name": "entity_name", "comment": null}, "entity_type": {"type": "text", "index": 5, "name": "entity_type", "comment": null}, "is_person": {"type": "boolean", "index": 6, "name": "is_person", "comment": null}, "contact_id": {"type": "integer", "index": 7, "name": "contact_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "employee_id": {"type": "integer", "index": 9, "name": "employee_id", "comment": null}, "job_id": {"type": "integer", "index": 10, "name": "job_id", "comment": null}, "vendor_id": {"type": "integer", "index": 11, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entities_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, "model.netsuite_source.stg_netsuite2__entity_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entity_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 2, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 3, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 4, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 5, "name": "addressee", "comment": null}, "full_address": {"type": "text", "index": 6, "name": "full_address", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}, "nkey": {"type": "integer", "index": 10, "name": "nkey", "comment": null}, "zipcode": {"type": "integer", "index": 11, "name": "zipcode", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entity_address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, "model.netsuite_source.stg_netsuite2__items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__items", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 5, "name": "sales_description", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 8, "name": "location_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 9, "name": "subsidiary_id", "comment": null}, "asset_account_id": {"type": "integer", "index": 10, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "integer", "index": 11, "name": "expense_account_id", "comment": null}, "gain_loss_account_id": {"type": "integer", "index": 12, "name": "gain_loss_account_id", "comment": null}, "income_account_id": {"type": "integer", "index": 13, "name": "income_account_id", "comment": null}, "interco_expense_account_id": {"type": "integer", "index": 14, "name": "interco_expense_account_id", "comment": null}, "interco_income_account_id": {"type": "integer", "index": 15, "name": "interco_income_account_id", "comment": null}, "deferred_expense_account_id": {"type": "integer", "index": 16, "name": "deferred_expense_account_id", "comment": null}, "deferred_revenue_account_id": {"type": "integer", "index": 17, "name": "deferred_revenue_account_id", "comment": null}, "parent_item_id": {"type": "integer", "index": 18, "name": "parent_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, "model.netsuite_source.stg_netsuite2__items_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__items_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, "model.netsuite_source.stg_netsuite2__jobs": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__jobs", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "job_id": {"type": "integer", "index": 2, "name": "job_id", "comment": null}, "job_external_id": {"type": "integer", "index": 3, "name": "job_external_id", "comment": null}, "customer_id": {"type": "integer", "index": 4, "name": "customer_id", "comment": null}, "entity_id": {"type": "text", "index": 5, "name": "entity_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 6, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 7, "name": "shipping_address_id", "comment": null}, "parent_id": {"type": "integer", "index": 8, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__jobs_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, "model.netsuite_source.stg_netsuite2__location_main_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__location_main_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 2, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 3, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 4, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 5, "name": "addressee", "comment": null}, "full_address": {"type": "text", "index": 6, "name": "full_address", "comment": null}, "city": {"type": "integer", "index": 7, "name": "city", "comment": null}, "country": {"type": "integer", "index": 8, "name": "country", "comment": null}, "state": {"type": "integer", "index": 9, "name": "state", "comment": null}, "nkey": {"type": "integer", "index": 10, "name": "nkey", "comment": null}, "zipcode": {"type": "integer", "index": 11, "name": "zipcode", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__location_main_address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, "model.netsuite_source.stg_netsuite2__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__locations", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 4, "name": "full_name", "comment": null}, "main_address_id": {"type": "integer", "index": 5, "name": "main_address_id", "comment": null}, "parent_id": {"type": "integer", "index": 6, "name": "parent_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 7, "name": "subsidiary_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__locations_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "subsidiary_id": {"type": "integer", "index": 2, "name": "subsidiary_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 4, "name": "full_name", "comment": null}, "email_address": {"type": "integer", "index": 5, "name": "email_address", "comment": null}, "main_address_id": {"type": "integer", "index": 6, "name": "main_address_id", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 9, "name": "fiscal_calendar_id", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "transaction_id": {"type": "integer", "index": 3, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 5, "name": "accounting_book_id", "comment": null}, "account_id": {"type": "integer", "index": 6, "name": "account_id", "comment": null}, "is_posting": {"type": "boolean", "index": 7, "name": "is_posting", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "credit_amount": {"type": "integer", "index": 9, "name": "credit_amount", "comment": null}, "debit_amount": {"type": "integer", "index": 10, "name": "debit_amount", "comment": null}, "net_amount": {"type": "integer", "index": 11, "name": "net_amount", "comment": null}, "paid_amount": {"type": "integer", "index": 12, "name": "paid_amount", "comment": null}, "unpaid_amount": {"type": "integer", "index": 13, "name": "unpaid_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "transaction_id": {"type": "integer", "index": 3, "name": "transaction_id", "comment": null}, "transaction_line_number": {"type": "integer", "index": 4, "name": "transaction_line_number", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "entity_id": {"type": "integer", "index": 6, "name": "entity_id", "comment": null}, "item_id": {"type": "integer", "index": 7, "name": "item_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 9, "name": "location_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 10, "name": "subsidiary_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "is_closed": {"type": "boolean", "index": 12, "name": "is_closed", "comment": null}, "is_billable": {"type": "boolean", "index": 13, "name": "is_billable", "comment": null}, "is_cogs": {"type": "boolean", "index": 14, "name": "is_cogs", "comment": null}, "is_cleared": {"type": "boolean", "index": 15, "name": "is_cleared", "comment": null}, "is_commitment_firm": {"type": "boolean", "index": 16, "name": "is_commitment_firm", "comment": null}, "is_main_line": {"type": "boolean", "index": 17, "name": "is_main_line", "comment": null}, "is_tax_line": {"type": "boolean", "index": 18, "name": "is_tax_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, "model.netsuite_source.stg_netsuite2__transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "transaction_id": {"type": "integer", "index": 2, "name": "transaction_id", "comment": null}, "transaction_number": {"type": "integer", "index": 3, "name": "transaction_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "due_date_at": {"type": "timestamp without time zone", "index": 9, "name": "due_date_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 10, "name": "closed_at", "comment": null}, "currency_id": {"type": "integer", "index": 11, "name": "currency_id", "comment": null}, "entity_id": {"type": "integer", "index": 12, "name": "entity_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 13, "name": "accounting_period_id", "comment": null}, "is_posting": {"type": "boolean", "index": 14, "name": "is_posting", "comment": null}, "is_intercompany_adjustment": {"type": "boolean", "index": 15, "name": "is_intercompany_adjustment", "comment": null}, "is_reversal": {"type": "boolean", "index": 16, "name": "is_reversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transactions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendor_categories", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_category_id": {"type": "integer", "index": 1, "name": "vendor_category_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendor_categories_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, "model.netsuite_source.stg_netsuite2__vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendors", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "vendor_id": {"type": "integer", "index": 2, "name": "vendor_id", "comment": null}, "company_name": {"type": "integer", "index": 3, "name": "company_name", "comment": null}, "create_date_at": {"type": "timestamp without time zone", "index": 4, "name": "create_date_at", "comment": null}, "vendor_category_id": {"type": "integer", "index": 5, "name": "vendor_category_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendors_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, "model.netsuite_source.stg_netsuite__accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_books", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_books_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, "model.netsuite_source.stg_netsuite__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting_at": {"type": "timestamp without time zone", "index": 6, "name": "starting_at", "comment": null}, "ending_at": {"type": "timestamp without time zone", "index": 7, "name": "ending_at", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "is_closed": {"type": "text", "index": 11, "name": "is_closed", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_periods_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, "model.netsuite_source.stg_netsuite__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "text", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, "model.netsuite_source.stg_netsuite__classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__classes", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, "model.netsuite_source.stg_netsuite__classes_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__classes_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, "model.netsuite_source.stg_netsuite__currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__currencies", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__currencies_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, "model.netsuite_source.stg_netsuite__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__customers", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "customer_external_id": {"type": "text", "index": 3, "name": "customer_external_id", "comment": null}, "city": {"type": "integer", "index": 4, "name": "city", "comment": null}, "state": {"type": "integer", "index": 5, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 6, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 7, "name": "country", "comment": null}, "date_first_order_at": {"type": "integer", "index": 8, "name": "date_first_order_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, "model.netsuite_source.stg_netsuite__customers_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__customers_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, "model.netsuite_source.stg_netsuite__departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__departments", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, "model.netsuite_source.stg_netsuite__departments_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__departments_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, "model.netsuite_source.stg_netsuite__expense_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__expense_accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__expense_accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, "model.netsuite_source.stg_netsuite__income_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__income_accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__income_accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, "model.netsuite_source.stg_netsuite__items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__items", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__items"}, "model.netsuite_source.stg_netsuite__items_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__items_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, "model.netsuite_source.stg_netsuite__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__locations", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, "model.netsuite_source.stg_netsuite__locations_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__locations_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, "model.netsuite_source.stg_netsuite__subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 5, "name": "parent_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transaction_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transaction_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, "model.netsuite_source.stg_netsuite__transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date_at": {"type": "timestamp without time zone", "index": 6, "name": "due_date_at", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transactions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, "model.netsuite_source.stg_netsuite__vendor_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendor_types", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendor_types_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, "model.netsuite_source.stg_netsuite__vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendors", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "create_date_at": {"type": "timestamp without time zone", "index": 3, "name": "create_date_at", "comment": null}, "vendor_type_id": {"type": "integer", "index": 4, "name": "vendor_type_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendors_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}}, "sources": {"source.netsuite_source.netsuite2.account": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.account"}, "source.netsuite_source.netsuite2.account_type": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_type_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.account_type"}, "source.netsuite_source.netsuite2.accounting_book": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_book"}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_sub_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries"}, "source.netsuite_source.netsuite2.accounting_period": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_period"}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_fiscal_cal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"}, "source.netsuite_source.netsuite2.classification": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_classification_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.classification"}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_consolidated_exchange_rate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate"}, "source.netsuite_source.netsuite2.currency": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_currency_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.currency"}, "source.netsuite_source.netsuite2.customer": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.customer"}, "source.netsuite_source.netsuite2.department": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.department"}, "source.netsuite_source.netsuite2.entity": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entities_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.entity"}, "source.netsuite_source.netsuite2.entity_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entity_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.entity_address"}, "source.netsuite_source.netsuite2.item": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.item"}, "source.netsuite_source.netsuite2.job": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_job_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.job"}, "source.netsuite_source.netsuite2.location": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.location"}, "source.netsuite_source.netsuite2.location_main_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_main_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.location_main_address"}, "source.netsuite_source.netsuite2.subsidiary": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_subsidiary_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.subsidiary"}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_tran_acct_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line"}, "source.netsuite_source.netsuite2.transaction": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction"}, "source.netsuite_source.netsuite2.transaction_line": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction_line"}, "source.netsuite_source.netsuite2.vendor_category": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_category_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.vendor_category"}, "source.netsuite_source.netsuite2.vendor": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.vendor"}, "source.netsuite_source.netsuite.accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_books_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounting_books"}, "source.netsuite_source.netsuite.accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_periods_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounting_periods"}, "source.netsuite_source.netsuite.accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounts"}, "source.netsuite_source.netsuite.classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_classes_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.classes"}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_consolidated_exchange_rates_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates"}, "source.netsuite_source.netsuite.currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_currencies_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.currencies"}, "source.netsuite_source.netsuite.customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_customers_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.customers"}, "source.netsuite_source.netsuite.departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_departments_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.departments"}, "source.netsuite_source.netsuite.expense_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_expense_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.expense_accounts"}, "source.netsuite_source.netsuite.income_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_income_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.income_accounts"}, "source.netsuite_source.netsuite.items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_items_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.items"}, "source.netsuite_source.netsuite.locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_locations_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.locations"}, "source.netsuite_source.netsuite.subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_subsidiaries_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.subsidiaries"}, "source.netsuite_source.netsuite.transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transaction_lines_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.transaction_lines"}, "source.netsuite_source.netsuite.transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transactions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.transactions"}, "source.netsuite_source.netsuite.vendor_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendor_types_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.vendor_types"}, "source.netsuite_source.netsuite.vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendors_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.vendors"}}, "errors": null} \ No newline at end of file diff --git a/docs/index.html b/docs/index.html index 0c4d0ec..182b6b4 100644 --- a/docs/index.html +++ b/docs/index.html @@ -24,7 +24,7 @@
icons
- diff --git a/docs/manifest.json b/docs/manifest.json index 94c9b44..1351c82 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v4.json", "dbt_version": "1.0.4", "generated_at": "2022-07-26T22:56:11.439070Z", "invocation_id": "50807ff8-9fa8-41d4-91a0-2cb3e52fde86", "env": {}, "project_id": "0161153b585f60374e0a66941a656f43", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_currency_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_currency_data.csv", "original_file_path": "seeds/netsuite2_currency_data.csv", "name": "netsuite2_currency_data", "alias": "netsuite2_currency_data", "checksum": {"name": "sha256", "checksum": "860ccbec95ff9c17e8e40db2c32e28ab56f2ef18f6af775bc982fc5494aae23c"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5499442, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\""}, "seed.netsuite_source_integration_tests.netsuite_vendors_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_vendors_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_vendors_data.csv", "original_file_path": "seeds/netsuite_vendors_data.csv", "name": "netsuite_vendors_data", "alias": "netsuite_vendors_data", "checksum": {"name": "sha256", "checksum": "f050ea1d5fa346fcefbe9a5792dfbe9f5aabbec17a359ab2e497be7b3e888e2d"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.555231, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\""}, "seed.netsuite_source_integration_tests.netsuite2_classification_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_classification_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_classification_data.csv", "original_file_path": "seeds/netsuite2_classification_data.csv", "name": "netsuite2_classification_data", "alias": "netsuite2_classification_data", "checksum": {"name": "sha256", "checksum": "800dc93b65435dd17dbe1f668890a317bce221193a1ca52d6075c5ab8504e29c"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.55616, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounting_books_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounting_books_data.csv", "original_file_path": "seeds/netsuite_accounting_books_data.csv", "name": "netsuite_accounting_books_data", "alias": "netsuite_accounting_books_data", "checksum": {"name": "sha256", "checksum": "45b73583ed0a1425f131de59b6a17b997caec17d9b0884947f27008ae81c1684"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.557159, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\""}, "seed.netsuite_source_integration_tests.netsuite2_entities_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_entities_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_entities_data.csv", "original_file_path": "seeds/netsuite2_entities_data.csv", "name": "netsuite2_entities_data", "alias": "netsuite2_entities_data", "checksum": {"name": "sha256", "checksum": "e28458219e88aecec3f237ff9c58941d13c0e40c478fec9e8727fbb3d9d244c8"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.558039, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\""}, "seed.netsuite_source_integration_tests.netsuite2_vendor_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_vendor_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_vendor_data.csv", "original_file_path": "seeds/netsuite2_vendor_data.csv", "name": "netsuite2_vendor_data", "alias": "netsuite2_vendor_data", "checksum": {"name": "sha256", "checksum": "f1f8f8762dd6b7192e2273f12ee86f43eb06933a2055da91d37c82f0ddbec0b8"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.558996, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\""}, "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_consolidated_exchange_rates_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_consolidated_exchange_rates_data.csv", "original_file_path": "seeds/netsuite_consolidated_exchange_rates_data.csv", "name": "netsuite_consolidated_exchange_rates_data", "alias": "netsuite_consolidated_exchange_rates_data", "checksum": {"name": "sha256", "checksum": "b8719124e41745363f91f996b99812a9e6c98306ef24034c5efb12b64600a496"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.559965, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\""}, "seed.netsuite_source_integration_tests.netsuite_customers_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_customers_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_customers_data.csv", "original_file_path": "seeds/netsuite_customers_data.csv", "name": "netsuite_customers_data", "alias": "netsuite_customers_data", "checksum": {"name": "sha256", "checksum": "e3ce06d6edaeb9f777c340a597d8de7cfb2d3423a20a2421eae4c86264a9c93a"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5609741, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\""}, "seed.netsuite_source_integration_tests.netsuite_locations_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_locations_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_locations_data.csv", "original_file_path": "seeds/netsuite_locations_data.csv", "name": "netsuite_locations_data", "alias": "netsuite_locations_data", "checksum": {"name": "sha256", "checksum": "8a71a79adb44cc02707a75ee10a85f03b472324a894ddc32716eeea7d533bc2f"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.561858, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\""}, "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_transaction_line_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_transaction_line_data.csv", "original_file_path": "seeds/netsuite2_transaction_line_data.csv", "name": "netsuite2_transaction_line_data", "alias": "netsuite2_transaction_line_data", "checksum": {"name": "sha256", "checksum": "746773ecc92c2e3e1113ebf7d00fd1a33723016cd3f221fca37fa938315ca5b1"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5627441, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\""}, "seed.netsuite_source_integration_tests.netsuite2_account_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_account_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_account_data.csv", "original_file_path": "seeds/netsuite2_account_data.csv", "name": "netsuite2_account_data", "alias": "netsuite2_account_data", "checksum": {"name": "sha256", "checksum": "689909e17df06e2b189107699467b29cda77e8b4ab1d433c644872c481524747"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.563632, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\""}, "seed.netsuite_source_integration_tests.netsuite_items_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_items_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_items_data.csv", "original_file_path": "seeds/netsuite_items_data.csv", "name": "netsuite_items_data", "alias": "netsuite_items_data", "checksum": {"name": "sha256", "checksum": "567fc2b4c8e46962f9297095017fa529544feafed31503e9fc3ed51bf60b866d"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.564619, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\""}, "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_subsidiary_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_subsidiary_data.csv", "original_file_path": "seeds/netsuite2_subsidiary_data.csv", "name": "netsuite2_subsidiary_data", "alias": "netsuite2_subsidiary_data", "checksum": {"name": "sha256", "checksum": "ab5bdff19af5d7a5f923820106bd9aa7fc321d3a1b1397ab2ad33f8d1fce3991"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.565512, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\""}, "seed.netsuite_source_integration_tests.netsuite2_account_type_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_account_type_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_account_type_data.csv", "original_file_path": "seeds/netsuite2_account_type_data.csv", "name": "netsuite2_account_type_data", "alias": "netsuite2_account_type_data", "checksum": {"name": "sha256", "checksum": "a25b940f65942b256bca8c5ac0c5d4f420a9b1e2d6330bd1102da3e8fa664c7f"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5663989, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_period_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_period_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_data.csv", "name": "netsuite2_accounting_period_data", "alias": "netsuite2_accounting_period_data", "checksum": {"name": "sha256", "checksum": "8434862ad961a3c3e31effc380b84b721212641ca8623789446401e345cf9dba"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.567283, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_period_fiscal_cal_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_period_fiscal_cal_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_fiscal_cal_data.csv", "name": "netsuite2_accounting_period_fiscal_cal_data", "alias": "netsuite2_accounting_period_fiscal_cal_data", "checksum": {"name": "sha256", "checksum": "ff3ab48ac65713c861da7a5542f14db75c64c4ad7ae4efc8acb2241c10b127c7"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.568161, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\""}, "seed.netsuite_source_integration_tests.netsuite_classes_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_classes_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_classes_data.csv", "original_file_path": "seeds/netsuite_classes_data.csv", "name": "netsuite_classes_data", "alias": "netsuite_classes_data", "checksum": {"name": "sha256", "checksum": "18e8a63665925edfacbeaa443c7f6632c4489bd521df77d945ee657d398588e3"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.56945, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\""}, "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_entity_address_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_entity_address_data.csv", "original_file_path": "seeds/netsuite2_entity_address_data.csv", "name": "netsuite2_entity_address_data", "alias": "netsuite2_entity_address_data", "checksum": {"name": "sha256", "checksum": "194e01a215739408a796ec2d819da0bc650c860e052e2cddf6695c3faab3b059"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.570318, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\""}, "seed.netsuite_source_integration_tests.netsuite_departments_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_departments_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_departments_data.csv", "original_file_path": "seeds/netsuite_departments_data.csv", "name": "netsuite_departments_data", "alias": "netsuite_departments_data", "checksum": {"name": "sha256", "checksum": "9060203f11419c602daf8afc578035d29ef612e1e868b12fa22eaf7b37942607"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5711842, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\""}, "seed.netsuite_source_integration_tests.netsuite2_customer_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_customer_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_customer_data.csv", "original_file_path": "seeds/netsuite2_customer_data.csv", "name": "netsuite2_customer_data", "alias": "netsuite2_customer_data", "checksum": {"name": "sha256", "checksum": "5500a2147bb74338ce1aa8bc059d0f3cae74cdfcf4d0d68b49121540b5ccb573"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5720599, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\""}, "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_tran_acct_line_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_tran_acct_line_data.csv", "original_file_path": "seeds/netsuite2_tran_acct_line_data.csv", "name": "netsuite2_tran_acct_line_data", "alias": "netsuite2_tran_acct_line_data", "checksum": {"name": "sha256", "checksum": "c6e72ec64e0179be9c3f3fb6435a828570cd1cb9ba2092ce78b6a4900bc02ddb"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.573048, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\""}, "seed.netsuite_source_integration_tests.netsuite2_department_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_department_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_department_data.csv", "original_file_path": "seeds/netsuite2_department_data.csv", "name": "netsuite2_department_data", "alias": "netsuite2_department_data", "checksum": {"name": "sha256", "checksum": "6570dc2a4efbac97f87551588b34558d6c5c5b8e071b3cfea59bc9e13a0b7b4a"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.573916, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\""}, "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_expense_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_expense_accounts_data.csv", "original_file_path": "seeds/netsuite_expense_accounts_data.csv", "name": "netsuite_expense_accounts_data", "alias": "netsuite_expense_accounts_data", "checksum": {"name": "sha256", "checksum": "983ef804359afb2c0f7db8c3bb32d5eecdec8c0d9fbf502360944877dc212f9c"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.57486, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite_currencies_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_currencies_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_currencies_data.csv", "original_file_path": "seeds/netsuite_currencies_data.csv", "name": "netsuite_currencies_data", "alias": "netsuite_currencies_data", "checksum": {"name": "sha256", "checksum": "f98ba1751b715296956912fc4c2b43f58875c56740e829c045aefe1172cb2232"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5757492, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_book_sub_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_book_sub_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_sub_data.csv", "name": "netsuite2_accounting_book_sub_data", "alias": "netsuite2_accounting_book_sub_data", "checksum": {"name": "sha256", "checksum": "e95506b5ada820d0a9a79e7759d749a1512beaa8922c3d6e78c105f9029f7992"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.576731, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounts_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounts_data.csv", "original_file_path": "seeds/netsuite_accounts_data.csv", "name": "netsuite_accounts_data", "alias": "netsuite_accounts_data", "checksum": {"name": "sha256", "checksum": "a3d24c6bf7438f0bf6e0a725565ea0bb000c6fa01b7ffbdfb1b70689f5ad515b"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.577617, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_vendor_category_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_vendor_category_data.csv", "original_file_path": "seeds/netsuite2_vendor_category_data.csv", "name": "netsuite2_vendor_category_data", "alias": "netsuite2_vendor_category_data", "checksum": {"name": "sha256", "checksum": "498453adb748d03d07147625b2ef67966f7200523eef6d824ce8787212159bf8"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.578485, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounting_periods_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounting_periods_data.csv", "original_file_path": "seeds/netsuite_accounting_periods_data.csv", "name": "netsuite_accounting_periods_data", "alias": "netsuite_accounting_periods_data", "checksum": {"name": "sha256", "checksum": "673c2f4c76e4cb8bbccecc7e30c0056163d39f53174013f0460a2e4e5efe6e33"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.579353, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\""}, "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_subsidiaries_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_subsidiaries_data.csv", "original_file_path": "seeds/netsuite_subsidiaries_data.csv", "name": "netsuite_subsidiaries_data", "alias": "netsuite_subsidiaries_data", "checksum": {"name": "sha256", "checksum": "4dd2e8b192c4c052a847d6791b5a32da6968a3234d48b85a37ae20f7ee9445de"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.580329, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\""}, "seed.netsuite_source_integration_tests.netsuite2_job_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_job_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_job_data.csv", "original_file_path": "seeds/netsuite2_job_data.csv", "name": "netsuite2_job_data", "alias": "netsuite2_job_data", "checksum": {"name": "sha256", "checksum": "5fa5024df2ff944188a0ada73be30727b1b1552f3a890b9bd244264d2188fd68"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.581204, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\""}, "seed.netsuite_source_integration_tests.netsuite2_transaction_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_transaction_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_transaction_data.csv", "original_file_path": "seeds/netsuite2_transaction_data.csv", "name": "netsuite2_transaction_data", "alias": "netsuite2_transaction_data", "checksum": {"name": "sha256", "checksum": "16b52e72a514adb263e4e26594326996ab0c1089e576155a4f429975b1d54db0"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5820632, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\""}, "seed.netsuite_source_integration_tests.netsuite2_location_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_location_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_location_data.csv", "original_file_path": "seeds/netsuite2_location_data.csv", "name": "netsuite2_location_data", "alias": "netsuite2_location_data", "checksum": {"name": "sha256", "checksum": "a3ce64b239774b83f9226b8e1f8504147dd5f890a86ab80fda41c0376a6e2d19"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5829298, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\""}, "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_income_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_income_accounts_data.csv", "original_file_path": "seeds/netsuite_income_accounts_data.csv", "name": "netsuite_income_accounts_data", "alias": "netsuite_income_accounts_data", "checksum": {"name": "sha256", "checksum": "53a81321736b4a42663e253050539eb48b0d179847e23f161927d29c4cbf1367"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5837922, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_consolidated_exchange_rate_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_consolidated_exchange_rate_data.csv", "original_file_path": "seeds/netsuite2_consolidated_exchange_rate_data.csv", "name": "netsuite2_consolidated_exchange_rate_data", "alias": "netsuite2_consolidated_exchange_rate_data", "checksum": {"name": "sha256", "checksum": "d609008a0522dd0e4e60f8967234bd4ec6c6b5b4fcc8d97a7167869d27ab24ef"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.58476, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_book_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_book_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_data.csv", "name": "netsuite2_accounting_book_data", "alias": "netsuite2_accounting_book_data", "checksum": {"name": "sha256", "checksum": "e5762b59dceb08e4a5170f2ff5413591cfca97f2a8a9a5080bf96860cf276566"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5856352, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\""}, "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_location_main_address_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_location_main_address_data.csv", "original_file_path": "seeds/netsuite2_location_main_address_data.csv", "name": "netsuite2_location_main_address_data", "alias": "netsuite2_location_main_address_data", "checksum": {"name": "sha256", "checksum": "605372cb4ea25cff3ec9f9c80374d24c71d6848ff3dbda939928851568a7311d"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.586499, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\""}, "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_vendor_types_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_vendor_types_data.csv", "original_file_path": "seeds/netsuite_vendor_types_data.csv", "name": "netsuite_vendor_types_data", "alias": "netsuite_vendor_types_data", "checksum": {"name": "sha256", "checksum": "2111fb5a226e9e73c187a1a1a13caa0c2d3b54bb2eedfe3287f636c049c72b64"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.5873542, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\""}, "seed.netsuite_source_integration_tests.netsuite2_item_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_item_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_item_data.csv", "original_file_path": "seeds/netsuite2_item_data.csv", "name": "netsuite2_item_data", "alias": "netsuite2_item_data", "checksum": {"name": "sha256", "checksum": "73809b7847e14ec59fa08705c6ba1ee6be142717f9bcbe2dde9eeb5b1c14a65f"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.588316, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\""}, "seed.netsuite_source_integration_tests.netsuite_transactions_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_transactions_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_transactions_data.csv", "original_file_path": "seeds/netsuite_transactions_data.csv", "name": "netsuite_transactions_data", "alias": "netsuite_transactions_data", "checksum": {"name": "sha256", "checksum": "c1d88d96de5d5e6ed310a6b008df7390a2aaf7b0d857668e0dfed259f0c704ed"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.58918, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\""}, "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": {"raw_sql": "", "compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "on_schema_change": "ignore", "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_transaction_lines_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_transaction_lines_data.csv", "original_file_path": "seeds/netsuite_transaction_lines_data.csv", "name": "netsuite_transaction_lines_data", "alias": "netsuite_transaction_lines_data", "checksum": {"name": "sha256", "checksum": "6786bdf4b6e00d6243008c46d0bb69a21158ff27265690503aaa9d8b6faa01d2"}, "tags": [], "refs": [], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1658876149.590048, "compiled_sql": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\""}, "model.netsuite_source.stg_netsuite2__transactions": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transactions_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transactions_tmp')),\n staging_columns=get_netsuite2_transactions_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_id,\n transactionnumber as transaction_number,\n type as transaction_type,\n memo,\n trandate as transaction_date,\n status,\n createddate as created_at,\n duedate as due_date_at,\n closedate as closed_at,\n currency as currency_id,\n entity as entity_id,\n postingperiod as accounting_period_id,\n posting = 'T' as is_posting,\n intercoadj = 'T' as is_intercompany_adjustment,\n isreversal = 'T' as is_reversal\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transactions_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_transactions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions_tmp", "model.netsuite_source.stg_netsuite2__transactions_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transactions"], "unique_id": "model.netsuite_source.stg_netsuite2__transactions", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transactions.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transactions.sql", "name": "stg_netsuite2__transactions", "alias": "stg_netsuite2__transactions", "checksum": {"name": "sha256", "checksum": "6cfa8b003b02cfe90d29c76cb3690de25444fb558c3735c7b2dc4a89fb005251"}, "tags": [], "refs": [["stg_netsuite2__transactions_tmp"], ["stg_netsuite2__transactions_tmp"]], "sources": [], "description": "A table detailing all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_number": {"name": "transaction_number", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the transaction is a posting event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany_adjustment": {"name": "is_intercompany_adjustment", "description": "Boolean indicating if the transaction is an intercompany adjustment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_reversal": {"name": "is_reversal", "description": "Boolean indicating if the transaction is a reversal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.557991, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n transactionnumber\n \n as \n \n transactionnumber\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n trandate\n \n as \n \n trandate\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n createddate\n \n as \n \n createddate\n \n, \n \n \n duedate\n \n as \n \n duedate\n \n, \n \n \n closedate\n \n as \n \n closedate\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n entity\n \n as \n \n entity\n \n, \n \n \n postingperiod\n \n as \n \n postingperiod\n \n, \n \n \n posting\n \n as \n \n posting\n \n, \n cast(null as \n varchar\n) as \n \n intercoadj\n \n , \n \n \n isreversal\n \n as \n \n isreversal\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_id,\n transactionnumber as transaction_number,\n type as transaction_type,\n memo,\n trandate as transaction_date,\n status,\n createddate as created_at,\n duedate as due_date_at,\n closedate as closed_at,\n currency as currency_id,\n entity as entity_id,\n postingperiod as accounting_period_id,\n posting = 'T' as is_posting,\n intercoadj = 'T' as is_intercompany_adjustment,\n isreversal = 'T' as is_reversal\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\""}, "model.netsuite_source.stg_netsuite2__jobs": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__jobs_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__jobs_tmp')),\n staging_columns=get_job_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n id as job_id,\n externalid as job_external_id,\n customer as customer_id,\n entityid as entity_id,\n defaultbillingaddress as billing_address_id,\n defaultshippingaddress as shipping_address_id,\n parent as parent_id\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_job_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs_tmp", "model.netsuite_source.stg_netsuite2__jobs_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__jobs"], "unique_id": "model.netsuite_source.stg_netsuite2__jobs", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__jobs.sql", "original_file_path": "models/netsuite2/stg_netsuite2__jobs.sql", "name": "stg_netsuite2__jobs", "alias": "stg_netsuite2__jobs", "checksum": {"name": "sha256", "checksum": "ad872a5592725850b2d219ce6051a429a48a1a0850bec9681dabc65b0b2f7cc9"}, "tags": [], "refs": [["stg_netsuite2__jobs_tmp"], ["stg_netsuite2__jobs_tmp"]], "sources": [], "description": "Table detailing all jobs.", "columns": {"job_id": {"name": "job_id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_external_id": {"name": "job_external_id", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "Reference the the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Default billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__jobs.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.546416, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountnumber\n \n as \n \n accountnumber\n \n, \n \n \n actualtime\n \n as \n \n actualtime\n \n, \n \n \n allowallresourcesfortasks\n \n as \n \n allowallresourcesfortasks\n \n, \n \n \n allowexpenses\n \n as \n \n allowexpenses\n \n, \n \n \n allowtime\n \n as \n \n allowtime\n \n, \n \n \n alternatecontact\n \n as \n \n alternatecontact\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n billingschedule\n \n as \n \n billingschedule\n \n, \n \n \n calculatedenddate\n \n as \n \n calculatedenddate\n \n, \n \n \n calculatedenddatebaseline\n \n as \n \n calculatedenddatebaseline\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n contactlist\n \n as \n \n contactlist\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n currencyprecision\n \n as \n \n currencyprecision\n \n, \n \n \n custentity1\n \n as \n \n custentity1\n \n, \n \n \n custentity4\n \n as \n \n custentity4\n \n, \n \n \n custentity5\n \n as \n \n custentity5\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n enddate\n \n as \n \n enddate\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitystatus\n \n as \n \n entitystatus\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n estimatedcost\n \n as \n \n estimatedcost\n \n, \n \n \n estimatedgrossprofit\n \n as \n \n estimatedgrossprofit\n \n, \n \n \n estimatedgrossprofitpercent\n \n as \n \n estimatedgrossprofitpercent\n \n, \n \n \n estimatedlaborcost\n \n as \n \n estimatedlaborcost\n \n, \n \n \n estimatedlaborcostbaseline\n \n as \n \n estimatedlaborcostbaseline\n \n, \n \n \n estimatedlaborrevenue\n \n as \n \n estimatedlaborrevenue\n \n, \n \n \n estimatedrevenue\n \n as \n \n estimatedrevenue\n \n, \n \n \n estimatedtime\n \n as \n \n estimatedtime\n \n, \n \n \n estimatedtimeoverride\n \n as \n \n estimatedtimeoverride\n \n, \n \n \n estimatedtimeoverridebaseline\n \n as \n \n estimatedtimeoverridebaseline\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n files\n \n as \n \n files\n \n, \n \n \n forecastchargerunondemand\n \n as \n \n forecastchargerunondemand\n \n, \n \n \n fxrate\n \n as \n \n fxrate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includecrmtasksintotals\n \n as \n \n includecrmtasksintotals\n \n, \n \n \n isexempttime\n \n as \n \n isexempttime\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isproductivetime\n \n as \n \n isproductivetime\n \n, \n \n \n isutilizedtime\n \n as \n \n isutilizedtime\n \n, \n \n \n jobbillingtype\n \n as \n \n jobbillingtype\n \n, \n \n \n jobitem\n \n as \n \n jobitem\n \n, \n \n \n jobprice\n \n as \n \n jobprice\n \n, \n \n \n jobtype\n \n as \n \n jobtype\n \n, \n \n \n lastbaselinedate\n \n as \n \n lastbaselinedate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n limittimetoassignees\n \n as \n \n limittimetoassignees\n \n, \n \n \n materializetime\n \n as \n \n materializetime\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n percentcomplete\n \n as \n \n percentcomplete\n \n, \n \n \n percenttimecomplete\n \n as \n \n percenttimecomplete\n \n, \n \n \n primarycontact\n \n as \n \n primarycontact\n \n, \n \n \n projectedenddate\n \n as \n \n projectedenddate\n \n, \n \n \n projectedenddatebaseline\n \n as \n \n projectedenddatebaseline\n \n, \n \n \n projectmanager\n \n as \n \n projectmanager\n \n, \n \n \n startdate\n \n as \n \n startdate\n \n, \n \n \n startdatebaseline\n \n as \n \n startdatebaseline\n \n, \n \n \n timeapproval\n \n as \n \n timeapproval\n \n, \n \n \n timeremaining\n \n as \n \n timeremaining\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n id as job_id,\n externalid as job_external_id,\n customer as customer_id,\n entityid as entity_id,\n defaultbillingaddress as billing_address_id,\n defaultshippingaddress as shipping_address_id,\n parent as parent_id\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\""}, "model.netsuite_source.stg_netsuite2__vendors": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__vendors_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__vendors_tmp')),\n staging_columns=get_netsuite2_vendors_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as vendor_id,\n companyname as company_name,\n datecreated as create_date_at,\n category as vendor_category_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_vendors_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors_tmp", "model.netsuite_source.stg_netsuite2__vendors_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendors"], "unique_id": "model.netsuite_source.stg_netsuite2__vendors", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__vendors.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendors.sql", "name": "stg_netsuite2__vendors", "alias": "stg_netsuite2__vendors", "checksum": {"name": "sha256", "checksum": "f4b5f8a87be234ed979c5f09110de8a2d32b791a6cc35fad0034b80493c6c4bb"}, "tags": [], "refs": [["stg_netsuite2__vendors_tmp"], ["stg_netsuite2__vendors_tmp"]], "sources": [], "description": "A table detailing all vendor information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendors.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.5595672, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountnumber\n \n as \n \n accountnumber\n \n, \n \n \n altemail\n \n as \n \n altemail\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n altphone\n \n as \n \n altphone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balanceprimary\n \n as \n \n balanceprimary\n \n, \n cast(null as \n int\n) as \n \n billingclass\n \n , \n \n \n category\n \n as \n \n category\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n contactlist\n \n as \n \n contactlist\n \n, \n \n \n creditlimit\n \n as \n \n creditlimit\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n defaultbankaccount\n \n as \n \n defaultbankaccount\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n defaultvendorpaymentaccount\n \n as \n \n defaultvendorpaymentaccount\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n emailpreference\n \n as \n \n emailpreference\n \n, \n \n \n emailtransactions\n \n as \n \n emailtransactions\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n expenseaccount\n \n as \n \n expenseaccount\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n faxtransactions\n \n as \n \n faxtransactions\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n giveaccess\n \n as \n \n giveaccess\n \n, \n \n \n homephone\n \n as \n \n homephone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n incoterm\n \n as \n \n incoterm\n \n, \n cast(null as \n varchar\n) as \n \n isautogeneratedrepresentingentity\n \n , \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isjobresourcevend\n \n as \n \n isjobresourcevend\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n laborcost\n \n as \n \n laborcost\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n legalname\n \n as \n \n legalname\n \n, \n \n \n middlename\n \n as \n \n middlename\n \n, \n \n \n mobilephone\n \n as \n \n mobilephone\n \n, \n \n \n payablesaccount\n \n as \n \n payablesaccount\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n printoncheckas\n \n as \n \n printoncheckas\n \n, \n \n \n printtransactions\n \n as \n \n printtransactions\n \n, \n \n \n purchaseorderamount\n \n as \n \n purchaseorderamount\n \n, \n \n \n purchaseorderquantity\n \n as \n \n purchaseorderquantity\n \n, \n \n \n purchaseorderquantitydiff\n \n as \n \n purchaseorderquantitydiff\n \n, \n \n \n receiptamount\n \n as \n \n receiptamount\n \n, \n \n \n receiptquantity\n \n as \n \n receiptquantity\n \n, \n \n \n receiptquantitydiff\n \n as \n \n receiptquantitydiff\n \n, \n cast(null as \n int\n) as \n \n representingsubsidiary\n \n , \n \n \n rolesforsearch\n \n as \n \n rolesforsearch\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n subsidiaryedition\n \n as \n \n subsidiaryedition\n \n, \n \n \n terms\n \n as \n \n terms\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n unbilledorders\n \n as \n \n unbilledorders\n \n, \n \n \n unbilledordersprimary\n \n as \n \n unbilledordersprimary\n \n, \n \n \n url\n \n as \n \n url\n \n, \n \n \n workcalendar\n \n as \n \n workcalendar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as vendor_id,\n companyname as company_name,\n datecreated as create_date_at,\n category as vendor_category_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\""}, "model.netsuite_source.stg_netsuite2__classes": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__classes_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__classes_tmp')),\n staging_columns=get_netsuite2_classes_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as class_id,\n externalid as class_external_id,\n name,\n fullname as full_name,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('classes_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_classes_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__classes_tmp", "model.netsuite_source.stg_netsuite2__classes_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__classes"], "unique_id": "model.netsuite_source.stg_netsuite2__classes", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__classes.sql", "original_file_path": "models/netsuite2/stg_netsuite2__classes.sql", "name": "stg_netsuite2__classes", "alias": "stg_netsuite2__classes", "checksum": {"name": "sha256", "checksum": "55d1438c5add45a09f7a06b5edb622b71d7b1fb040fdf473c3db51261844d4a1"}, "tags": [], "refs": [["stg_netsuite2__classes_tmp"], ["stg_netsuite2__classes_tmp"]], "sources": [], "description": "Table detailing all classes set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_external_id": {"name": "class_external_id", "description": "Reference to the external class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the class is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__classes.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.5311959, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as class_id,\n externalid as class_external_id,\n name,\n fullname as full_name,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\""}, "model.netsuite_source.stg_netsuite2__account_types": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__account_types_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__account_types_tmp')),\n staging_columns=get_accounttype_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n id as account_type_id,\n balancesheet = 'T' as is_balancesheet,\n {%- if target.type == 'bigquery' -%}\n `left` \n {%- elif target.type == 'snowflake' -%}\n \"LEFT\"\n {%- elif target.type in ('redshift', 'postgres') -%}\n \"left\" \n {%- else -%}\n left\n {%- endif -%} = 'T' as is_leftside,\n longname as type_name\n\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounttype_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types_tmp", "model.netsuite_source.stg_netsuite2__account_types_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__account_types"], "unique_id": "model.netsuite_source.stg_netsuite2__account_types", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__account_types.sql", "original_file_path": "models/netsuite2/stg_netsuite2__account_types.sql", "name": "stg_netsuite2__account_types", "alias": "stg_netsuite2__account_types", "checksum": {"name": "sha256", "checksum": "899ddfe641e319f7830072bbb040247692af2e25cfd465b838d27b46746b0106"}, "tags": [], "refs": [["stg_netsuite2__account_types_tmp"], ["stg_netsuite2__account_types_tmp"]], "sources": [], "description": "A table containing the various account types within Netsuite.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Boolean indicating if the account type is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Boolean indicating if the account type is leftside.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__account_types.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.521676, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balancesheet\n \n as \n \n balancesheet\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n defaultcashflowratetype\n \n as \n \n defaultcashflowratetype\n \n, \n \n \n defaultgeneralratetype\n \n as \n \n defaultgeneralratetype\n \n, \n \n \n eliminationalgo\n \n as \n \n eliminationalgo\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includeinrevaldefault\n \n as \n \n includeinrevaldefault\n \n, \n \n \n internalid\n \n as \n \n internalid\n \n, \n \n \n \n \n \"left\"\n \n \n \n as \n \n \n \n \"left\"\n \n \n \n, \n \n \n longname\n \n as \n \n longname\n \n, \n \n \n seqnum\n \n as \n \n seqnum\n \n, \n \n \n usercanchangerevaloption\n \n as \n \n usercanchangerevaloption\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n id as account_type_id,\n balancesheet = 'T' as is_balancesheet,\"left\"= 'T' as is_leftside,\n longname as type_name\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\""}, "model.netsuite_source.stg_netsuite2__entities": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__entities_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__entities_tmp')),\n staging_columns=get_entity_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as entity_id,\n parent as parent_id,\n entitytitle as entity_name,\n type as entity_type,\n isperson = 'T' as is_person,\n contact as contact_id,\n customer as customer_id,\n employee as employee_id,\n project as job_id,\n vendor as vendor_id\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_entity_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entities_tmp", "model.netsuite_source.stg_netsuite2__entities_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entities"], "unique_id": "model.netsuite_source.stg_netsuite2__entities", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__entities.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entities.sql", "name": "stg_netsuite2__entities", "alias": "stg_netsuite2__entities", "checksum": {"name": "sha256", "checksum": "96c2b4dc091545f8b992e7fd62354e3df9fcf7bfe2756a44bad286e691454492"}, "tags": [], "refs": [["stg_netsuite2__entities_tmp"], ["stg_netsuite2__entities_tmp"]], "sources": [], "description": "Table detailing all entities in Netsuite.", "columns": {"entity_id": {"name": "entity_id", "description": "Th \"The entity id of the entity used for the record.\"e unique identifier of the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The \"Unique identifier of the customer.\"unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_name": {"name": "entity_name", "description": "The entity name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating whether the entity is a person.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_id": {"name": "job_id", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_type": {"name": "entity_type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Th \"The unique identifier of the vendor.\"e unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entities.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.54004, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n altemail\n \n as \n \n altemail\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n altphone\n \n as \n \n altphone\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n employee\n \n as \n \n employee\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n genericresource\n \n as \n \n genericresource\n \n, \n \n \n homephone\n \n as \n \n homephone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n laborcost\n \n as \n \n laborcost\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n middlename\n \n as \n \n middlename\n \n, \n \n \n mobilephone\n \n as \n \n mobilephone\n \n, \n \n \n othername\n \n as \n \n othername\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n partner\n \n as \n \n partner\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n project\n \n as \n \n project\n \n, \n \n \n projecttemplate\n \n as \n \n projecttemplate\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n toplevelparent\n \n as \n \n toplevelparent\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as entity_id,\n parent as parent_id,\n entitytitle as entity_name,\n type as entity_type,\n isperson = 'T' as is_person,\n contact as contact_id,\n customer as customer_id,\n employee as employee_id,\n project as job_id,\n vendor as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\""}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_periods_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_periods_tmp')),\n staging_columns=get_netsuite2_accounting_periods_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_period_id,\n parent as parent_id, \n periodname as name,\n startdate as starting_at,\n enddate as ending_at,\n closedondate as closed_at,\n isquarter = 'T' as is_quarter,\n isyear = 'T' as is_year,\n isadjust = 'T' as is_adjustment,\n isposting = 'T' as is_posting,\n closed = 'T' as is_closed,\n alllocked = 'T' as is_all_locked,\n arlocked = 'T' as is_ar_locked,\n aplocked = 'T' as is_ap_locked\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounting_periods_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_periods"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_periods.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_periods.sql", "name": "stg_netsuite2__accounting_periods", "alias": "stg_netsuite2__accounting_periods", "checksum": {"name": "sha256", "checksum": "8007d75811cab3d6e1a2041de1c45e56095ba2e376c83d96bdeb8909527b4f7d"}, "tags": [], "refs": [["stg_netsuite2__accounting_periods_tmp"], ["stg_netsuite2__accounting_periods_tmp"]], "sources": [], "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_quarter": {"name": "is_quarter", "description": "Boolean indicating if the accounting period is the initial quarter.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_year": {"name": "is_year", "description": "Boolean indicating if the accounting period is the initial period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Boolean indicating if the accounting period is an adjustment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the accounting period is posting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_all_locked": {"name": "is_all_locked", "description": "Boolean indicating if all the accounting periods are locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_ar_locked": {"name": "is_ar_locked", "description": "Boolean indicating if the ar accounting period is locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_ap_locked": {"name": "is_ap_locked", "description": "Boolean indicating if the ap accounting period is locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_periods.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.527332, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n alllocked\n \n as \n \n alllocked\n \n, \n \n \n allownonglchanges\n \n as \n \n allownonglchanges\n \n, \n \n \n aplocked\n \n as \n \n aplocked\n \n, \n \n \n arlocked\n \n as \n \n arlocked\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n closedondate\n \n as \n \n closedondate\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n enddate\n \n as \n \n enddate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isadjust\n \n as \n \n isadjust\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isposting\n \n as \n \n isposting\n \n, \n \n \n isquarter\n \n as \n \n isquarter\n \n, \n \n \n isyear\n \n as \n \n isyear\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n periodname\n \n as \n \n periodname\n \n, \n \n \n startdate\n \n as \n \n startdate\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_period_id,\n parent as parent_id, \n periodname as name,\n startdate as starting_at,\n enddate as ending_at,\n closedondate as closed_at,\n isquarter = 'T' as is_quarter,\n isyear = 'T' as is_year,\n isadjust = 'T' as is_adjustment,\n isposting = 'T' as is_posting,\n closed = 'T' as is_closed,\n alllocked = 'T' as is_all_locked,\n arlocked = 'T' as is_ar_locked,\n aplocked = 'T' as is_ap_locked\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\""}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_period_fiscal_cal_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_period_fiscal_cal_tmp')),\n staging_columns=get_accountingperiodfiscalcalendars_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingperiod as accounting_period_id,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accountingperiodfiscalcalendars_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_period_fiscal_cal"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "name": "stg_netsuite2__accounting_period_fiscal_cal", "alias": "stg_netsuite2__accounting_period_fiscal_cal", "checksum": {"name": "sha256", "checksum": "2678f0fb6ff02c4a845196aa5ca3538a4a526d711e6fd3a36bda1bd96facb37d"}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal_tmp"], ["stg_netsuite2__accounting_period_fiscal_cal_tmp"]], "sources": [], "description": "A table containing the accounting fiscal calendar periods.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.52509, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountingperiod\n \n as \n \n accountingperiod\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n fiscalcalendar\n \n as \n \n fiscalcalendar\n \n, \n \n \n parent\n \n as \n \n parent\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingperiod as accounting_period_id,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\""}, "model.netsuite_source.stg_netsuite2__customers": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__customers_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__customers_tmp')),\n staging_columns=get_netsuite2_customers_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as customer_id,\n entityid as entity_id,\n externalid as customer_external_id,\n parent as parent_id,\n isperson = 'T' as is_person,\n companyname as company_name,\n firstname as first_name,\n lastname as last_name,\n email as email_address,\n phone as phone_number,\n defaultbillingaddress as default_billing_address_id,\n defaultshippingaddress as default_shipping_address_id,\n receivablesaccount as receivables_account_id,\n currency as currency_id,\n firstorderdate as date_first_order_at\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('customers_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_customers_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__customers_tmp", "model.netsuite_source.stg_netsuite2__customers_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__customers"], "unique_id": "model.netsuite_source.stg_netsuite2__customers", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__customers.sql", "original_file_path": "models/netsuite2/stg_netsuite2__customers.sql", "name": "stg_netsuite2__customers", "alias": "stg_netsuite2__customers", "checksum": {"name": "sha256", "checksum": "d0d06f971eb7ccff2cbba7e2d5b137177f34095ea8781804fbea74025b14189f"}, "tags": [], "refs": [["stg_netsuite2__customers_tmp"], ["stg_netsuite2__customers_tmp"]], "sources": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating if the customer is an individual person.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Last name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Customers email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_billing_address_id": {"name": "default_billing_address_id", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_shipping_address_id": {"name": "default_shipping_address_id", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivables_account_id": {"name": "receivables_account_id", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__customers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.536662, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n receivablesaccount\n \n as \n \n receivablesaccount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n firstorderdate\n \n as \n \n firstorderdate\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as customer_id,\n entityid as entity_id,\n externalid as customer_external_id,\n parent as parent_id,\n isperson = 'T' as is_person,\n companyname as company_name,\n firstname as first_name,\n lastname as last_name,\n email as email_address,\n phone as phone_number,\n defaultbillingaddress as default_billing_address_id,\n defaultshippingaddress as default_shipping_address_id,\n receivablesaccount as receivables_account_id,\n currency as currency_id,\n firstorderdate as date_first_order_at\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\""}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_book_subsidiaries_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_book_subsidiaries_tmp')),\n staging_columns=get_accountingbooksubsidiaries_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingbook as accounting_book_id,\n status,\n subsidiary as subsidiary_id\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accountingbooksubsidiaries_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_book_subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "name": "stg_netsuite2__accounting_book_subsidiaries", "alias": "stg_netsuite2__accounting_book_subsidiaries", "checksum": {"name": "sha256", "checksum": "39777cdd00b82f3bcdf35e01f1d089ba815201daa8f93f8b56c9026b506819ee"}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries_tmp"], ["stg_netsuite2__accounting_book_subsidiaries_tmp"]], "sources": [], "description": "A table containing the various account books and the respective subsidiaries.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.5225532, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountingbook\n \n as \n \n accountingbook\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingbook as accounting_book_id,\n status,\n subsidiary as subsidiary_id\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\""}, "model.netsuite_source.stg_netsuite2__accounts": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounts_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounts_tmp')),\n staging_columns=get_netsuite2_accounts_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as account_id, \n externalid as account_external_id,\n parent as parent_id,\n acctnumber as account_number,\n accttype as account_type_id,\n fullname as name,\n description as account_description,\n deferralacct as deferral_account_id,\n cashflowrate as cash_flow_rate_type,\n generalrate as general_rate_type,\n currency as currency_id,\n class as class_id,\n department as department_id,\n location as location_id,\n includechildren = 'T' as is_including_child_subs,\n isinactive = 'T' as is_inactive,\n issummary = 'T' as is_summary,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }}\n \n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounts_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts_tmp", "model.netsuite_source.stg_netsuite2__accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounts"], "unique_id": "model.netsuite_source.stg_netsuite2__accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounts.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounts.sql", "name": "stg_netsuite2__accounts", "alias": "stg_netsuite2__accounts", "checksum": {"name": "sha256", "checksum": "784d22fb98d78fd586615f77eacad4791287ef26e5638f184eb117fe0f008585"}, "tags": [], "refs": [["stg_netsuite2__accounts_tmp"], ["stg_netsuite2__accounts_tmp"]], "sources": [], "description": "Table detailing all accounts set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_external_id": {"name": "account_external_id", "description": "Reference to the external account,", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Netsuite generate account number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Reference to the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_description": {"name": "account_description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferral_account_id": {"name": "deferral_account_id", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_rate_type": {"name": "cash_flow_rate_type", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_including_child_subs": {"name": "is_including_child_subs", "description": "Boolean indicating if the account includes sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the account is inactive.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_summary": {"name": "is_summary", "description": "Boolean indicating if the account is a summary account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.5300102, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n acctnumber\n \n as \n \n acctnumber\n \n, \n \n \n accttype\n \n as \n \n accttype\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n deferralacct\n \n as \n \n deferralacct\n \n, \n \n \n cashflowrate\n \n as \n \n cashflowrate\n \n, \n \n \n generalrate\n \n as \n \n generalrate\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n class\n \n as \n \n class\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n includechildren\n \n as \n \n includechildren\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n issummary\n \n as \n \n issummary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as account_id, \n externalid as account_external_id,\n parent as parent_id,\n acctnumber as account_number,\n accttype as account_type_id,\n fullname as name,\n description as account_description,\n deferralacct as deferral_account_id,\n cashflowrate as cash_flow_rate_type,\n generalrate as general_rate_type,\n currency as currency_id,\n class as class_id,\n department as department_id,\n location as location_id,\n includechildren = 'T' as is_including_child_subs,\n isinactive = 'T' as is_inactive,\n issummary = 'T' as is_summary,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\""}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transaction_lines_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transaction_lines_tmp')),\n staging_columns=get_netsuite2_transaction_lines_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_line_id,\n transaction as transaction_id,\n linesequencenumber as transaction_line_number,\n memo,\n entity as entity_id,\n item as item_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n department as department_id,\n isclosed = 'T' as is_closed,\n isbillable = 'T' as is_billable,\n iscogs = 'T' as is_cogs,\n cleared = 'T' as is_cleared,\n commitmentfirm = 'T' as is_commitment_firm,\n mainline = 'T' as is_main_line,\n taxline = 'T' as is_tax_line\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transaction_lines_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_transaction_lines_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_lines"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_lines.sql", "name": "stg_netsuite2__transaction_lines", "alias": "stg_netsuite2__transaction_lines", "checksum": {"name": "sha256", "checksum": "f9c8883dafafdece7fb1ec344c62126790721198f540457a66a762808d96bc3b"}, "tags": [], "refs": [["stg_netsuite2__transaction_lines_tmp"], ["stg_netsuite2__transaction_lines_tmp"]], "sources": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_number": {"name": "transaction_line_number", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the transaction line is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_billable": {"name": "is_billable", "description": "Boolean indicating if the transaction line is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_cogs": {"name": "is_cogs", "description": "Boolean indicating if the transaction line is a cost of goods sold entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_cleared": {"name": "is_cleared", "description": "Boolean indicating if the transaction line is cleared.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_commitment_firm": {"name": "is_commitment_firm", "description": "Boolean indicating if the transaction line is a commitment firm.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_main_line": {"name": "is_main_line", "description": "Boolean indicating if the transaction line is a main line entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_tax_line": {"name": "is_tax_line", "description": "Boolean indicating if the transaction line is a tax line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.555653, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n transaction\n \n as \n \n transaction\n \n, \n \n \n linesequencenumber\n \n as \n \n linesequencenumber\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n entity\n \n as \n \n entity\n \n, \n \n \n item\n \n as \n \n item\n \n, \n \n \n class\n \n as \n \n class\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n isclosed\n \n as \n \n isclosed\n \n, \n \n \n isbillable\n \n as \n \n isbillable\n \n, \n \n \n iscogs\n \n as \n \n iscogs\n \n, \n \n \n cleared\n \n as \n \n cleared\n \n, \n \n \n commitmentfirm\n \n as \n \n commitmentfirm\n \n, \n \n \n mainline\n \n as \n \n mainline\n \n, \n \n \n taxline\n \n as \n \n taxline\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_line_id,\n transaction as transaction_id,\n linesequencenumber as transaction_line_number,\n memo,\n entity as entity_id,\n item as item_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n department as department_id,\n isclosed = 'T' as is_closed,\n isbillable = 'T' as is_billable,\n iscogs = 'T' as is_cogs,\n cleared = 'T' as is_cleared,\n commitmentfirm = 'T' as is_commitment_firm,\n mainline = 'T' as is_main_line,\n taxline = 'T' as is_tax_line\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\""}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__subsidiaries_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__subsidiaries_tmp')),\n staging_columns=get_netsuite2_subsidiaries_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as subsidiary_id,\n name,\n fullname as full_name,\n email as email_address,\n mainaddress as main_address_id,\n country,\n state,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('subsidiaries_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_subsidiaries_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__subsidiaries.sql", "name": "stg_netsuite2__subsidiaries", "alias": "stg_netsuite2__subsidiaries", "checksum": {"name": "sha256", "checksum": "3be3646f51e6cbce641a4069402d860f7db873e67e2cd8f73a58345d3a91b378"}, "tags": [], "refs": [["stg_netsuite2__subsidiaries_tmp"], ["stg_netsuite2__subsidiaries_tmp"]], "sources": [], "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.5509, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n mainaddress\n \n as \n \n mainaddress\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n fiscalcalendar\n \n as \n \n fiscalcalendar\n \n, \n \n \n parent\n \n as \n \n parent\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as subsidiary_id,\n name,\n fullname as full_name,\n email as email_address,\n mainaddress as main_address_id,\n country,\n state,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\""}, "model.netsuite_source.stg_netsuite2__entity_address": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__entity_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__entity_address_tmp')),\n staging_columns=get_entityaddress_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_entityaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entity_address_tmp", "model.netsuite_source.stg_netsuite2__entity_address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entity_address"], "unique_id": "model.netsuite_source.stg_netsuite2__entity_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__entity_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entity_address.sql", "name": "stg_netsuite2__entity_address", "alias": "stg_netsuite2__entity_address", "checksum": {"name": "sha256", "checksum": "71fa72175fd4e45cae5f56d051c957830f1b8593aaa90b849d9610dd48668b2c"}, "tags": [], "refs": [["stg_netsuite2__entity_address_tmp"], ["stg_netsuite2__entity_address_tmp"]], "sources": [], "description": "A table containing addresses and the various entities which they map.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entity_address.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.5418549, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n addr1\n \n as \n \n addr1\n \n, \n \n \n addr2\n \n as \n \n addr2\n \n, \n \n \n addr3\n \n as \n \n addr3\n \n, \n \n \n addressee\n \n as \n \n addressee\n \n, \n \n \n addrphone\n \n as \n \n addrphone\n \n, \n \n \n addrtext\n \n as \n \n addrtext\n \n, \n \n \n attention\n \n as \n \n attention\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n dropdownstate\n \n as \n \n dropdownstate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n nkey\n \n as \n \n nkey\n \n, \n \n \n override\n \n as \n \n override\n \n, \n \n \n recordowner\n \n as \n \n recordowner\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address\""}, "model.netsuite_source.stg_netsuite2__location_main_address": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__location_main_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__location_main_address_tmp')),\n staging_columns=get_locationmainaddress_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_locationmainaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp", "model.netsuite_source.stg_netsuite2__location_main_address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__location_main_address"], "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__location_main_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__location_main_address.sql", "name": "stg_netsuite2__location_main_address", "alias": "stg_netsuite2__location_main_address", "checksum": {"name": "sha256", "checksum": "71d9ec2fd5ab6d7c0a577fc3bbdc4444c6c266d474e88c3906f12a2d3798dfaf"}, "tags": [], "refs": [["stg_netsuite2__location_main_address_tmp"], ["stg_netsuite2__location_main_address_tmp"]], "sources": [], "description": "A table containing the location main addresses.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__location_main_address.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.548194, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n addr1\n \n as \n \n addr1\n \n, \n \n \n addr2\n \n as \n \n addr2\n \n, \n \n \n addr3\n \n as \n \n addr3\n \n, \n \n \n addressee\n \n as \n \n addressee\n \n, \n \n \n addrphone\n \n as \n \n addrphone\n \n, \n \n \n addrtext\n \n as \n \n addrtext\n \n, \n \n \n attention\n \n as \n \n attention\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n dropdownstate\n \n as \n \n dropdownstate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n nkey\n \n as \n \n nkey\n \n, \n \n \n override\n \n as \n \n override\n \n, \n \n \n recordowner\n \n as \n \n recordowner\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address\""}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__vendor_categories_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__vendor_categories_tmp')),\n staging_columns=get_vendorcategory_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as vendor_category_id,\n name,\n _fivetran_synced\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendorcategory_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendor_categories"], "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__vendor_categories.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendor_categories.sql", "name": "stg_netsuite2__vendor_categories", "alias": "stg_netsuite2__vendor_categories", "checksum": {"name": "sha256", "checksum": "a45b44927e18434b668db3bb0b0720f6aca37bb13f31efc6e60f768933e055d3"}, "tags": [], "refs": [["stg_netsuite2__vendor_categories_tmp"], ["stg_netsuite2__vendor_categories_tmp"]], "sources": [], "description": "A table containing categories and how they map to vendors.", "columns": {"vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendor_categories.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.558611, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n istaxagency\n \n as \n \n istaxagency\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as vendor_category_id,\n name,\n _fivetran_synced\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\""}, "model.netsuite_source.stg_netsuite2__departments": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__departments_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__departments_tmp')),\n staging_columns=get_netsuite2_departments_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as department_id,\n parent as parent_id,\n name,\n fullname as full_name,\n subsidiary as subsidiary_id,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('departments_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_departments_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__departments_tmp", "model.netsuite_source.stg_netsuite2__departments_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__departments"], "unique_id": "model.netsuite_source.stg_netsuite2__departments", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__departments.sql", "original_file_path": "models/netsuite2/stg_netsuite2__departments.sql", "name": "stg_netsuite2__departments", "alias": "stg_netsuite2__departments", "checksum": {"name": "sha256", "checksum": "11fa478222fba8dfc22c4d63b005fe315d9fb8f98dbf5e5e3af23a3304d763ed"}, "tags": [], "refs": [["stg_netsuite2__departments_tmp"], ["stg_netsuite2__departments_tmp"]], "sources": [], "description": "Table detailing all departments set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the department is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__departments.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.53817, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as department_id,\n parent as parent_id,\n name,\n fullname as full_name,\n subsidiary as subsidiary_id,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\""}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transaction_accounting_lines_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transaction_accounting_lines_tmp')),\n staging_columns=get_transactionaccountingline_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n transaction as transaction_id,\n transactionline as transaction_line_id,\n accountingbook as accounting_book_id,\n account as account_id,\n posting = 'T' as is_posting,\n amount,\n credit as credit_amount,\n debit as debit_amount,\n netamount as net_amount,\n amountpaid as paid_amount,\n amountunpaid as unpaid_amount\n from fields\n)\n\nselect *\nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transactionaccountingline_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_accounting_lines"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "name": "stg_netsuite2__transaction_accounting_lines", "alias": "stg_netsuite2__transaction_accounting_lines", "checksum": {"name": "sha256", "checksum": "8f11b9036edda818da5d940ba0b8f012be8602910c6488dac1b8f0c854165e1a"}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines_tmp"], ["stg_netsuite2__transaction_accounting_lines_tmp"]], "sources": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The tra \"The transaction id of referenced for the record.\"nsaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "net_amount": {"name": "net_amount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Reference to the accounting book of the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the entry is posting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_amount": {"name": "credit_amount", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "debit_amount": {"name": "debit_amount", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "paid_amount": {"name": "paid_amount", "description": "Total amount paid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unpaid_amount": {"name": "unpaid_amount", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.5528839, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account\n \n as \n \n account\n \n, \n \n \n accountingbook\n \n as \n \n accountingbook\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amountlinked\n \n as \n \n amountlinked\n \n, \n \n \n amountpaid\n \n as \n \n amountpaid\n \n, \n \n \n amountunpaid\n \n as \n \n amountunpaid\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n debit\n \n as \n \n debit\n \n, \n \n \n exchangerate\n \n as \n \n exchangerate\n \n, \n \n \n netamount\n \n as \n \n netamount\n \n, \n \n \n overheadparentitem\n \n as \n \n overheadparentitem\n \n, \n \n \n paymentamountunused\n \n as \n \n paymentamountunused\n \n, \n \n \n paymentamountused\n \n as \n \n paymentamountused\n \n, \n \n \n posting\n \n as \n \n posting\n \n, \n \n \n transaction\n \n as \n \n transaction\n \n, \n \n \n transactionline\n \n as \n \n transactionline\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n transaction as transaction_id,\n transactionline as transaction_line_id,\n accountingbook as accounting_book_id,\n account as account_id,\n posting = 'T' as is_posting,\n amount,\n credit as credit_amount,\n debit as debit_amount,\n netamount as net_amount,\n amountpaid as paid_amount,\n amountunpaid as unpaid_amount\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\""}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__consolidated_exchange_rates_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__consolidated_exchange_rates_tmp')),\n staging_columns=get_netsuite2_consolidated_exchange_rates_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as consolidated_exchange_rate_id,\n postingperiod as accounting_period_id,\n fromcurrency as from_currency_id,\n fromsubsidiary as from_subsidiary_id,\n tocurrency as to_currency_id,\n tosubsidiary as to_subsidiary_id,\n currentrate as current_rate, \n averagerate as average_rate,\n historicalrate as historical_rate\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('consolidated_exchange_rates_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__consolidated_exchange_rates"], "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "name": "stg_netsuite2__consolidated_exchange_rates", "alias": "stg_netsuite2__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "d818a9207416d913242d57089bfdf69d9c3f9e0c0d865ec51ae24b6b36a93c34"}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates_tmp"], ["stg_netsuite2__consolidated_exchange_rates_tmp"]], "sources": [], "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"consolidated_exchange_rate_id": {"name": "consolidated_exchange_rate_id", "description": "unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_currency_id": {"name": "from_currency_id", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_currency_id": {"name": "to_currency_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.532539, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n averagerate\n \n as \n \n averagerate\n \n, \n \n \n currentrate\n \n as \n \n currentrate\n \n, \n \n \n fromcurrency\n \n as \n \n fromcurrency\n \n, \n \n \n fromsubsidiary\n \n as \n \n fromsubsidiary\n \n, \n \n \n historicalrate\n \n as \n \n historicalrate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n postingperiod\n \n as \n \n postingperiod\n \n, \n \n \n tocurrency\n \n as \n \n tocurrency\n \n, \n \n \n tosubsidiary\n \n as \n \n tosubsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as consolidated_exchange_rate_id,\n postingperiod as accounting_period_id,\n fromcurrency as from_currency_id,\n fromsubsidiary as from_subsidiary_id,\n tocurrency as to_currency_id,\n tosubsidiary as to_subsidiary_id,\n currentrate as current_rate, \n averagerate as average_rate,\n historicalrate as historical_rate\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\""}, "model.netsuite_source.stg_netsuite2__accounting_books": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_books_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_books_tmp')),\n staging_columns=get_netsuite2_accounting_books_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_book_id,\n name as accounting_book_name,\n basebook as base_book_id,\n effectiveperiod as effective_period_id,\n isadjustmentonly = 'T' as is_adjustment_only,\n isconsolidated = 'T' as is_consolidated,\n contingentrevenuehandling as is_contingent_revenue_handling,\n isprimary = 'T' as is_primary,\n twosteprevenueallocation as is_two_step_revenue_allocation\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounting_books_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp", "model.netsuite_source.stg_netsuite2__accounting_books_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_books"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_books.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_books.sql", "name": "stg_netsuite2__accounting_books", "alias": "stg_netsuite2__accounting_books", "checksum": {"name": "sha256", "checksum": "10a5c8ef91c968893a74423d0235f7d63ac7e279cb2e08a404ae92a85567bbc9"}, "tags": [], "refs": [["stg_netsuite2__accounting_books_tmp"], ["stg_netsuite2__accounting_books_tmp"]], "sources": [], "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_book_id": {"name": "base_book_id", "description": "Reference to the base book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_period_id": {"name": "effective_period_id", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment_only": {"name": "is_adjustment_only", "description": "Boolean indicating if the accounting book is an adjustment only.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_consolidated": {"name": "is_consolidated", "description": "Boolean indicating if the accounting book is a consolidated entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_contingent_revenue_handling": {"name": "is_contingent_revenue_handling", "description": "Boolean indicating if the accounting book is contingent revenue handling.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating if the accounting book is a primary entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_two_step_revenue_allocation": {"name": "is_two_step_revenue_allocation", "description": "Boolean indicating if the accounting book is a two step revenue allocation entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_books.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.524214, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n basebook\n \n as \n \n basebook\n \n, \n cast(null as \n varchar\n) as \n \n contingentrevenuehandling\n \n , \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n effectiveperiod\n \n as \n \n effectiveperiod\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isadjustmentonly\n \n as \n \n isadjustmentonly\n \n, \n \n \n isconsolidated\n \n as \n \n isconsolidated\n \n, \n \n \n isprimary\n \n as \n \n isprimary\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n subsidiariesstring\n \n as \n \n subsidiariesstring\n \n, \n cast(null as \n varchar\n) as \n \n twosteprevenueallocation\n \n , \n cast(null as \n varchar\n) as \n \n unbilledreceivablegrouping\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_book_id,\n name as accounting_book_name,\n basebook as base_book_id,\n effectiveperiod as effective_period_id,\n isadjustmentonly = 'T' as is_adjustment_only,\n isconsolidated = 'T' as is_consolidated,\n contingentrevenuehandling as is_contingent_revenue_handling,\n isprimary = 'T' as is_primary,\n twosteprevenueallocation as is_two_step_revenue_allocation\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\""}, "model.netsuite_source.stg_netsuite2__items": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__items_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__items_tmp')),\n staging_columns=get_netsuite2_items_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as item_id,\n fullname as name,\n itemtype as type_name,\n description as sales_description,\n department as department_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n assetaccount as asset_account_id,\n expenseaccount as expense_account_id,\n gainlossaccount as gain_loss_account_id,\n incomeaccount as income_account_id,\n intercoexpenseaccount as interco_expense_account_id,\n intercoincomeaccount as interco_income_account_id,\n deferralaccount as deferred_expense_account_id,\n deferredrevenueaccount as deferred_revenue_account_id,\n parent as parent_item_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_items_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__items_tmp", "model.netsuite_source.stg_netsuite2__items_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__items"], "unique_id": "model.netsuite_source.stg_netsuite2__items", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__items.sql", "original_file_path": "models/netsuite2/stg_netsuite2__items.sql", "name": "stg_netsuite2__items", "alias": "stg_netsuite2__items", "checksum": {"name": "sha256", "checksum": "4ab457d19f1ffedf51a61dd39255596ec7199e281ebda2927355ee002d5b2614"}, "tags": [], "refs": [["stg_netsuite2__items_tmp"], ["stg_netsuite2__items_tmp"]], "sources": [], "description": "Table detailing information about the items created in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "Item type name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "gain_loss_account_id": {"name": "gain_loss_account_id", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "interco_expense_account_id": {"name": "interco_expense_account_id", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "interco_income_account_id": {"name": "interco_income_account_id", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferred_expense_account_id": {"name": "deferred_expense_account_id", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferred_revenue_account_id": {"name": "deferred_revenue_account_id", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__items.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.544775, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items_tmp\"\n\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as \n int\n) as \n \n alternatedemandsourceitem\n \n , \n cast(null as \n int\n) as \n \n amortizationperiod\n \n , \n cast(null as \n int\n) as \n \n amortizationtemplate\n \n , \n \n \n assetaccount\n \n as \n \n assetaccount\n \n, \n cast(null as \n varchar\n) as \n \n atpmethod\n \n , \n cast(null as \n varchar\n) as \n \n autoexpandkitforrevenuemgmt\n \n , \n cast(null as \n float\n) as \n \n averagecost\n \n , \n cast(null as \n int\n) as \n \n backwardconsumptiondays\n \n , \n cast(null as \n int\n) as \n \n billexchratevarianceacct\n \n , \n cast(null as \n int\n) as \n \n billingschedule\n \n , \n cast(null as \n int\n) as \n \n billpricevarianceacct\n \n , \n cast(null as \n int\n) as \n \n billqtyvarianceacct\n \n , \n cast(null as \n varchar\n) as \n \n buildentireassembly\n \n , \n cast(null as \n float\n) as \n \n buildtime\n \n , \n \n \n class\n \n as \n \n class\n \n, \n cast(null as \n int\n) as \n \n consumptionunit\n \n , \n cast(null as \n varchar\n) as \n \n copydescription\n \n , \n cast(null as \n float\n) as \n \n cost\n \n , \n cast(null as \n float\n) as \n \n costestimate\n \n , \n cast(null as \n varchar\n) as \n \n costestimatetype\n \n , \n cast(null as \n varchar\n) as \n \n costingmethod\n \n , \n cast(null as \n varchar\n) as \n \n costingmethoddisplay\n \n , \n cast(null as \n varchar\n) as \n \n countryofmanufacture\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n createddate\n \n , \n cast(null as \n int\n) as \n \n createexpenseplanson\n \n , \n cast(null as \n varchar\n) as \n \n createjob\n \n , \n cast(null as \n int\n) as \n \n createrevenueplanson\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n \n \n deferralaccount\n \n as \n \n deferralaccount\n \n, \n cast(null as \n int\n) as \n \n deferredrevenueaccount\n \n , \n cast(null as \n varchar\n) as \n \n deferrevrec\n \n , \n cast(null as \n float\n) as \n \n demandmodifier\n \n , \n cast(null as \n varchar\n) as \n \n demandsource\n \n , \n cast(null as \n int\n) as \n \n demandtimefence\n \n , \n \n \n department\n \n as \n \n department\n \n, \n \n \n description\n \n as \n \n description\n \n, \n cast(null as \n varchar\n) as \n \n directrevenueposting\n \n , \n cast(null as \n varchar\n) as \n \n displayname\n \n , \n cast(null as \n int\n) as \n \n dropshipexpenseaccount\n \n , \n cast(null as \n varchar\n) as \n \n enforceminqtyinternally\n \n , \n cast(null as \n varchar\n) as \n \n excludefromsitemap\n \n , \n \n \n expenseaccount\n \n as \n \n expenseaccount\n \n, \n cast(null as \n int\n) as \n \n expenseamortizationrule\n \n , \n cast(null as \n varchar\n) as \n \n externalid\n \n , \n cast(null as \n float\n) as \n \n fixedlotsize\n \n , \n cast(null as \n int\n) as \n \n forwardconsumptiondays\n \n , \n cast(null as \n varchar\n) as \n \n froogleproductfeed\n \n , \n \n \n fullname\n \n as \n \n fullname\n \n, \n cast(null as \n float\n) as \n \n fxcost\n \n , \n \n \n gainlossaccount\n \n as \n \n gainlossaccount\n \n, \n cast(null as \n varchar\n) as \n \n generateaccruals\n \n , \n cast(null as \n float\n) as \n \n handlingcost\n \n , \n \n \n id\n \n as \n \n id\n \n, \n cast(null as \n varchar\n) as \n \n includechildren\n \n , \n \n \n incomeaccount\n \n as \n \n incomeaccount\n \n, \n cast(null as \n int\n) as \n \n intercodefrevaccount\n \n , \n cast(null as \n int\n) as \n \n intercoexpenseaccount\n \n , \n cast(null as \n int\n) as \n \n intercoincomeaccount\n \n , \n cast(null as \n varchar\n) as \n \n isdropshipitem\n \n , \n cast(null as \n varchar\n) as \n \n isfulfillable\n \n , \n cast(null as \n varchar\n) as \n \n isinactive\n \n , \n cast(null as \n varchar\n) as \n \n islotitem\n \n , \n cast(null as \n varchar\n) as \n \n isonline\n \n , \n cast(null as \n varchar\n) as \n \n isphantom\n \n , \n cast(null as \n varchar\n) as \n \n isserialitem\n \n , \n cast(null as \n varchar\n) as \n \n isspecialorderitem\n \n , \n cast(null as \n varchar\n) as \n \n isspecialworkorderitem\n \n , \n cast(null as \n varchar\n) as \n \n itemid\n \n , \n cast(null as \n int\n) as \n \n itemrevenuecategory\n \n , \n \n \n itemtype\n \n as \n \n itemtype\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n lastmodifieddate\n \n , \n cast(null as \n float\n) as \n \n lastpurchaseprice\n \n , \n cast(null as \n int\n) as \n \n leadtime\n \n , \n \n \n location\n \n as \n \n location\n \n, \n cast(null as \n varchar\n) as \n \n manufacturer\n \n , \n cast(null as \n varchar\n) as \n \n matchbilltoreceipt\n \n , \n cast(null as \n varchar\n) as \n \n matrixitemnametemplate\n \n , \n cast(null as \n varchar\n) as \n \n matrixtype\n \n , \n cast(null as \n int\n) as \n \n maximumquantity\n \n , \n cast(null as \n int\n) as \n \n minimumquantity\n \n , \n cast(null as \n varchar\n) as \n \n mpn\n \n , \n cast(null as \n varchar\n) as \n \n nextagcategory\n \n , \n cast(null as \n varchar\n) as \n \n nextagproductfeed\n \n , \n cast(null as \n varchar\n) as \n \n overallquantitypricingtype\n \n , \n \n \n parent\n \n as \n \n parent\n \n, \n cast(null as \n int\n) as \n \n periodiclotsizedays\n \n , \n cast(null as \n varchar\n) as \n \n periodiclotsizetype\n \n , \n cast(null as \n int\n) as \n \n preferredlocation\n \n , \n cast(null as \n int\n) as \n \n pricinggroup\n \n , \n cast(null as \n varchar\n) as \n \n printitems\n \n , \n cast(null as \n int\n) as \n \n prodpricevarianceacct\n \n , \n cast(null as \n int\n) as \n \n prodqtyvarianceacct\n \n , \n cast(null as \n int\n) as \n \n projectexpensetype\n \n , \n cast(null as \n int\n) as \n \n projecttemplate\n \n , \n cast(null as \n varchar\n) as \n \n purchasedescription\n \n , \n cast(null as \n float\n) as \n \n purchaseorderamount\n \n , \n cast(null as \n float\n) as \n \n purchaseorderquantity\n \n , \n cast(null as \n float\n) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as \n int\n) as \n \n purchasepricevarianceacct\n \n , \n cast(null as \n int\n) as \n \n purchaseunit\n \n , \n cast(null as \n int\n) as \n \n quantitypricingschedule\n \n , \n cast(null as \n float\n) as \n \n receiptamount\n \n , \n cast(null as \n float\n) as \n \n receiptquantity\n \n , \n cast(null as \n float\n) as \n \n receiptquantitydiff\n \n , \n cast(null as \n varchar\n) as \n \n relateditemsdescription\n \n , \n cast(null as \n int\n) as \n \n rescheduleindays\n \n , \n cast(null as \n int\n) as \n \n rescheduleoutdays\n \n , \n cast(null as \n float\n) as \n \n residual\n \n , \n cast(null as \n int\n) as \n \n revenueallocationgroup\n \n , \n cast(null as \n int\n) as \n \n revenuerecognitionrule\n \n , \n cast(null as \n int\n) as \n \n revrecforecastrule\n \n , \n cast(null as \n int\n) as \n \n revreclassfxaccount\n \n , \n cast(null as \n varchar\n) as \n \n roundupascomponent\n \n , \n cast(null as \n float\n) as \n \n safetystocklevel\n \n , \n cast(null as \n int\n) as \n \n saleunit\n \n , \n cast(null as \n int\n) as \n \n scrapacct\n \n , \n cast(null as \n varchar\n) as \n \n searchkeywords\n \n , \n cast(null as \n varchar\n) as \n \n seasonaldemand\n \n , \n cast(null as \n varchar\n) as \n \n shipindividually\n \n , \n cast(null as \n int\n) as \n \n shippackage\n \n , \n cast(null as \n float\n) as \n \n shippingcost\n \n , \n cast(null as \n varchar\n) as \n \n shoppingdotcomcategory\n \n , \n cast(null as \n varchar\n) as \n \n shoppingproductfeed\n \n , \n cast(null as \n int\n) as \n \n shopzillacategoryid\n \n , \n cast(null as \n varchar\n) as \n \n shopzillaproductfeed\n \n , \n cast(null as \n varchar\n) as \n \n sitemappriority\n \n , \n cast(null as \n varchar\n) as \n \n stockdescription\n \n , \n cast(null as \n int\n) as \n \n stockunit\n \n , \n cast(null as \n varchar\n) as \n \n storedescription\n \n , \n cast(null as \n int\n) as \n \n storedisplayimage\n \n , \n cast(null as \n varchar\n) as \n \n storedisplayname\n \n , \n cast(null as \n int\n) as \n \n storedisplaythumbnail\n \n , \n \n \n subsidiary\n \n as \n \n subsidiary\n \n, \n cast(null as \n varchar\n) as \n \n subtype\n \n , \n cast(null as \n varchar\n) as \n \n supplylotsizingmethod\n \n , \n cast(null as \n varchar\n) as \n \n supplyreplenishmentmethod\n \n , \n cast(null as \n int\n) as \n \n supplytimefence\n \n , \n cast(null as \n varchar\n) as \n \n supplytype\n \n , \n cast(null as \n float\n) as \n \n totalquantityonhand\n \n , \n cast(null as \n float\n) as \n \n totalvalue\n \n , \n cast(null as \n float\n) as \n \n transferprice\n \n , \n cast(null as \n int\n) as \n \n unbuildvarianceaccount\n \n , \n cast(null as \n int\n) as \n \n unitstype\n \n , \n cast(null as \n varchar\n) as \n \n upccode\n \n , \n cast(null as \n varchar\n) as \n \n usebins\n \n , \n cast(null as \n varchar\n) as \n \n usemarginalrates\n \n , \n cast(null as \n varchar\n) as \n \n vendorname\n \n , \n cast(null as \n int\n) as \n \n vendreturnvarianceaccount\n \n , \n cast(null as \n varchar\n) as \n \n vsoedelivered\n \n , \n cast(null as \n varchar\n) as \n \n vsoepermitdiscount\n \n , \n cast(null as \n varchar\n) as \n \n vsoesopgroup\n \n , \n cast(null as \n float\n) as \n \n weight\n \n , \n cast(null as \n int\n) as \n \n weightunit\n \n , \n cast(null as \n varchar\n) as \n \n weightunits\n \n , \n cast(null as \n int\n) as \n \n wipacct\n \n , \n cast(null as \n int\n) as \n \n wipvarianceacct\n \n , \n cast(null as \n varchar\n) as \n \n yahooproductfeed\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as item_id,\n fullname as name,\n itemtype as type_name,\n description as sales_description,\n department as department_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n assetaccount as asset_account_id,\n expenseaccount as expense_account_id,\n gainlossaccount as gain_loss_account_id,\n incomeaccount as income_account_id,\n intercoexpenseaccount as interco_expense_account_id,\n intercoincomeaccount as interco_income_account_id,\n deferralaccount as deferred_expense_account_id,\n deferredrevenueaccount as deferred_revenue_account_id,\n parent as parent_item_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\""}, "model.netsuite_source.stg_netsuite2__currencies": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__currencies_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__currencies_tmp')),\n staging_columns=get_netsuite2_currencies_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as currency_id,\n name,\n symbol\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies_tmp", "model.netsuite_source.stg_netsuite2__currencies_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__currencies"], "unique_id": "model.netsuite_source.stg_netsuite2__currencies", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__currencies.sql", "original_file_path": "models/netsuite2/stg_netsuite2__currencies.sql", "name": "stg_netsuite2__currencies", "alias": "stg_netsuite2__currencies", "checksum": {"name": "sha256", "checksum": "1732f9e10cdf1c28cb34fff21a98ce324488fb97373e28f948479653fddb4f52"}, "tags": [], "refs": [["stg_netsuite2__currencies_tmp"], ["stg_netsuite2__currencies_tmp"]], "sources": [], "description": "Table detailing all currency information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__currencies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.533346, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n currencyprecision\n \n as \n \n currencyprecision\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n displaysymbol\n \n as \n \n displaysymbol\n \n, \n \n \n exchangerate\n \n as \n \n exchangerate\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fxrateupdatetimezone\n \n as \n \n fxrateupdatetimezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includeinfxrateupdates\n \n as \n \n includeinfxrateupdates\n \n, \n \n \n isbasecurrency\n \n as \n \n isbasecurrency\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n overridecurrencyformat\n \n as \n \n overridecurrencyformat\n \n, \n \n \n symbol\n \n as \n \n symbol\n \n, \n \n \n symbolplacement\n \n as \n \n symbolplacement\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as currency_id,\n name,\n symbol\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\""}, "model.netsuite_source.stg_netsuite2__locations": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__locations_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__locations_tmp')),\n staging_columns=get_netsuite2_locations_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as location_id,\n name,\n fullname as full_name,\n mainaddress as main_address_id,\n parent as parent_id,\n subsidiary as subsidiary_id\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('locations_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_locations_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__locations_tmp", "model.netsuite_source.stg_netsuite2__locations_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__locations"], "unique_id": "model.netsuite_source.stg_netsuite2__locations", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__locations.sql", "original_file_path": "models/netsuite2/stg_netsuite2__locations.sql", "name": "stg_netsuite2__locations", "alias": "stg_netsuite2__locations", "checksum": {"name": "sha256", "checksum": "f209763d31da50bf88ec1381c272ebc8800cec9be699a5d2bb3d35ee83a213c3"}, "tags": [], "refs": [["stg_netsuite2__locations_tmp"], ["stg_netsuite2__locations_tmp"]], "sources": [], "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__locations.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.549315, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n mainaddress\n \n as \n \n mainaddress\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as location_id,\n name,\n fullname as full_name,\n mainaddress as main_address_id,\n parent as parent_id,\n subsidiary as subsidiary_id\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\""}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_subsidiaries') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.subsidiary"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "name": "stg_netsuite2__subsidiaries_tmp", "alias": "stg_netsuite2__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "6666ee27a531fb4f909f1a5bb1ed78860aaab0fce53c3a7d64110b1bb94f8978"}, "tags": [], "refs": [], "sources": [["netsuite2", "subsidiary"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.9507258, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transactions') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transactions_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "name": "stg_netsuite2__transactions_tmp", "alias": "stg_netsuite2__transactions_tmp", "checksum": {"name": "sha256", "checksum": "1625f18a3c8501316cb07107ba8fa7193670933f4257bbb1d9af4ba906a2dad0"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.953855, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions_tmp\""}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_entity_address') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity_address"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entity_address_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "name": "stg_netsuite2__entity_address_tmp", "alias": "stg_netsuite2__entity_address_tmp", "checksum": {"name": "sha256", "checksum": "fcf2a49835607b81e8b532e6103522e1ae39c31c40cab59ac1afe6d989ddf459"}, "tags": [], "refs": [], "sources": [["netsuite2", "entity_address"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.956956, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address_tmp\""}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_account_types') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account_type"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__account_types_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "name": "stg_netsuite2__account_types_tmp", "alias": "stg_netsuite2__account_types_tmp", "checksum": {"name": "sha256", "checksum": "3415db1a2707377cc7b0653882967c59ed725db0dd959536151d511a41c678c1"}, "tags": [], "refs": [], "sources": [["netsuite2", "account_type"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.960727, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_accounting_periods') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_periods_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "name": "stg_netsuite2__accounting_periods_tmp", "alias": "stg_netsuite2__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "0149cbd8d601dfcba0487e44f82d6ec166fb513775670cf614d6c6be4164c437"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_period"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.963756, "compiled_sql": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods_tmp\""}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_jobs') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.job"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__jobs_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "name": "stg_netsuite2__jobs_tmp", "alias": "stg_netsuite2__jobs_tmp", "checksum": {"name": "sha256", "checksum": "14799bd78ef93ef464b4dca07908e6ee44a7ff9881faf86757d39b5f4b1d0fd9"}, "tags": [], "refs": [], "sources": [["netsuite2", "job"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.966879, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs_tmp\""}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transaction_lines') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_line"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "name": "stg_netsuite2__transaction_lines_tmp", "alias": "stg_netsuite2__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "15ebc09543829a7c09c0e49c546ffa8aae2b509054f26f5cbf06f3aa31731c80"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction_line"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.969908, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines_tmp\""}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_accounts') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "name": "stg_netsuite2__accounts_tmp", "alias": "stg_netsuite2__accounts_tmp", "checksum": {"name": "sha256", "checksum": "2a8d008c5c30f44eca40fa5871ea2579d0b51cf45cf10a39addb620fd870259f"}, "tags": [], "refs": [], "sources": [["netsuite2", "account"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.9729111, "compiled_sql": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts_tmp\""}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_customers') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.customer"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__customers_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "name": "stg_netsuite2__customers_tmp", "alias": "stg_netsuite2__customers_tmp", "checksum": {"name": "sha256", "checksum": "e2db5f557cfe416e87f1b8fb38e2b62277871d2ed4c8b3f0ba83f35bcda6ecba"}, "tags": [], "refs": [], "sources": [["netsuite2", "customer"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.975918, "compiled_sql": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers_tmp\""}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_entities') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entities_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "name": "stg_netsuite2__entities_tmp", "alias": "stg_netsuite2__entities_tmp", "checksum": {"name": "sha256", "checksum": "bb55a24286c0f26fd9e40a0f56b694fed4a736385a94deeb64ee3360c1310c29"}, "tags": [], "refs": [], "sources": [["netsuite2", "entity"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.979691, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities_tmp\""}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_currencies') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.currency"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__currencies_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "name": "stg_netsuite2__currencies_tmp", "alias": "stg_netsuite2__currencies_tmp", "checksum": {"name": "sha256", "checksum": "1f06a4a8f01197479386859c92462ba485f304e6c944130f66424fb4511a5799"}, "tags": [], "refs": [], "sources": [["netsuite2", "currency"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.982805, "compiled_sql": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies_tmp\""}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_vendors') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendors_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "name": "stg_netsuite2__vendors_tmp", "alias": "stg_netsuite2__vendors_tmp", "checksum": {"name": "sha256", "checksum": "e18a924a82a09bd660ba8517d492632efd1c2eabb10e4979e93f422e558d8022"}, "tags": [], "refs": [], "sources": [["netsuite2", "vendor"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.985923, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors_tmp\""}, "model.netsuite_source.stg_netsuite2__items_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_items') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.item"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__items_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__items_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "name": "stg_netsuite2__items_tmp", "alias": "stg_netsuite2__items_tmp", "checksum": {"name": "sha256", "checksum": "521a428cea21fb1a256cb1a87335aebc92154e37ead547e3e21b5deeae0ea6c2"}, "tags": [], "refs": [], "sources": [["netsuite2", "item"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.989024, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_books') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_books_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "name": "stg_netsuite2__accounting_books_tmp", "alias": "stg_netsuite2__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "cc98aeb539020875ec062839d35fd9bed387c7596e29f8fabe2301a90e59d3ac"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_book"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.992002, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_period_fiscal_calendars') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_period_fiscal_cal_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "alias": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "checksum": {"name": "sha256", "checksum": "d88060ffff63d2d9030c23de1a17a15dd7a34ecda89e323dc7e9cf140a04b03a"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_period_fiscal_calendars"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.995052, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal_tmp\""}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_vendor_categories') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor_category"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendor_categories_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "name": "stg_netsuite2__vendor_categories_tmp", "alias": "stg_netsuite2__vendor_categories_tmp", "checksum": {"name": "sha256", "checksum": "f82fdbf026c789b1a690db3fbcdebfa21b0d7cd1a4224fb03e169fda80079960"}, "tags": [], "refs": [], "sources": [["netsuite2", "vendor_category"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876149.999159, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_book_subsidiaries') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_book_subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "alias": "stg_netsuite2__accounting_book_subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "963b2446cfee86b091792d2f0543ce69674775e2abddef92bafff8f6fc3e4220"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_book_subsidiaries"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.002249, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transaction_accounting_lines') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_accounting_line"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_accounting_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "alias": "stg_netsuite2__transaction_accounting_lines_tmp", "checksum": {"name": "sha256", "checksum": "91bfd0a5babb67c22979bdb03a16a185b90199fc905d8f55ec34516aa3674991"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction_accounting_line"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.005327, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines_tmp\""}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_location_main_address') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location_main_address"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__location_main_address_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "name": "stg_netsuite2__location_main_address_tmp", "alias": "stg_netsuite2__location_main_address_tmp", "checksum": {"name": "sha256", "checksum": "360d4cd8b3a246007978c640ed7a423c49b628411bda7d8aab78f431f973d4be"}, "tags": [], "refs": [], "sources": [["netsuite2", "location_main_address"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.008534, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address_tmp\""}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_locations') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__locations_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "name": "stg_netsuite2__locations_tmp", "alias": "stg_netsuite2__locations_tmp", "checksum": {"name": "sha256", "checksum": "f9747c40667070b7685c826bbaa541ec10a5dbcb5682fad9e65aa2b28b8b7e42"}, "tags": [], "refs": [], "sources": [["netsuite2", "location"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.011626, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations_tmp\""}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_departments') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.department"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__departments_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "name": "stg_netsuite2__departments_tmp", "alias": "stg_netsuite2__departments_tmp", "checksum": {"name": "sha256", "checksum": "d5a6479a4a567ab3f6c9f85f6a42fb752ab7889065c4f63f1ded657023ff54c9"}, "tags": [], "refs": [], "sources": [["netsuite2", "department"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.014824, "compiled_sql": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments_tmp\""}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_classes') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.classification"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__classes_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "name": "stg_netsuite2__classes_tmp", "alias": "stg_netsuite2__classes_tmp", "checksum": {"name": "sha256", "checksum": "c5d7c66aef27878ade36b031c9e26b523c76373ac106b0f7b618a8e76f3518a2"}, "tags": [], "refs": [], "sources": [["netsuite2", "classification"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.0186949, "compiled_sql": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes_tmp\""}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_consolidated_exchange_rates') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__consolidated_exchange_rates_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "alias": "stg_netsuite2__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "8cfcb1761c48b4f9b640cc61023b4106f86122fd925bea98200d2453da892c36"}, "tags": [], "refs": [], "sources": [["netsuite2", "consolidated_exchange_rate"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.021962, "compiled_sql": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\""}, "model.netsuite_source.stg_netsuite__transactions": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__transactions_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__transactions_tmp')),\n staging_columns=get_transactions_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n status,\n trandate as transaction_date,\n currency_id,\n accounting_period_id,\n due_date as due_date_at,\n transaction_type,\n is_intercompany,\n is_advanced_intercompany,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transactions_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transactions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__transactions_tmp", "model.netsuite_source.stg_netsuite__transactions_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transactions"], "unique_id": "model.netsuite_source.stg_netsuite__transactions", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__transactions.sql", "original_file_path": "models/netsuite/stg_netsuite__transactions.sql", "name": "stg_netsuite__transactions", "alias": "stg_netsuite__transactions", "checksum": {"name": "sha256", "checksum": "229453298c19897d353712750c015e5fb7c80d41715a69a04bdb44c1d42dd50a"}, "tags": [], "refs": [["stg_netsuite__transactions_tmp"], ["stg_netsuite__transactions_tmp"]], "sources": [], "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_advanced_intercompany": {"name": "is_advanced_intercompany", "description": "Value indicating whether the transaction is an advanced intercompany journal entry (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.465868, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n is_advanced_intercompany\n \n as \n \n is_advanced_intercompany\n \n, \n \n \n is_intercompany\n \n as \n \n is_intercompany\n \n, \n \n \n status\n \n as \n \n status\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n trandate\n \n , \n \n \n transaction_id\n \n as \n \n transaction_id\n \n, \n \n \n transaction_type\n \n as \n \n transaction_type\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n status,\n trandate as transaction_date,\n currency_id,\n accounting_period_id,\n due_date as due_date_at,\n transaction_type,\n is_intercompany,\n is_advanced_intercompany,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\""}, "model.netsuite_source.stg_netsuite__customers": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__customers_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__customers_tmp')),\n staging_columns=get_customers_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n customer_id,\n companyname as company_name,\n customer_extid as customer_external_id,\n city,\n state,\n zipcode,\n country,\n date_first_order as date_first_order_at,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('customers_pass_through_columns') }}\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_customers_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__customers_tmp", "model.netsuite_source.stg_netsuite__customers_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__customers"], "unique_id": "model.netsuite_source.stg_netsuite__customers", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__customers.sql", "original_file_path": "models/netsuite/stg_netsuite__customers.sql", "name": "stg_netsuite__customers", "alias": "stg_netsuite__customers", "checksum": {"name": "sha256", "checksum": "c9e469c13b1608752f66936b6d5f93e6c21385726175cc422a3dcae92ac46025"}, "tags": [], "refs": [["stg_netsuite__customers_tmp"], ["stg_netsuite__customers_tmp"]], "sources": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__customers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.455337, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n city\n \n as \n \n city\n \n, \n cast(null as \n varchar\n) as \n \n companyname\n \n , \n \n \n country\n \n as \n \n country\n \n, \n cast(null as \n varchar\n) as \n \n customer_extid\n \n , \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date_first_order\n \n as \n \n date_first_order\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zipcode\n \n as \n \n zipcode\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n customer_id,\n companyname as company_name,\n customer_extid as customer_external_id,\n city,\n state,\n zipcode,\n country,\n date_first_order as date_first_order_at,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n \n\n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\""}, "model.netsuite_source.stg_netsuite__accounting_books": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounting_books_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounting_books_tmp')),\n staging_columns=get_accounting_books_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n accounting_book_id,\n is_primary,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounting_books_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books_tmp", "model.netsuite_source.stg_netsuite__accounting_books_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_books"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_books", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounting_books.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_books.sql", "name": "stg_netsuite__accounting_books", "alias": "stg_netsuite__accounting_books", "checksum": {"name": "sha256", "checksum": "1979e4645a6245ff201816e275fd790f10d92570aa910990ef7ac5a145a904f7"}, "tags": [], "refs": [["stg_netsuite__accounting_books_tmp"], ["stg_netsuite__accounting_books_tmp"]], "sources": [], "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_books.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.44572, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n varchar\n) as \n \n accounting_book_extid\n \n , \n \n \n accounting_book_id\n \n as \n \n accounting_book_id\n \n, \n cast(null as \n varchar\n) as \n \n accounting_book_name\n \n , \n cast(null as \n float\n) as \n \n base_book_id\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_created\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_last_modified\n \n , \n cast(null as \n float\n) as \n \n effective_period_id\n \n , \n cast(null as \n varchar\n) as \n \n form_template_component_id\n \n , \n cast(null as \n float\n) as \n \n form_template_id\n \n , \n cast(null as \n varchar\n) as \n \n is_adjustment_only\n \n , \n cast(null as \n varchar\n) as \n \n is_arrangement_level_reclass\n \n , \n cast(null as \n varchar\n) as \n \n is_consolidated\n \n , \n cast(null as \n varchar\n) as \n \n is_contingent_revenue_handling\n \n , \n cast(null as \n varchar\n) as \n \n is_include_child_subsidiaries\n \n , \n \n \n is_primary\n \n as \n \n is_primary\n \n, \n cast(null as \n varchar\n) as \n \n is_two_step_revenue_allocation\n \n , \n cast(null as \n varchar\n) as \n \n status\n \n , \n cast(null as \n varchar\n) as \n \n unbilled_receivable_grouping\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n accounting_book_id,\n is_primary,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\""}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__consolidated_exchange_rates_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__consolidated_exchange_rates_tmp')),\n staging_columns=get_consolidated_exchange_rates_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n consolidated_exchange_rate_id,\n accounting_book_id,\n accounting_period_id,\n average_rate,\n current_rate,\n historical_rate,\n from_subsidiary_id,\n to_subsidiary_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('consolidated_exchange_rates_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_consolidated_exchange_rates_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__consolidated_exchange_rates"], "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "name": "stg_netsuite__consolidated_exchange_rates", "alias": "stg_netsuite__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "6a4909b08f327411a1947017c8f33d333e541e91c578c6c180dd754ebef85b9c"}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates_tmp"], ["stg_netsuite__consolidated_exchange_rates_tmp"]], "sources": [], "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"consolidated_exchange_rate_id": {"name": "consolidated_exchange_rate_id", "description": "The unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "The accounting book the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.4526432, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n \n \n accounting_book_id\n \n as \n \n accounting_book_id\n \n, \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n cast(null as \n float\n) as \n \n average_budget_rate\n \n , \n \n \n average_rate\n \n as \n \n average_rate\n \n, \n \n \n consolidated_exchange_rate_id\n \n as \n \n consolidated_exchange_rate_id\n \n, \n cast(null as \n float\n) as \n \n current_budget_rate\n \n , \n \n \n current_rate\n \n as \n \n current_rate\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n \n \n from_subsidiary_id\n \n as \n \n from_subsidiary_id\n \n, \n cast(null as \n float\n) as \n \n historical_budget_rate\n \n , \n \n \n historical_rate\n \n as \n \n historical_rate\n \n, \n \n \n to_subsidiary_id\n \n as \n \n to_subsidiary_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n consolidated_exchange_rate_id,\n accounting_book_id,\n accounting_period_id,\n average_rate,\n current_rate,\n historical_rate,\n from_subsidiary_id,\n to_subsidiary_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\""}, "model.netsuite_source.stg_netsuite__transaction_lines": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__transaction_lines_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__transaction_lines_tmp')),\n staging_columns=get_transaction_lines_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n transaction_line_id,\n subsidiary_id,\n account_id,\n company_id,\n item_id,\n amount,\n non_posting_line,\n class_id,\n location_id,\n department_id,\n memo\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transaction_lines_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transaction_lines_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp", "model.netsuite_source.stg_netsuite__transaction_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transaction_lines"], "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__transaction_lines.sql", "original_file_path": "models/netsuite/stg_netsuite__transaction_lines.sql", "name": "stg_netsuite__transaction_lines", "alias": "stg_netsuite__transaction_lines", "checksum": {"name": "sha256", "checksum": "439d9f1cc5d341305a11759ce2f4be9e154524b992103409aef648f97c471b80"}, "tags": [], "refs": [["stg_netsuite__transaction_lines_tmp"], ["stg_netsuite__transaction_lines_tmp"]], "sources": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The subsidiary id of the subsidiary which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The item id of the item which is included in the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "non_posting_line": {"name": "non_posting_line", "description": "Value indicating whether the transaction line is a non posting line (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The class id of the class which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The location id of the location which the transaction line took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transaction_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.4639528, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n non_posting_line\n \n as \n \n non_posting_line\n \n, \n \n \n subsidiary_id\n \n as \n \n subsidiary_id\n \n, \n \n \n transaction_id\n \n as \n \n transaction_id\n \n, \n \n \n transaction_line_id\n \n as \n \n transaction_line_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n transaction_line_id,\n subsidiary_id,\n account_id,\n company_id,\n item_id,\n amount,\n non_posting_line,\n class_id,\n location_id,\n department_id,\n memo\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\""}, "model.netsuite_source.stg_netsuite__income_accounts": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__income_accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__income_accounts_tmp')),\n staging_columns=get_income_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n income_account_id,\n name, \n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_income_accounts_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts_tmp", "model.netsuite_source.stg_netsuite__income_accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__income_accounts"], "unique_id": "model.netsuite_source.stg_netsuite__income_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__income_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__income_accounts.sql", "name": "stg_netsuite__income_accounts", "alias": "stg_netsuite__income_accounts", "checksum": {"name": "sha256", "checksum": "299fb45e200223bd290f01314ad47a4619932d39f3b04fe929a82c5ee8a0fe2b"}, "tags": [], "refs": [["stg_netsuite__income_accounts_tmp"], ["stg_netsuite__income_accounts_tmp"]], "sources": [], "description": "Table detailing all income accounts.", "columns": {"income_account_id": {"name": "income_account_id", "description": "The unique identifier of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__income_accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.458442, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n \n \n account_number\n \n as \n \n account_number\n \n, \n cast(null as \n varchar\n) as \n \n comments\n \n , \n cast(null as \n float\n) as \n \n current_balance\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_last_modified\n \n , \n cast(null as \n varchar\n) as \n \n desription\n \n , \n cast(null as \n varchar\n) as \n \n full_name\n \n , \n cast(null as \n varchar\n) as \n \n income_account_extid\n \n , \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n cast(null as \n varchar\n) as \n \n is_including_child_subs\n \n , \n cast(null as \n varchar\n) as \n \n is_summary\n \n , \n cast(null as \n varchar\n) as \n \n isinactive\n \n , \n cast(null as \n varchar\n) as \n \n legal_name\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n income_account_id,\n name, \n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\""}, "model.netsuite_source.stg_netsuite__expense_accounts": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__expense_accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__expense_accounts_tmp')),\n staging_columns=get_expense_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n expense_account_id,\n name,\n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_expense_accounts_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp", "model.netsuite_source.stg_netsuite__expense_accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__expense_accounts"], "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__expense_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__expense_accounts.sql", "name": "stg_netsuite__expense_accounts", "alias": "stg_netsuite__expense_accounts", "checksum": {"name": "sha256", "checksum": "f7c1276dddff15a68a1de673f503dc127efb4a2932756ea28c09c231aaf52b2c"}, "tags": [], "refs": [["stg_netsuite__expense_accounts_tmp"], ["stg_netsuite__expense_accounts_tmp"]], "sources": [], "description": "Table detailing all expense accounts.", "columns": {"expense_account_id": {"name": "expense_account_id", "description": "The unique identifier of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__expense_accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.4574451, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n \n \n account_number\n \n as \n \n account_number\n \n, \n cast(null as \n varchar\n) as \n \n comments\n \n , \n cast(null as \n float\n) as \n \n current_balance\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_last_modified\n \n , \n cast(null as \n varchar\n) as \n \n desription\n \n , \n cast(null as \n varchar\n) as \n \n expense_account_extid\n \n , \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n cast(null as \n varchar\n) as \n \n full_name\n \n , \n cast(null as \n varchar\n) as \n \n is_including_child_subs\n \n , \n cast(null as \n varchar\n) as \n \n is_summary\n \n , \n cast(null as \n varchar\n) as \n \n isinactive\n \n , \n cast(null as \n varchar\n) as \n \n legal_name\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n expense_account_id,\n name,\n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\""}, "model.netsuite_source.stg_netsuite__vendors": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__vendors_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__vendors_tmp')),\n staging_columns=get_vendors_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n vendor_id,\n companyname as company_name,\n create_date as create_date_at,\n vendor_type_id,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendors_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__vendors_tmp", "model.netsuite_source.stg_netsuite__vendors_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendors"], "unique_id": "model.netsuite_source.stg_netsuite__vendors", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__vendors.sql", "original_file_path": "models/netsuite/stg_netsuite__vendors.sql", "name": "stg_netsuite__vendors", "alias": "stg_netsuite__vendors", "checksum": {"name": "sha256", "checksum": "d51ababd306a844771fb765167ef7520a6880c87bc27b41e3475c8e942c1a251"}, "tags": [], "refs": [["stg_netsuite__vendors_tmp"], ["stg_netsuite__vendors_tmp"]], "sources": [], "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The vendor's company name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendors.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.467561, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n varchar\n) as \n \n account_owner\n \n , \n cast(null as \n varchar\n) as \n \n accountnumber\n \n , \n cast(null as \n varchar\n) as \n \n accounts_email\n \n , \n cast(null as \n float\n) as \n \n annual_revenue\n \n , \n cast(null as \n varchar\n) as \n \n auto_renewals\n \n , \n cast(null as \n varchar\n) as \n \n auto_send_statements\n \n , \n cast(null as \n varchar\n) as \n \n billaddress\n \n , \n cast(null as \n float\n) as \n \n billing_class_id\n \n , \n cast(null as \n varchar\n) as \n \n city\n \n , \n cast(null as \n varchar\n) as \n \n comments\n \n , \n cast(null as \n varchar\n) as \n \n companyname\n \n , \n cast(null as \n varchar\n) as \n \n country\n \n , \n \n \n create_date\n \n as \n \n create_date\n \n, \n cast(null as \n float\n) as \n \n creditlimit\n \n , \n cast(null as \n float\n) as \n \n currency_id\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_last_modified\n \n , \n cast(null as \n varchar\n) as \n \n dic\n \n , \n cast(null as \n varchar\n) as \n \n email\n \n , \n cast(null as \n varchar\n) as \n \n email_bill_payment_vouchers\n \n , \n cast(null as \n varchar\n) as \n \n email_cash_sales\n \n , \n cast(null as \n varchar\n) as \n \n email_credit_notes\n \n , \n cast(null as \n varchar\n) as \n \n email_invoices\n \n , \n cast(null as \n varchar\n) as \n \n email_item_fulfilments\n \n , \n cast(null as \n varchar\n) as \n \n email_purchase_orders\n \n , \n cast(null as \n varchar\n) as \n \n email_quotes\n \n , \n cast(null as \n varchar\n) as \n \n email_sales_orders\n \n , \n cast(null as \n varchar\n) as \n \n email_statements\n \n , \n cast(null as \n varchar\n) as \n \n employee_number\n \n , \n cast(null as \n varchar\n) as \n \n exemption_certificate_no\n \n , \n cast(null as \n float\n) as \n \n expense_account_id\n \n , \n cast(null as \n varchar\n) as \n \n fax\n \n , \n cast(null as \n varchar\n) as \n \n full_name\n \n , \n cast(null as \n varchar\n) as \n \n home_phone\n \n , \n cast(null as \n varchar\n) as \n \n hris_id\n \n , \n cast(null as \n varchar\n) as \n \n ico\n \n , \n cast(null as \n varchar\n) as \n \n id_number_in_the_country_of_r\n \n , \n cast(null as \n float\n) as \n \n id_type_in_the_country_of_r_id\n \n , \n cast(null as \n float\n) as \n \n in_transit_balance\n \n , \n cast(null as \n varchar\n) as \n \n incoterm\n \n , \n cast(null as \n float\n) as \n \n industry_id\n \n , \n cast(null as \n varchar\n) as \n \n invoice_via_procurement_syste\n \n , \n cast(null as \n varchar\n) as \n \n invoicing_details\n \n , \n cast(null as \n varchar\n) as \n \n is1099eligible\n \n , \n cast(null as \n varchar\n) as \n \n is_partner\n \n , \n cast(null as \n varchar\n) as \n \n is_person\n \n , \n cast(null as \n varchar\n) as \n \n isemailhtml\n \n , \n cast(null as \n varchar\n) as \n \n isemailpdf\n \n , \n cast(null as \n varchar\n) as \n \n isinactive\n \n , \n cast(null as \n float\n) as \n \n labor_cost\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n last_modified_date\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n last_sales_activity\n \n , \n cast(null as \n varchar\n) as \n \n line1\n \n , \n cast(null as \n varchar\n) as \n \n line2\n \n , \n cast(null as \n varchar\n) as \n \n line3\n \n , \n cast(null as \n varchar\n) as \n \n loginaccess\n \n , \n cast(null as \n varchar\n) as \n \n lsa_link\n \n , \n cast(null as \n varchar\n) as \n \n lsa_link_name\n \n , \n cast(null as \n varchar\n) as \n \n mobile_phone\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n msa_effective_date\n \n , \n cast(null as \n varchar\n) as \n \n name\n \n , \n cast(null as \n float\n) as \n \n no__of_employees\n \n , \n cast(null as \n float\n) as \n \n openbalance\n \n , \n cast(null as \n float\n) as \n \n openbalance_foreign\n \n , \n cast(null as \n float\n) as \n \n payables_account_id\n \n , \n cast(null as \n float\n) as \n \n payment_terms_id\n \n , \n cast(null as \n varchar\n) as \n \n phone\n \n , \n cast(null as \n float\n) as \n \n prepayment_balance\n \n , \n cast(null as \n varchar\n) as \n \n printoncheckas\n \n , \n cast(null as \n float\n) as \n \n purchaseorderamount\n \n , \n cast(null as \n float\n) as \n \n purchaseorderquantity\n \n , \n cast(null as \n float\n) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as \n varchar\n) as \n \n purchases_email\n \n , \n cast(null as \n float\n) as \n \n receiptamount\n \n , \n cast(null as \n float\n) as \n \n receiptquantity\n \n , \n cast(null as \n float\n) as \n \n receiptquantitydiff\n \n , \n cast(null as \n float\n) as \n \n represents_subsidiary_id\n \n , \n cast(null as \n varchar\n) as \n \n restrict_access_to_expensify\n \n , \n cast(null as \n varchar\n) as \n \n salesforce_id\n \n , \n cast(null as \n varchar\n) as \n \n shipaddress\n \n , \n cast(null as \n varchar\n) as \n \n shipping_email\n \n , \n cast(null as \n varchar\n) as \n \n state\n \n , \n cast(null as \n float\n) as \n \n subsidiary\n \n , \n cast(null as \n varchar\n) as \n \n tax_contact_first_name\n \n , \n cast(null as \n float\n) as \n \n tax_contact_id\n \n , \n cast(null as \n varchar\n) as \n \n tax_contact_last_name\n \n , \n cast(null as \n varchar\n) as \n \n tax_contact_middle_name\n \n , \n cast(null as \n varchar\n) as \n \n tax_number\n \n , \n cast(null as \n varchar\n) as \n \n taxidnum\n \n , \n cast(null as \n float\n) as \n \n time_approver_id\n \n , \n cast(null as \n varchar\n) as \n \n transactions_need_approval\n \n , \n cast(null as \n varchar\n) as \n \n uen\n \n , \n cast(null as \n float\n) as \n \n unbilled_orders\n \n , \n cast(null as \n float\n) as \n \n unbilled_orders_foreign\n \n , \n cast(null as \n varchar\n) as \n \n url\n \n , \n cast(null as \n varchar\n) as \n \n vat_registration_no\n \n , \n cast(null as \n varchar\n) as \n \n vendor_extid\n \n , \n \n \n vendor_id\n \n as \n \n vendor_id\n \n, \n \n \n vendor_type_id\n \n as \n \n vendor_type_id\n \n, \n cast(null as \n varchar\n) as \n \n zipcode\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n vendor_id,\n companyname as company_name,\n create_date as create_date_at,\n vendor_type_id,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\""}, "model.netsuite_source.stg_netsuite__classes": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__classes_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__classes_tmp')),\n staging_columns=get_classes_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n class_id,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('classes_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_classes_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__classes_tmp", "model.netsuite_source.stg_netsuite__classes_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__classes"], "unique_id": "model.netsuite_source.stg_netsuite__classes", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__classes.sql", "original_file_path": "models/netsuite/stg_netsuite__classes.sql", "name": "stg_netsuite__classes", "alias": "stg_netsuite__classes", "checksum": {"name": "sha256", "checksum": "edf56a2971642640474b042c3ec91efc7aa294b9fb3861a1bd747b61af23205b"}, "tags": [], "refs": [["stg_netsuite__classes_tmp"], ["stg_netsuite__classes_tmp"]], "sources": [], "description": "Table detailing all classes set up in Netsuite.", "columns": {"class_id": {"name": "class_id", "description": "The unique identifier of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__classes.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.45036, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n class_id,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\""}, "model.netsuite_source.stg_netsuite__subsidiaries": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__subsidiaries_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__subsidiaries_tmp')),\n staging_columns=get_subsidiaries_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n subsidiary_id,\n fiscal_calendar_id,\n full_name,\n name,\n parent_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('subsidiaries_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_subsidiaries_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp", "model.netsuite_source.stg_netsuite__subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__subsidiaries.sql", "original_file_path": "models/netsuite/stg_netsuite__subsidiaries.sql", "name": "stg_netsuite__subsidiaries", "alias": "stg_netsuite__subsidiaries", "checksum": {"name": "sha256", "checksum": "f6477b555a1708adf2e9853d11edeba88e1fe42f4638d1f377e80f7a5523a622"}, "tags": [], "refs": [["stg_netsuite__subsidiaries_tmp"], ["stg_netsuite__subsidiaries_tmp"]], "sources": [], "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id associated with the fiscal calendar the subsidiary is on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.461925, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n varchar\n) as \n \n address\n \n , \n cast(null as \n varchar\n) as \n \n address1\n \n , \n cast(null as \n varchar\n) as \n \n address2\n \n , \n cast(null as \n float\n) as \n \n base_currency_id\n \n , \n cast(null as \n varchar\n) as \n \n branch_id\n \n , \n cast(null as \n varchar\n) as \n \n brn\n \n , \n cast(null as \n varchar\n) as \n \n city\n \n , \n cast(null as \n varchar\n) as \n \n country\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_last_modified\n \n , \n cast(null as \n varchar\n) as \n \n edition\n \n , \n cast(null as \n varchar\n) as \n \n federal_number\n \n , \n \n \n fiscal_calendar_id\n \n as \n \n fiscal_calendar_id\n \n, \n cast(null as \n varchar\n) as \n \n full_name\n \n , \n cast(null as \n varchar\n) as \n \n is_elimination\n \n , \n cast(null as \n varchar\n) as \n \n is_moss\n \n , \n cast(null as \n varchar\n) as \n \n isinactive\n \n , \n cast(null as \n varchar\n) as \n \n isinactive_bool\n \n , \n cast(null as \n varchar\n) as \n \n legal_name\n \n , \n cast(null as \n float\n) as \n \n moss_nexus_id\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n cast(null as \n float\n) as \n \n purchaseorderamount\n \n , \n cast(null as \n float\n) as \n \n purchaseorderquantity\n \n , \n cast(null as \n float\n) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as \n float\n) as \n \n receiptamount\n \n , \n cast(null as \n float\n) as \n \n receiptquantity\n \n , \n cast(null as \n float\n) as \n \n receiptquantitydiff\n \n , \n cast(null as \n varchar\n) as \n \n return_address\n \n , \n cast(null as \n varchar\n) as \n \n return_address1\n \n , \n cast(null as \n varchar\n) as \n \n return_address2\n \n , \n cast(null as \n varchar\n) as \n \n return_city\n \n , \n cast(null as \n varchar\n) as \n \n return_country\n \n , \n cast(null as \n varchar\n) as \n \n return_state\n \n , \n cast(null as \n varchar\n) as \n \n return_zipcode\n \n , \n cast(null as \n varchar\n) as \n \n shipping_address\n \n , \n cast(null as \n varchar\n) as \n \n shipping_address1\n \n , \n cast(null as \n varchar\n) as \n \n shipping_address2\n \n , \n cast(null as \n varchar\n) as \n \n shipping_city\n \n , \n cast(null as \n varchar\n) as \n \n shipping_country\n \n , \n cast(null as \n varchar\n) as \n \n shipping_state\n \n , \n cast(null as \n varchar\n) as \n \n shipping_zipcode\n \n , \n cast(null as \n varchar\n) as \n \n state\n \n , \n cast(null as \n varchar\n) as \n \n state_tax_number\n \n , \n cast(null as \n float\n) as \n \n subnav__searchable_subsidiary\n \n , \n cast(null as \n varchar\n) as \n \n subsidiary_extid\n \n , \n \n \n subsidiary_id\n \n as \n \n subsidiary_id\n \n, \n cast(null as \n float\n) as \n \n taxonomy_reference_id\n \n , \n cast(null as \n varchar\n) as \n \n tran_num_prefix\n \n , \n cast(null as \n varchar\n) as \n \n uen\n \n , \n cast(null as \n varchar\n) as \n \n url\n \n , \n cast(null as \n varchar\n) as \n \n zipcode\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n subsidiary_id,\n fiscal_calendar_id,\n full_name,\n name,\n parent_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\""}, "model.netsuite_source.stg_netsuite__accounts": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounts_tmp')),\n staging_columns=get_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n account_id,\n parent_id,\n name,\n type_name,\n accountnumber as account_number,\n general_rate_type,\n is_leftside,\n is_balancesheet,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }}\n \n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounts_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounts_tmp", "model.netsuite_source.stg_netsuite__accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounts"], "unique_id": "model.netsuite_source.stg_netsuite__accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__accounts.sql", "name": "stg_netsuite__accounts", "alias": "stg_netsuite__accounts", "checksum": {"name": "sha256", "checksum": "510d294af59df7ffa89fbfad25c7b865acc90b656833abb3aacf861889f170d1"}, "tags": [], "refs": [["stg_netsuite__accounts_tmp"], ["stg_netsuite__accounts_tmp"]], "sources": [], "description": "Table detailing all accounts set up in Netsuite.", "columns": {"account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the type of the account (ie. Bank, Equity, Income, Expense).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.449701, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as \n varchar\n) as \n \n accountnumber\n \n , \n \n \n general_rate_type\n \n as \n \n general_rate_type\n \n, \n \n \n is_balancesheet\n \n as \n \n is_balancesheet\n \n, \n \n \n is_leftside\n \n as \n \n is_leftside\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n type_name\n \n as \n \n type_name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n account_id,\n parent_id,\n name,\n type_name,\n accountnumber as account_number,\n general_rate_type,\n is_leftside,\n is_balancesheet,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\""}, "model.netsuite_source.stg_netsuite__items": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__items_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__items_tmp')),\n staging_columns=get_items_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n item_id,\n name,\n type_name,\n salesdescription as sales_description,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_items_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__items_tmp", "model.netsuite_source.stg_netsuite__items_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__items"], "unique_id": "model.netsuite_source.stg_netsuite__items", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__items.sql", "original_file_path": "models/netsuite/stg_netsuite__items.sql", "name": "stg_netsuite__items", "alias": "stg_netsuite__items", "checksum": {"name": "sha256", "checksum": "4c95764215887a08029fc3dc5c820c5bc88aae7bd735850cc0ef93c7b778b188"}, "tags": [], "refs": [["stg_netsuite__items_tmp"], ["stg_netsuite__items_tmp"]], "sources": [], "description": "Table detailing information about the items created in Netsuite.", "columns": {"item_id": {"name": "item_id", "description": "The unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "The items sales description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__items.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.459339, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n varchar\n) as \n \n allow_drop_ship\n \n , \n cast(null as \n float\n) as \n \n alt_demand_source_item_id\n \n , \n cast(null as \n float\n) as \n \n asset_account_id\n \n , \n cast(null as \n float\n) as \n \n atp_lead_time\n \n , \n cast(null as \n varchar\n) as \n \n atp_method\n \n , \n cast(null as \n varchar\n) as \n \n available_to_partners\n \n , \n cast(null as \n varchar\n) as \n \n avatax_taxcode\n \n , \n cast(null as \n float\n) as \n \n averagecost\n \n , \n cast(null as \n float\n) as \n \n backward_consumption_days\n \n , \n cast(null as \n varchar\n) as \n \n build_sub_assemblies\n \n , \n cast(null as \n float\n) as \n \n class_id\n \n , \n cast(null as \n float\n) as \n \n code_of_supply_id\n \n , \n cast(null as \n varchar\n) as \n \n commodity_code\n \n , \n cast(null as \n float\n) as \n \n consumption_unit_id\n \n , \n cast(null as \n float\n) as \n \n cost_0\n \n , \n cast(null as \n varchar\n) as \n \n cost_category\n \n , \n cast(null as \n varchar\n) as \n \n cost_estimate_type\n \n , \n cast(null as \n varchar\n) as \n \n costing_method\n \n , \n cast(null as \n varchar\n) as \n \n country_of_manufacture\n \n , \n cast(null as \n varchar\n) as \n \n create_plan_on_event_type\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n created\n \n , \n cast(null as \n float\n) as \n \n current_on_order_count\n \n , \n cast(null as \n float\n) as \n \n custreturn_variance_account_id\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_last_modified\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_of_last_transaction\n \n , \n cast(null as \n float\n) as \n \n default_return_cost\n \n , \n cast(null as \n float\n) as \n \n deferred_expense_account_id\n \n , \n cast(null as \n float\n) as \n \n deferred_revenue_account_id\n \n , \n cast(null as \n varchar\n) as \n \n demand_source\n \n , \n cast(null as \n float\n) as \n \n demand_time_fence\n \n , \n cast(null as \n float\n) as \n \n department_id\n \n , \n cast(null as \n varchar\n) as \n \n deposit\n \n , \n cast(null as \n varchar\n) as \n \n displayname\n \n , \n cast(null as \n varchar\n) as \n \n distribution_category\n \n , \n cast(null as \n varchar\n) as \n \n distribution_network\n \n , \n cast(null as \n float\n) as \n \n dropship_expense_account_id\n \n , \n cast(null as \n varchar\n) as \n \n effective_bom_control_type\n \n , \n cast(null as \n float\n) as \n \n expense_account_id\n \n , \n cast(null as \n varchar\n) as \n \n featureddescription\n \n , \n cast(null as \n varchar\n) as \n \n featureditem\n \n , \n cast(null as \n float\n) as \n \n fixed_lot_size\n \n , \n cast(null as \n float\n) as \n \n forward_consumption_days\n \n , \n cast(null as \n varchar\n) as \n \n fraud_risk\n \n , \n cast(null as \n varchar\n) as \n \n full_name\n \n , \n cast(null as \n float\n) as \n \n fx_adjustment_account_id\n \n , \n cast(null as \n float\n) as \n \n gain_loss_account_id\n \n , \n cast(null as \n float\n) as \n \n handling_cost\n \n , \n cast(null as \n varchar\n) as \n \n hazmat\n \n , \n cast(null as \n varchar\n) as \n \n hazmat_hazard_class\n \n , \n cast(null as \n varchar\n) as \n \n hazmat_id\n \n , \n cast(null as \n varchar\n) as \n \n hazmat_item_units\n \n , \n cast(null as \n float\n) as \n \n hazmat_item_units_qty\n \n , \n cast(null as \n varchar\n) as \n \n hazmat_packing_group\n \n , \n cast(null as \n varchar\n) as \n \n hazmat_shipping_name\n \n , \n cast(null as \n varchar\n) as \n \n include_child_subsidiaries\n \n , \n cast(null as \n float\n) as \n \n income_account_id\n \n , \n cast(null as \n float\n) as \n \n interco_expense_account_id\n \n , \n cast(null as \n float\n) as \n \n interco_income_account_id\n \n , \n cast(null as \n float\n) as \n \n invt_count_classification\n \n , \n cast(null as \n float\n) as \n \n invt_count_interval\n \n , \n cast(null as \n varchar\n) as \n \n is_cont_rev_handling\n \n , \n cast(null as \n varchar\n) as \n \n is_enforce_min_qty_internally\n \n , \n cast(null as \n varchar\n) as \n \n is_hold_rev_rec\n \n , \n cast(null as \n varchar\n) as \n \n is_moss\n \n , \n cast(null as \n varchar\n) as \n \n is_phantom\n \n , \n cast(null as \n varchar\n) as \n \n is_special_order_item\n \n , \n cast(null as \n varchar\n) as \n \n isinactive\n \n , \n cast(null as \n varchar\n) as \n \n isonline\n \n , \n cast(null as \n varchar\n) as \n \n istaxable\n \n , \n cast(null as \n float\n) as \n \n item_defined_cost\n \n , \n cast(null as \n varchar\n) as \n \n item_extid\n \n , \n \n \n item_id\n \n as \n \n item_id\n \n, \n cast(null as \n float\n) as \n \n item_image\n \n , \n cast(null as \n varchar\n) as \n \n item_revenue_category\n \n , \n cast(null as \n float\n) as \n \n item_term_id\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n last_cogs_correction\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n last_invt_count_date\n \n , \n cast(null as \n float\n) as \n \n last_purchase_price\n \n , \n cast(null as \n float\n) as \n \n location_id\n \n , \n cast(null as \n varchar\n) as \n \n lot_numbered_item\n \n , \n cast(null as \n varchar\n) as \n \n lot_sizing_method\n \n , \n cast(null as \n varchar\n) as \n \n manufacturer\n \n , \n cast(null as \n varchar\n) as \n \n manufacturing_charge_item\n \n , \n cast(null as \n varchar\n) as \n \n match_bill_to_receipt\n \n , \n cast(null as \n varchar\n) as \n \n matrix_type\n \n , \n cast(null as \n float\n) as \n \n maximum_quantity\n \n , \n cast(null as \n float\n) as \n \n minimum_quantity\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n modified\n \n , \n cast(null as \n varchar\n) as \n \n mpn\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as \n float\n) as \n \n nature_of_transaction_codes_id\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n next_invt_count_date\n \n , \n cast(null as \n float\n) as \n \n ng_asset_type_id\n \n , \n cast(null as \n float\n) as \n \n ns_lead_time\n \n , \n cast(null as \n varchar\n) as \n \n offersupport\n \n , \n cast(null as \n varchar\n) as \n \n onspecial\n \n , \n cast(null as \n varchar\n) as \n \n overhead_type\n \n , \n cast(null as \n float\n) as \n \n parent_id\n \n , \n cast(null as \n float\n) as \n \n payment_method_id\n \n , \n cast(null as \n float\n) as \n \n periodic_lot_size_days\n \n , \n cast(null as \n varchar\n) as \n \n periodic_lot_size_type\n \n , \n cast(null as \n float\n) as \n \n pref_purchase_tax_id\n \n , \n cast(null as \n float\n) as \n \n pref_sale_tax_id\n \n , \n cast(null as \n float\n) as \n \n pref_stock_level\n \n , \n cast(null as \n varchar\n) as \n \n prices_include_tax\n \n , \n cast(null as \n float\n) as \n \n pricing_group_id\n \n , \n cast(null as \n varchar\n) as \n \n print_sub_items\n \n , \n cast(null as \n float\n) as \n \n prod_price_var_account_id\n \n , \n cast(null as \n float\n) as \n \n prod_qty_var_account_id\n \n , \n cast(null as \n varchar\n) as \n \n prompt_payment_discount_item\n \n , \n cast(null as \n float\n) as \n \n purchase_price_var_account_id\n \n , \n cast(null as \n float\n) as \n \n purchase_unit_id\n \n , \n cast(null as \n varchar\n) as \n \n purchasedescription\n \n , \n cast(null as \n float\n) as \n \n purchaseorderamount\n \n , \n cast(null as \n float\n) as \n \n purchaseorderquantity\n \n , \n cast(null as \n float\n) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as \n float\n) as \n \n quantityavailable\n \n , \n cast(null as \n float\n) as \n \n quantitybackordered\n \n , \n cast(null as \n float\n) as \n \n quantityonhand\n \n , \n cast(null as \n float\n) as \n \n receiptamount\n \n , \n cast(null as \n float\n) as \n \n receiptquantity\n \n , \n cast(null as \n float\n) as \n \n receiptquantitydiff\n \n , \n cast(null as \n float\n) as \n \n reorder_multiple\n \n , \n cast(null as \n float\n) as \n \n reorderpoint\n \n , \n cast(null as \n varchar\n) as \n \n replenishment_method\n \n , \n cast(null as \n varchar\n) as \n \n resalable\n \n , \n cast(null as \n float\n) as \n \n reschedule_in_days\n \n , \n cast(null as \n float\n) as \n \n reschedule_out_days\n \n , \n cast(null as \n float\n) as \n \n rev_rec_forecast_rule_id\n \n , \n cast(null as \n float\n) as \n \n rev_rec_rule_id\n \n , \n cast(null as \n varchar\n) as \n \n revenue_allocation_group\n \n , \n cast(null as \n varchar\n) as \n \n round_up_as_component\n \n , \n cast(null as \n float\n) as \n \n safety_stock_days\n \n , \n cast(null as \n float\n) as \n \n safety_stock_level\n \n , \n cast(null as \n float\n) as \n \n sale_unit_id\n \n , \n cast(null as \n varchar\n) as \n \n salesdescription\n \n , \n cast(null as \n varchar\n) as \n \n salesforce_id\n \n , \n cast(null as \n varchar\n) as \n \n salesprice\n \n , \n cast(null as \n float\n) as \n \n scrap_account_id\n \n , \n cast(null as \n varchar\n) as \n \n serialized_item\n \n , \n cast(null as \n float\n) as \n \n shippingcost\n \n , \n cast(null as \n varchar\n) as \n \n special_work_order_item\n \n , \n cast(null as \n varchar\n) as \n \n specialsdescription\n \n , \n cast(null as \n float\n) as \n \n stock_unit_id\n \n , \n cast(null as \n varchar\n) as \n \n storedescription\n \n , \n cast(null as \n varchar\n) as \n \n storedetaileddescription\n \n , \n cast(null as \n varchar\n) as \n \n storedisplayname\n \n , \n cast(null as \n varchar\n) as \n \n subtype\n \n , \n cast(null as \n varchar\n) as \n \n supplementary_unit__abberviat\n \n , \n cast(null as \n float\n) as \n \n supplementary_unit_id\n \n , \n cast(null as \n float\n) as \n \n supply_time_fence\n \n , \n cast(null as \n varchar\n) as \n \n supply_type\n \n , \n cast(null as \n float\n) as \n \n tax_item_id\n \n , \n cast(null as \n float\n) as \n \n totalvalue\n \n , \n cast(null as \n float\n) as \n \n transferprice\n \n , \n \n \n type_name\n \n as \n \n type_name\n \n, \n cast(null as \n float\n) as \n \n type_of_goods_id\n \n , \n cast(null as \n varchar\n) as \n \n udf1\n \n , \n cast(null as \n varchar\n) as \n \n udf2\n \n , \n cast(null as \n varchar\n) as \n \n un_number\n \n , \n cast(null as \n float\n) as \n \n unbuild_variance_account_id\n \n , \n cast(null as \n float\n) as \n \n units_type_id\n \n , \n cast(null as \n varchar\n) as \n \n upc_code\n \n , \n cast(null as \n varchar\n) as \n \n use_component_yield\n \n , \n cast(null as \n float\n) as \n \n vendor_id\n \n , \n cast(null as \n varchar\n) as \n \n vendorname\n \n , \n cast(null as \n float\n) as \n \n vendreturn_variance_account_id\n \n , \n cast(null as \n varchar\n) as \n \n vsoe_deferral\n \n , \n cast(null as \n varchar\n) as \n \n vsoe_delivered\n \n , \n cast(null as \n varchar\n) as \n \n vsoe_discount\n \n , \n cast(null as \n float\n) as \n \n vsoe_price\n \n , \n cast(null as \n float\n) as \n \n weight\n \n , \n cast(null as \n float\n) as \n \n weight_in_user_defined_unit\n \n , \n cast(null as \n float\n) as \n \n weight_unit_index\n \n , \n cast(null as \n float\n) as \n \n wip_account_id\n \n , \n cast(null as \n float\n) as \n \n wip_cost_variance_account_id\n \n , \n cast(null as \n float\n) as \n \n work_order_lead_time\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n item_id,\n name,\n type_name,\n salesdescription as sales_description,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\""}, "model.netsuite_source.stg_netsuite__locations": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__locations_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__locations_tmp')),\n staging_columns=get_locations_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n location_id,\n name,\n full_name,\n city,\n country,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('locations_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_locations_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__locations_tmp", "model.netsuite_source.stg_netsuite__locations_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__locations"], "unique_id": "model.netsuite_source.stg_netsuite__locations", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__locations.sql", "original_file_path": "models/netsuite/stg_netsuite__locations.sql", "name": "stg_netsuite__locations", "alias": "stg_netsuite__locations", "checksum": {"name": "sha256", "checksum": "0e5129658fedf16df7b26cf25ad2351302ce70723e60b4b4b9d12a1e252c9254"}, "tags": [], "refs": [["stg_netsuite__locations_tmp"], ["stg_netsuite__locations_tmp"]], "sources": [], "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"location_id": {"name": "location_id", "description": "The unique identifier of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__locations.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.460344, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n location_id,\n name,\n full_name,\n city,\n country,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\""}, "model.netsuite_source.stg_netsuite__departments": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__departments_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__departments_tmp')),\n staging_columns=get_departments_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n department_id,\n name,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('departments_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_departments_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__departments_tmp", "model.netsuite_source.stg_netsuite__departments_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__departments"], "unique_id": "model.netsuite_source.stg_netsuite__departments", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__departments.sql", "original_file_path": "models/netsuite/stg_netsuite__departments.sql", "name": "stg_netsuite__departments", "alias": "stg_netsuite__departments", "checksum": {"name": "sha256", "checksum": "48851e18603bddeadb3b3992c83d3c779dada4b760fba2a2da68fe2bc9b431db"}, "tags": [], "refs": [["stg_netsuite__departments_tmp"], ["stg_netsuite__departments_tmp"]], "sources": [], "description": "Table detailing all departments set up in Netsuite.", "columns": {"department_id": {"name": "department_id", "description": "The unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__departments.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.456474, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n department_id,\n name,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\""}, "model.netsuite_source.stg_netsuite__currencies": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__currencies_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__currencies_tmp')),\n staging_columns=get_currencies_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n currency_id,\n name,\n symbol,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__currencies_tmp", "model.netsuite_source.stg_netsuite__currencies_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__currencies"], "unique_id": "model.netsuite_source.stg_netsuite__currencies", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__currencies.sql", "original_file_path": "models/netsuite/stg_netsuite__currencies.sql", "name": "stg_netsuite__currencies", "alias": "stg_netsuite__currencies", "checksum": {"name": "sha256", "checksum": "64b53f34b5bf46bcf43e5753e5eb67143e96eaffad215604e424f4769791e793"}, "tags": [], "refs": [["stg_netsuite__currencies_tmp"], ["stg_netsuite__currencies_tmp"]], "sources": [], "description": "Table detailing all currency information.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__currencies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.453428, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n varchar\n) as \n \n currency_extid\n \n , \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_last_modified\n \n , \n cast(null as \n varchar\n) as \n \n is_inactive\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as \n float\n) as \n \n precision_0\n \n , \n \n \n symbol\n \n as \n \n symbol\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n currency_id,\n name,\n symbol,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\""}, "model.netsuite_source.stg_netsuite__vendor_types": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__vendor_types_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__vendor_types_tmp')),\n staging_columns=get_vendor_types_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n vendor_type_id,\n name,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendor_types_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types_tmp", "model.netsuite_source.stg_netsuite__vendor_types_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendor_types"], "unique_id": "model.netsuite_source.stg_netsuite__vendor_types", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__vendor_types.sql", "original_file_path": "models/netsuite/stg_netsuite__vendor_types.sql", "name": "stg_netsuite__vendor_types", "alias": "stg_netsuite__vendor_types", "checksum": {"name": "sha256", "checksum": "6d96a09d56ad4edb4011a0ce09eee13c465195ce03bec4902450ab57e9d2f74d"}, "tags": [], "refs": [["stg_netsuite__vendor_types_tmp"], ["stg_netsuite__vendor_types_tmp"]], "sources": [], "description": "A table detailing all the various types of vendors.", "columns": {"vendor_type_id": {"name": "vendor_type_id", "description": "The unique identifier of the vendor type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendor_types.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.46665, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n varchar\n) as \n \n isinactive\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as \n float\n) as \n \n parent_id\n \n , \n cast(null as \n varchar\n) as \n \n vendor_type_extid\n \n , \n \n \n vendor_type_id\n \n as \n \n vendor_type_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n vendor_type_id,\n name,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\""}, "model.netsuite_source.stg_netsuite__accounting_periods": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounting_periods_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounting_periods_tmp')),\n staging_columns=get_accounting_periods_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n accounting_period_id,\n name,\n full_name,\n fiscal_calendar_id,\n year_id,\n starting as starting_at,\n ending as ending_at,\n quarter,\n year_0,\n is_adjustment,\n closed as is_closed,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounting_periods_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp", "model.netsuite_source.stg_netsuite__accounting_periods_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_periods"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounting_periods.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_periods.sql", "name": "stg_netsuite__accounting_periods", "alias": "stg_netsuite__accounting_periods", "checksum": {"name": "sha256", "checksum": "bd47f06946086147dacee032fd6ad9a36577fae371fa05c51336b3bac1c5f9cc"}, "tags": [], "refs": [["stg_netsuite__accounting_periods_tmp"], ["stg_netsuite__accounting_periods_tmp"]], "sources": [], "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_0": {"name": "year_0", "description": "Value indicating whether the accounting period is in it's initial year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Value indicating whether the accounting period is an adjustment (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_periods.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.448139, "compiled_sql": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as \n varchar\n) as \n \n _fivetran_id\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n _fivetran_synced\n \n , \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n cast(null as \n varchar\n) as \n \n closed_accounts_payable\n \n , \n cast(null as \n varchar\n) as \n \n closed_accounts_receivable\n \n , \n cast(null as \n varchar\n) as \n \n closed_all\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n closed_on\n \n , \n cast(null as \n varchar\n) as \n \n closed_payroll\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_deleted\n \n , \n cast(null as \n timestamp without time zone\n) as \n \n date_last_modified\n \n , \n \n \n ending\n \n as \n \n ending\n \n, \n \n \n fiscal_calendar_id\n \n as \n \n fiscal_calendar_id\n \n, \n cast(null as \n varchar\n) as \n \n fivetran_index\n \n , \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n is_adjustment\n \n as \n \n is_adjustment\n \n, \n cast(null as \n varchar\n) as \n \n isinactive\n \n , \n cast(null as \n varchar\n) as \n \n locked_accounts_payable\n \n , \n cast(null as \n varchar\n) as \n \n locked_accounts_receivable\n \n , \n cast(null as \n varchar\n) as \n \n locked_all\n \n , \n cast(null as \n varchar\n) as \n \n locked_payroll\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as \n float\n) as \n \n parent_id\n \n , \n \n \n quarter\n \n as \n \n quarter\n \n, \n \n \n starting\n \n as \n \n starting\n \n, \n \n \n year_0\n \n as \n \n year_0\n \n, \n \n \n year_id\n \n as \n \n year_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n accounting_period_id,\n name,\n full_name,\n fiscal_calendar_id,\n year_id,\n starting as starting_at,\n ending as ending_at,\n quarter,\n year_0,\n is_adjustment,\n closed as is_closed,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\""}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounting_periods') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_periods_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "name": "stg_netsuite__accounting_periods_tmp", "alias": "stg_netsuite__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "af85ada4c304fe9e0c3fdaf8dca681113d692711ab665fa20a48bf20a3f53513"}, "tags": [], "refs": [], "sources": [["netsuite", "accounting_periods"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.297627, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods_tmp\""}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounting_books') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_books_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "name": "stg_netsuite__accounting_books_tmp", "alias": "stg_netsuite__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "2a71eefcec7c5db5922ea1217879f5e7856b348418cd1698c81dd7ca78e95fbe"}, "tags": [], "refs": [], "sources": [["netsuite", "accounting_books"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.301464, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books_tmp\""}, "model.netsuite_source.stg_netsuite__customers_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_customers') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.customers"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__customers_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__customers_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "name": "stg_netsuite__customers_tmp", "alias": "stg_netsuite__customers_tmp", "checksum": {"name": "sha256", "checksum": "dd42aefc427f9f532fc0d79d50a1db8f9e6ea5f7038c43e2d8ea08ca6986fd2b"}, "tags": [], "refs": [], "sources": [["netsuite", "customers"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.3065732, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers_tmp\""}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transaction_lines') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transaction_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "name": "stg_netsuite__transaction_lines_tmp", "alias": "stg_netsuite__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "1e8e8e85dcbf177ac5a8539ed3ca4ab87c6b66bd8e98f8fac81bf8c92ecc4178"}, "tags": [], "refs": [], "sources": [["netsuite", "transaction_lines"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.311509, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines_tmp\""}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_income_accounts') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__income_accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "name": "stg_netsuite__income_accounts_tmp", "alias": "stg_netsuite__income_accounts_tmp", "checksum": {"name": "sha256", "checksum": "db2a368685ddd59347ffb164ea9204f378d33a39a4eebbffe35a22d59d387925"}, "tags": [], "refs": [], "sources": [["netsuite", "income_accounts"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.315671, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts_tmp\""}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounts') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "name": "stg_netsuite__accounts_tmp", "alias": "stg_netsuite__accounts_tmp", "checksum": {"name": "sha256", "checksum": "bb440ea013b9eb4fd2654be4f267bf3c08b4a4fbdb88e666c2721e79157bf54c"}, "tags": [], "refs": [], "sources": [["netsuite", "accounts"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.320998, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts_tmp\""}, "model.netsuite_source.stg_netsuite__departments_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_departments') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.departments"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__departments_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__departments_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "name": "stg_netsuite__departments_tmp", "alias": "stg_netsuite__departments_tmp", "checksum": {"name": "sha256", "checksum": "4d20b8f9c501e6642f4ed19fe0d6003244f3132bb8f127e6cd04749a2161a1d5"}, "tags": [], "refs": [], "sources": [["netsuite", "departments"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.327839, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments_tmp\""}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_currencies') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.currencies"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__currencies_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__currencies_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "name": "stg_netsuite__currencies_tmp", "alias": "stg_netsuite__currencies_tmp", "checksum": {"name": "sha256", "checksum": "299203cc57a2fe306df440758d025485e593599f6390c02ce418cc17f6cbf085"}, "tags": [], "refs": [], "sources": [["netsuite", "currencies"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.331979, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies_tmp\""}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendor_types') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendor_types_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "name": "stg_netsuite__vendor_types_tmp", "alias": "stg_netsuite__vendor_types_tmp", "checksum": {"name": "sha256", "checksum": "9418a3d15515e6876d45e9647eef973ee64e92a8ebd36de9ef48b4213362fbb8"}, "tags": [], "refs": [], "sources": [["netsuite", "vendor_types"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.342401, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types_tmp\""}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendors') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendors"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendors_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendors_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "name": "stg_netsuite__vendors_tmp", "alias": "stg_netsuite__vendors_tmp", "checksum": {"name": "sha256", "checksum": "8e59bcb209c1fbcc2e4d3d45fbfa58520b4664fc1ca095cdc257b866d56bf48f"}, "tags": [], "refs": [], "sources": [["netsuite", "vendors"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.358216, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors_tmp\""}, "model.netsuite_source.stg_netsuite__locations_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_locations') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.locations"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__locations_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__locations_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "name": "stg_netsuite__locations_tmp", "alias": "stg_netsuite__locations_tmp", "checksum": {"name": "sha256", "checksum": "ef49c17ad5f2ebc7ef36e8327bf47863dd5e5cae56eb79239babc1db36a64083"}, "tags": [], "refs": [], "sources": [["netsuite", "locations"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.364984, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations_tmp\""}, "model.netsuite_source.stg_netsuite__items_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_items') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.items"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__items_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__items_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__items_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__items_tmp.sql", "name": "stg_netsuite__items_tmp", "alias": "stg_netsuite__items_tmp", "checksum": {"name": "sha256", "checksum": "439132075eae5e14389f7542772d7ca936ea1489e7cdac59de46e8cb7173eb0a"}, "tags": [], "refs": [], "sources": [["netsuite", "items"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__items_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.373426, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items_tmp\""}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_subsidiaries') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "name": "stg_netsuite__subsidiaries_tmp", "alias": "stg_netsuite__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "a6ac0f509e1ac21ecc3f89a4d5c0eed5c703a57e8fc4af43e01bdcf75ea2e679"}, "tags": [], "refs": [], "sources": [["netsuite", "subsidiaries"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.378748, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transactions') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transactions"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transactions_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__transactions_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "name": "stg_netsuite__transactions_tmp", "alias": "stg_netsuite__transactions_tmp", "checksum": {"name": "sha256", "checksum": "3784b104dd5b534cf77958a0db3b7a596311f53fe6cbc065385ded88577cfdd0"}, "tags": [], "refs": [], "sources": [["netsuite", "transactions"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.3833568, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions_tmp\""}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_consolidated_exchange_rates') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__consolidated_exchange_rates_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "alias": "stg_netsuite__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "adef1eae799060e22040088aae3f36771a563821178b7986be7863221df9283e"}, "tags": [], "refs": [], "sources": [["netsuite", "consolidated_exchange_rates"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.388226, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates_tmp\""}, "model.netsuite_source.stg_netsuite__classes_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_classes') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.classes"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__classes_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__classes_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "name": "stg_netsuite__classes_tmp", "alias": "stg_netsuite__classes_tmp", "checksum": {"name": "sha256", "checksum": "d0e5d095963df0342aa32dab6b3385cee09e2ee9a404972e692675a5e82c9fb0"}, "tags": [], "refs": [], "sources": [["netsuite", "classes"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.395679, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes_tmp\""}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"raw_sql": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_expense_accounts') }}", "compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "on_schema_change": "ignore", "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__expense_accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "name": "stg_netsuite__expense_accounts_tmp", "alias": "stg_netsuite__expense_accounts_tmp", "checksum": {"name": "sha256", "checksum": "a47ced403e84ab6ca539aa177139c53e021b0c56d15dd9dfc83dcb0ebe7cd797"}, "tags": [], "refs": [], "sources": [["netsuite", "expense_accounts"]], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1658876150.399979, "compiled_sql": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts_tmp\""}, "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__accounting_books_accounting_book_id", "alias": "unique_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_books"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.4715981, "compiled_sql": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is not null\ngroup by accounting_book_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_books_accounting_book_id", "alias": "not_null_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_books"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.4727669, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "alias": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.473728, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "fiscal_calendar_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "alias": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.475191, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere fiscal_calendar_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "fiscal_calendar_id", "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["accounting_period_id", "fiscal_calendar_id"], "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "original_file_path": "models/stg_netsuite.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id", "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d"}, "created_at": 1658876150.476456, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n accounting_period_id, fiscal_calendar_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\n group by accounting_period_id, fiscal_calendar_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__accounts_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__accounts_account_id", "alias": "unique_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounts"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.484201, "compiled_sql": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts"}, "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounts_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounts_account_id", "alias": "not_null_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounts"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.485717, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts"}, "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__classes_class_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__classes_class_id", "alias": "unique_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__classes"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.486945, "compiled_sql": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is not null\ngroup by class_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes"}, "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__classes_class_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__classes_class_id", "alias": "not_null_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__classes"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.4879029, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes"}, "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee\") }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee"}, "created_at": 1658876150.4888341, "compiled_sql": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is not null\ngroup by consolidated_exchange_rate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates"}, "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86"}, "created_at": 1658876150.4899478, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates"}, "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__currencies_currency_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__currencies_currency_id", "alias": "unique_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__currencies"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.4909282, "compiled_sql": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is not null\ngroup by currency_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies"}, "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__currencies_currency_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__currencies_currency_id", "alias": "not_null_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__currencies"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.4918458, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies"}, "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__customers_customer_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__customers_customer_id", "alias": "unique_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__customers"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.492912, "compiled_sql": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers"}, "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__customers_customer_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__customers_customer_id", "alias": "not_null_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__customers"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.493825, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers"}, "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__departments_department_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__departments_department_id", "alias": "unique_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__departments"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.495059, "compiled_sql": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is not null\ngroup by department_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments"}, "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__departments_department_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__departments_department_id", "alias": "not_null_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__departments"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.496227, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments"}, "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "expense_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__expense_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__expense_accounts_expense_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__expense_accounts_expense_account_id", "alias": "unique_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__expense_accounts"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__expense_accounts_expense_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.497735, "compiled_sql": "\n \n \n\nselect\n expense_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is not null\ngroup by expense_account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts"}, "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "expense_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__expense_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__expense_accounts_expense_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__expense_accounts_expense_account_id", "alias": "not_null_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__expense_accounts"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.498784, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts"}, "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "income_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__income_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__income_accounts_income_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__income_accounts_income_account_id", "alias": "unique_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__income_accounts"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__income_accounts_income_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.499806, "compiled_sql": "\n \n \n\nselect\n income_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is not null\ngroup by income_account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts"}, "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "income_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__income_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__income_accounts_income_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__income_accounts_income_account_id", "alias": "not_null_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__income_accounts"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__income_accounts_income_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.501075, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts"}, "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__items_item_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__items_item_id", "alias": "unique_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__items"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.50213, "compiled_sql": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items"}, "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__items_item_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__items_item_id", "alias": "not_null_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__items"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5031219, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items"}, "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__locations_location_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__locations_location_id", "alias": "unique_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__locations"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.504142, "compiled_sql": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is not null\ngroup by location_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations"}, "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__locations_location_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__locations_location_id", "alias": "not_null_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__locations"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5054588, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations"}, "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__subsidiaries_subsidiary_id", "alias": "unique_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__subsidiaries"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.506571, "compiled_sql": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is not null\ngroup by subsidiary_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "alias": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__subsidiaries"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.50756, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transaction_lines_transaction_id", "alias": "not_null_stg_netsuite__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.508706, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "alias": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.509713, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "original_file_path": "models/stg_netsuite.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad"}, "created_at": 1658876150.5107489, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__transactions_transaction_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__transactions_transaction_id", "alias": "unique_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transactions"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.513977, "compiled_sql": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is not null\ngroup by transaction_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions"}, "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transactions_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transactions_transaction_id", "alias": "not_null_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transactions"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.51537, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions"}, "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendor_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__vendor_types_vendor_type_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__vendor_types_vendor_type_id", "alias": "unique_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendor_types"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendor_types_vendor_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.516703, "compiled_sql": "\n \n \n\nselect\n vendor_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is not null\ngroup by vendor_type_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types"}, "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendor_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendor_types_vendor_type_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__vendor_types_vendor_type_id", "alias": "not_null_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendor_types"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.517673, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types"}, "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__vendors_vendor_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__vendors_vendor_id", "alias": "unique_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendors"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.518621, "compiled_sql": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors"}, "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendors_vendor_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__vendors_vendor_id", "alias": "not_null_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendors"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5196958, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors"}, "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "account_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__account_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__account_types_account_type_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__account_types_account_type_id", "alias": "unique_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__account_types"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__account_types_account_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5600681, "compiled_sql": "\n \n \n\nselect\n account_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is not null\ngroup by account_type_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types"}, "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__account_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__account_types_account_type_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__account_types_account_type_id", "alias": "not_null_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__account_types"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__account_types_account_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5611851, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types"}, "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_book_subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "alias": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.562232, "compiled_sql": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_book_subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127"}, "created_at": 1658876150.5631738, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries"}, "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_books_accounting_book_id", "alias": "unique_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_books"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5641851, "compiled_sql": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is not null\ngroup by accounting_book_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "alias": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_books"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.565757, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books"}, "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_period_fiscal_cal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "alias": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.567085, "compiled_sql": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_period_fiscal_cal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415"}, "created_at": 1658876150.568222, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal"}, "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "alias": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_periods"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.569333, "compiled_sql": "\n \n \n\nselect\n accounting_period_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is not null\ngroup by accounting_period_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "alias": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_periods"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.57075, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods"}, "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounts_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounts_account_id", "alias": "unique_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounts"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.571766, "compiled_sql": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts"}, "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounts_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounts_account_id", "alias": "not_null_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounts"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.57275, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts"}, "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__classes_class_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__classes_class_id", "alias": "unique_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__classes"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.573878, "compiled_sql": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is not null\ngroup by class_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes"}, "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__classes_class_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__classes_class_id", "alias": "not_null_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__classes"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.575018, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes"}, "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1\") }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1"}, "created_at": 1658876150.576155, "compiled_sql": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is not null\ngroup by consolidated_exchange_rate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates"}, "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511"}, "created_at": 1658876150.577548, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates"}, "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__currencies_currency_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__currencies_currency_id", "alias": "unique_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__currencies"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.578756, "compiled_sql": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is not null\ngroup by currency_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies"}, "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__currencies_currency_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__currencies_currency_id", "alias": "not_null_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__currencies"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5796962, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies"}, "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__customers_customer_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__customers_customer_id", "alias": "unique_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__customers"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5806231, "compiled_sql": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers"}, "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__customers_customer_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__customers_customer_id", "alias": "not_null_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__customers"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.581674, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers"}, "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__departments_department_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__departments_department_id", "alias": "unique_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__departments"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5826151, "compiled_sql": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is not null\ngroup by department_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments"}, "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__departments_department_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__departments_department_id", "alias": "not_null_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__departments"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5835588, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments"}, "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "entity_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__entities')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__entities_entity_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__entities_entity_id", "alias": "unique_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__entities"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__entities_entity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.584833, "compiled_sql": "\n \n \n\nselect\n entity_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is not null\ngroup by entity_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities"}, "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "entity_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__entities')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__entities_entity_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__entities_entity_id", "alias": "not_null_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__entities"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__entities_entity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.58612, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities"}, "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__items_item_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__items_item_id", "alias": "unique_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__items"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.58729, "compiled_sql": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items"}, "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__items_item_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__items_item_id", "alias": "not_null_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__items"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.588238, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items"}, "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "job_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__jobs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__jobs_job_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__jobs_job_id", "alias": "unique_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__jobs"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__jobs_job_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5892968, "compiled_sql": "\n \n \n\nselect\n job_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is not null\ngroup by job_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs"}, "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__jobs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__jobs_job_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__jobs_job_id", "alias": "not_null_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__jobs"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__jobs_job_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.590206, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs"}, "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__locations_location_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__locations_location_id", "alias": "unique_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__locations"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.591161, "compiled_sql": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is not null\ngroup by location_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations"}, "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__locations_location_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__locations_location_id", "alias": "not_null_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__locations"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.592205, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations"}, "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "alias": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__subsidiaries"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.593123, "compiled_sql": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is not null\ngroup by subsidiary_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "alias": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__subsidiaries"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.5940359, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id", "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc"}, "created_at": 1658876150.59543, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54\") }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id", "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54"}, "created_at": 1658876150.59677, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6"}, "created_at": 1658876150.5977778, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "alias": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.600713, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_lines_transaction_id", "alias": "not_null_stg_netsuite2__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.601655, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": {"raw_sql": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145\") }}", "test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145"}, "created_at": 1658876150.602783, "compiled_sql": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__transactions_transaction_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__transactions_transaction_id", "alias": "unique_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transactions"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.606126, "compiled_sql": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is not null\ngroup by transaction_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions"}, "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transactions_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transactions_transaction_id", "alias": "not_null_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transactions"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.607712, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions"}, "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_category_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendor_categories')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendor_categories_vendor_category_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "alias": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendor_categories"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.6087391, "compiled_sql": "\n \n \n\nselect\n vendor_category_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is not null\ngroup by vendor_category_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories"}, "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_category_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendor_categories')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendor_categories_vendor_category_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "alias": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendor_categories"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.609736, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories"}, "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": {"raw_sql": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendors_vendor_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__vendors_vendor_id", "alias": "unique_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendors"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.6108649, "compiled_sql": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors"}, "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": {"raw_sql": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendors_vendor_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__vendors_vendor_id", "alias": "not_null_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendors"]], "sources": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1658876150.611841, "compiled_sql": "\n \n \n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors"}}, "sources": {"source.netsuite_source.netsuite2.account_type": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "account_type"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.account_type", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "account_type", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_type_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the various account types within Netsuite.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balancesheet": {"name": "balancesheet", "description": "Boolean indicating if the account type is a balance sheet account. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "left": {"name": "left", "description": "Boolean indicating if the account type is leftside. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longname": {"name": "longname", "description": "The name of the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\"", "created_at": 1658876150.731791}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book_subsidiaries"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_book_subsidiaries", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_sub_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the various account books and the respective subsidiaries.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\"", "created_at": 1658876150.731911}, "source.netsuite_source.netsuite2.accounting_book": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_book", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_book", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "basebook": {"name": "basebook", "description": "Reference to the base book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effectiveperiod": {"name": "effectiveperiod", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isadjustmentonly": {"name": "isadjustmentonly", "description": "Boolean indicating if the accounting book is an adjustment only. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isconsolidated": {"name": "isconsolidated", "description": "Boolean indicating if the accounting book is a consolidated entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contingentrevenuehandling": {"name": "contingentrevenuehandling", "description": "Boolean indicating if the accounting book is contingent revenue handling. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isprimary": {"name": "isprimary", "description": "Boolean indicating if the accounting book is a primary entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "twosteprevenueallocation": {"name": "twosteprevenueallocation", "description": "Boolean indicating if the accounting book is a two step revenue allocation entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unbilledreceivablegrouping": {"name": "unbilledreceivablegrouping", "description": "Boolean indicating if the accounting book is an unbilled receivable grouping. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\"", "created_at": 1658876150.731998}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period_fiscal_calendars"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_period_fiscal_calendars", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_fiscal_cal_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the accounting fiscal calendar periods.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingperiod": {"name": "accountingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\"", "created_at": 1658876150.732073}, "source.netsuite_source.netsuite2.accounting_period": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_period", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_period", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "periodname": {"name": "periodname", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "startdate": {"name": "startdate", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "enddate": {"name": "enddate", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closedondate": {"name": "closedondate", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isquarter": {"name": "isquarter", "description": "Boolean indicating if the accounting period is the initial quarter. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isyear": {"name": "isyear", "description": "Boolean indicating if the accounting period is the initial period. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isadjust": {"name": "isadjust", "description": "Boolean indicating if the accounting period is an adjustment. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isposting": {"name": "isposting", "description": "Boolean indicating if the accounting period is posting. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Boolean indicating if the accounting period is closed. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "alllocked": {"name": "alllocked", "description": "Boolean indicating if all the accounting periods are locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "arlocked": {"name": "arlocked", "description": "Boolean indicating if the ar accounting period is locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "aplocked": {"name": "aplocked", "description": "Boolean indicating if the ap accounting period is locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\"", "created_at": 1658876150.732157}, "source.netsuite_source.netsuite2.account": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "account"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.account", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "account", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounts set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external account,", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "acctnumber": {"name": "acctnumber", "description": "Netsuite generated account number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accttype": {"name": "accttype", "description": "Reference to the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferralacct": {"name": "deferralacct", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cashflowrate": {"name": "cashflowrate", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "generalrate": {"name": "generalrate", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "includechildren": {"name": "includechildren", "description": "Boolean indicating if the account includes sub accounts. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the account is inactive. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "issummary": {"name": "issummary", "description": "Boolean indicating if the account is a summary account. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\"", "created_at": 1658876150.732245}, "source.netsuite_source.netsuite2.classification": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "classification"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.classification", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "classification", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_classification_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all classes set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the class is active. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\"", "created_at": 1658876150.732318}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "consolidated_exchange_rate"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "consolidated_exchange_rate", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_consolidated_exchange_rate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"id": {"name": "id", "description": "unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postingperiod": {"name": "postingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fromcurrency": {"name": "fromcurrency", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fromsubsidiary": {"name": "fromsubsidiary", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tocurrency": {"name": "tocurrency", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tosubsidiary": {"name": "tosubsidiary", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currentrate": {"name": "currentrate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "averagerate": {"name": "averagerate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historicalrate": {"name": "historicalrate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\"", "created_at": 1658876150.732395}, "source.netsuite_source.netsuite2.currency": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "currency"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.currency", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "currency", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_currency_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all currency information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\"", "created_at": 1658876150.7324648}, "source.netsuite_source.netsuite2.customer": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "customer"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.customer", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "customer", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all customer information.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Boolean indicating if the customer is an individual person. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "firstname": {"name": "firstname", "description": "First name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lastname": {"name": "lastname", "description": "Last name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Customers email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivablesaccount": {"name": "receivablesaccount", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "firstorderdate": {"name": "firstorderdate", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\"", "created_at": 1658876150.732552}, "source.netsuite_source.netsuite2.department": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "department"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.department", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "department", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all departments set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the department is active. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\"", "created_at": 1658876150.7326238}, "source.netsuite_source.netsuite2.entity": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.entity", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "entity", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entities_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all entities in Netsuite.", "columns": {"id": {"name": "id", "description": "Th \"The entity id of the entity used for the record.\"e unique identifier of the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact": {"name": "contact", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee": {"name": "employee", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entitytitle": {"name": "entitytitle", "description": "The entity name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Value indicating whether the entity is a person (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "project": {"name": "project", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor": {"name": "vendor", "description": "The unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\"", "created_at": 1658876150.732743}, "source.netsuite_source.netsuite2.entity_address": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity_address"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.entity_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "entity_address", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entity_address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing addresses and the various entities which they map.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\"", "created_at": 1658876150.73282}, "source.netsuite_source.netsuite2.item": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "item"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.item", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "item", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing information about the items created in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "itemtype": {"name": "itemtype", "description": "Item type name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "assetaccount": {"name": "assetaccount", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expenseaccount": {"name": "expenseaccount", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "gainlossaccount": {"name": "gainlossaccount", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "incomeaccount": {"name": "incomeaccount", "description": "Reference to the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoexpenseaccount": {"name": "intercoexpenseaccount", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoincomeaccount": {"name": "intercoincomeaccount", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferralaccount": {"name": "deferralaccount", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferredrevenueaccount": {"name": "deferredrevenueaccount", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\"", "created_at": 1658876150.732905}, "source.netsuite_source.netsuite2.job": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "job"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.job", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "job", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_job_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all jobs.", "columns": {"id": {"name": "id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "Reference the the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Default billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\"", "created_at": 1658876150.7329762}, "source.netsuite_source.netsuite2.location_main_address": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "location_main_address"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.location_main_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "location_main_address", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_main_address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the location main addresses.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\"", "created_at": 1658876150.733053}, "source.netsuite_source.netsuite2.location": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "location"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.location", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "location", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\"", "created_at": 1658876150.733126}, "source.netsuite_source.netsuite2.subsidiary": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "subsidiary"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.subsidiary", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "subsidiary", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_subsidiary_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\"", "created_at": 1658876150.7332008}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_accounting_line"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction_accounting_line", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_tran_acct_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction": {"name": "transaction", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transactionline": {"name": "transactionline", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "netamount": {"name": "netamount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Reference to the accounting book of the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account": {"name": "account", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting": {"name": "posting", "description": "Boolean indicating if the entry is posting. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "debit": {"name": "debit", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amountpaid": {"name": "amountpaid", "description": "Total amount paid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amountunpaid": {"name": "amountunpaid", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\"", "created_at": 1658876150.733278}, "source.netsuite_source.netsuite2.transaction_line": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_line"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction_line", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction_line", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction": {"name": "transaction", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linesequencenumber": {"name": "linesequencenumber", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item": {"name": "item", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isclosed": {"name": "isclosed", "description": "Boolean indicating if the transaction line is closed. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isbillable": {"name": "isbillable", "description": "Boolean indicating if the transaction line is billable. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "iscogs": {"name": "iscogs", "description": "Boolean indicating if the transaction line is a cost of goods sold entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cleared": {"name": "cleared", "description": "Boolean indicating if the transaction line is cleared. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "commitmentfirm": {"name": "commitmentfirm", "description": "Boolean indicating if the transaction line is a commitment firm. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainline": {"name": "mainline", "description": "Boolean indicating if the transaction line is a main line entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxline": {"name": "taxline", "description": "Boolean indicating if the transaction line is a tax line. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\"", "created_at": 1658876150.733365}, "source.netsuite_source.netsuite2.transaction": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transactionnumber": {"name": "transactionnumber", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "createddate": {"name": "createddate", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duedate": {"name": "duedate", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closedate": {"name": "closedate", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postingperiod": {"name": "postingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting": {"name": "posting", "description": "Boolean indicating if the transaction is a posting event. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoadj": {"name": "intercoadj", "description": "Boolean indicating if the transaction is an intercompany adjustment. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isreversal": {"name": "isreversal", "description": "Boolean indicating if the transaction is a reversal entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\"", "created_at": 1658876150.7334452}, "source.netsuite_source.netsuite2.vendor_category": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor_category"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.vendor_category", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "vendor_category", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_category_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing categories and how they map to vendors.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\"", "created_at": 1658876150.733509}, "source.netsuite_source.netsuite2.vendor": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.vendor", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "vendor", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all vendor information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "datecreated": {"name": "datecreated", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\"", "created_at": 1658876150.733578}, "source.netsuite_source.netsuite.accounting_books": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_books"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounting_books", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounting_books", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_books_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\"", "created_at": 1658876150.733645}, "source.netsuite_source.netsuite.accounting_periods": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_periods"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounting_periods", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounting_periods", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_periods_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting": {"name": "starting", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending": {"name": "ending", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_0": {"name": "year_0", "description": "Value indicating whether the accounting period is in it's initial year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Value indicating whether the accounting period is an adjustment (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\"", "created_at": 1658876150.7337222}, "source.netsuite_source.netsuite.accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table that provides a complete listing of every account in the accounting system.", "columns": {"account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the type of the account (ie. Bank, Equity, Income, Expense).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingnumber": {"name": "accountingnumber", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\"", "created_at": 1658876150.733794}, "source.netsuite_source.netsuite.classes": {"fqn": ["netsuite_source", "netsuite", "netsuite", "classes"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.classes", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "classes", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_classes_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all classes set up in Netsuite.", "columns": {"class_id": {"name": "class_id", "description": "The unique identifier of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\"", "created_at": 1658876150.7338848}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"fqn": ["netsuite_source", "netsuite", "netsuite", "consolidated_exchange_rates"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "consolidated_exchange_rates", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_consolidated_exchange_rates_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The accounting book the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "THe subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\"", "created_at": 1658876150.733956}, "source.netsuite_source.netsuite.currencies": {"fqn": ["netsuite_source", "netsuite", "netsuite", "currencies"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.currencies", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "currencies", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_currencies_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "The names and symbols for all currencies set up in Netsuite.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\"", "created_at": 1658876150.7340229}, "source.netsuite_source.netsuite.customers": {"fqn": ["netsuite_source", "netsuite", "netsuite", "customers"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.customers", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "customers", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_customers_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_extid": {"name": "customer_extid", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order": {"name": "date_first_order", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\"", "created_at": 1658876150.7340941}, "source.netsuite_source.netsuite.departments": {"fqn": ["netsuite_source", "netsuite", "netsuite", "departments"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.departments", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "departments", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_departments_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all departments set up in Netsuite.", "columns": {"department_id": {"name": "department_id", "description": "The unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\"", "created_at": 1658876150.734159}, "source.netsuite_source.netsuite.expense_accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "expense_accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.expense_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "expense_accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_expense_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all expense accounts.", "columns": {"expense_account_id": {"name": "expense_account_id", "description": "The unique identifier of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\"", "created_at": 1658876150.734226}, "source.netsuite_source.netsuite.income_accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "income_accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.income_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "income_accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_income_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all income accounts.", "columns": {"income_account_id": {"name": "income_account_id", "description": "The unique identifier of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\"", "created_at": 1658876150.734293}, "source.netsuite_source.netsuite.items": {"fqn": ["netsuite_source", "netsuite", "netsuite", "items"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.items", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "items", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_items_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing information about the items created in Netsuite.", "columns": {"item_id": {"name": "item_id", "description": "The unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salesdescription": {"name": "salesdescription", "description": "The items sales description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\"", "created_at": 1658876150.73436}, "source.netsuite_source.netsuite.locations": {"fqn": ["netsuite_source", "netsuite", "netsuite", "locations"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.locations", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "locations", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_locations_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"location_id": {"name": "location_id", "description": "The unique identifier of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\"", "created_at": 1658876150.734429}, "source.netsuite_source.netsuite.subsidiaries": {"fqn": ["netsuite_source", "netsuite", "netsuite", "subsidiaries"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "subsidiaries", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_subsidiaries_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id associated with the fiscal calendar the subsidiary is on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\"", "created_at": 1658876150.734496}, "source.netsuite_source.netsuite.transaction_lines": {"fqn": ["netsuite_source", "netsuite", "netsuite", "transaction_lines"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.transaction_lines", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "transaction_lines", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transaction_lines_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The subsidiary id of the subsidiary which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The item id of the item which is included in the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "non_posting_line": {"name": "non_posting_line", "description": "Value indicating whether the transaction line is a non posting line (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The class id of the class which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The location id of the location which the transaction line took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\"", "created_at": 1658876150.734571}, "source.netsuite_source.netsuite.transactions": {"fqn": ["netsuite_source", "netsuite", "netsuite", "transactions"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.transactions", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "transactions", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transactions_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_advanced_intercompany": {"name": "is_advanced_intercompany", "description": "Value indicating whether the transaction is an advanced intercompany journal entry (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\"", "created_at": 1658876150.734645}, "source.netsuite_source.netsuite.vendor_types": {"fqn": ["netsuite_source", "netsuite", "netsuite", "vendor_types"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.vendor_types", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "vendor_types", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendor_types_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all the various types of vendors.", "columns": {"vendor_type_id": {"name": "vendor_type_id", "description": "The unique identifier of the vendor type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\"", "created_at": 1658876150.73471}, "source.netsuite_source.netsuite.vendors": {"fqn": ["netsuite_source", "netsuite", "netsuite", "vendors"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.vendors", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "vendors", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendors_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The vendor's company name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\"", "created_at": 1658876150.734776}}, "macros": {"macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8191109}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.819885}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8251631}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.825661}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.825983}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.826289}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.826879}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.827264}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.827435}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.827785}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.828177}, "macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.828255}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.828428}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.828526}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix_length = suffix|length + dtstring|length %}\n {% set relation_max_name_length = 63 %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Temp relation suffix is too long (' ~ suffix|length ~ ' characters). Maximum length is ' ~ (relation_max_name_length - dtstring|length) ~ ' characters.') %}\n {% endif %}\n {% set tmp_identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix ~ dtstring %}\n {% do return(base_relation.incorporate(\n path={\n \"identifier\": tmp_identifier,\n \"schema\": none,\n \"database\": none\n })) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8294022}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.82984}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.830064}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.830664}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.831499}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.832618}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.832814}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.832953}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.833091}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.833228}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.833656}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.833956}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.834267}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8348842}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.835177}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.838689}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.83887}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.839092}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_get_time", "macro_sql": "{% macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.839235}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() -%}\n {{ current_timestamp() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.839328}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.84004}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.840202}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.840368}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists) -%}\n {%- set query_columns = get_columns_in_query(node['compiled_sql']) -%}\n {%- if not target_exists -%}\n {# no table yet -> return whatever the query does #}\n {{ return([false, query_columns]) }}\n {%- endif -%}\n {# handle any schema changes #}\n {%- set target_table = node.get('alias', node.get('name')) -%}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=target_table) -%}\n {%- set existing_cols = get_columns_in_query('select * from ' ~ target_relation) -%}\n {%- set ns = namespace() -%} {# handle for-loop scoping with a namespace #}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(col) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return([ns.column_added, intersection]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.841326}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n \n {% set select_current_time -%}\n select {{ snapshot_get_time() }} as snapshot_start\n {%- endset %}\n\n {#-- don't access the column by name, to avoid dealing with casing issues on snowflake #}\n {%- set now = run_query(select_current_time)[0][0] -%}\n {% if now is none or now is undefined -%}\n {%- do exceptions.raise_compiler_error('Could not get a snapshot start time from the database') -%}\n {%- endif %}\n {% set updated_at = config.get('updated_at', snapshot_string_as_time(now)) %}\n\n {% set column_added = false %}\n\n {% if check_cols_config == 'all' %}\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists) %}\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {% set check_cols = check_cols_config %}\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n TRUE\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.run_query", "macro.dbt.snapshot_string_as_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8433018}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.846516}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.846795}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.846959}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8470452}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8472488}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select \n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n \n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n \n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.848109}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.848295}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.848545}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, tmp_relation, select) }}\n {% endcall %}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.848972}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n\n {% if not adapter.check_schema_exists(model.database, model.schema) %}\n {% do create_schema(model.database, model.schema) %}\n {% endif %}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_sql']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_schema", "macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8550231}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n \n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n \n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n \n {% do relations.append(target_relation) %}\n \n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n \n {{ adapter.commit() }}\n \n {% else %}\n\n {% set main_sql = sql %}\n \n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n \n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.857377}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.858016}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8583229}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8587809}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.859173}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n \n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.860033}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n \n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n \n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.860594}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n \n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }} \n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8612008}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8639512}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set update_columns = config.get('merge_update_columns', default = dest_columns | map(attribute=\"quoted\") | list) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8651268}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.865369}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key is not none %}\n delete from {{ target }}\n where ({{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8657951}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.86607}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.866712}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8674471}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n {% set unique_key = config.get('unique_key') %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% set existing_relation = load_relation(this) %}\n {% set tmp_relation = make_temp_relation(target_relation) %}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {% set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') %}\n\n {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n {% set backup_identifier = model['name'] + \"__dbt_backup\" %}\n\n -- the intermediate_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {% set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) %} \n {% set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=database) %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {# -- first check whether we want to full refresh for source view or config reasons #}\n {% set trigger_full_refresh = (full_refresh_mode or existing_relation.is_view) %}\n\n {% if existing_relation is none %}\n {% set build_sql = create_table_as(False, target_relation, sql) %}\n{% elif trigger_full_refresh %}\n {#-- Make sure the backup doesn't exist so we don't encounter issues with the rename below #}\n {% set tmp_identifier = model['name'] + '__dbt_tmp' %}\n {% set backup_identifier = model['name'] + '__dbt_backup' %}\n {% set intermediate_relation = existing_relation.incorporate(path={\"identifier\": tmp_identifier}) %}\n {% set backup_relation = existing_relation.incorporate(path={\"identifier\": backup_identifier}) %}\n\n {% set build_sql = create_table_as(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% do to_drop.append(backup_relation) %}\n {% else %}\n {% do run_query(create_table_as(True, tmp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=tmp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, tmp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n {% set build_sql = get_delete_insert_merge_sql(target_relation, tmp_relation, unique_key, dest_columns) %}\n \n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %} \n {% do adapter.rename_relation(target_relation, backup_relation) %} \n {% do adapter.rename_relation(intermediate_relation, target_relation) %} \n {% endif %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_relation", "macro.dbt.make_temp_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.create_table_as", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.get_delete_insert_merge_sql", "macro.dbt.statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.872426}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n \n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n \n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n \n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n \n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.877511}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n \n {% set schema_changed = False %}\n \n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n \n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n \n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8788302}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n \n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n \n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n \n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %} \n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n \n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n \n {% do log(schema_change_message) %}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.880175}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n \n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n \n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n \n {% if schema_changes_dict['schema_changed'] %}\n \n {% if on_schema_change == 'fail' %}\n \n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways: \n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n {% endset %}\n \n {% do exceptions.raise_compiler_error(fail_msg) %}\n \n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n \n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n \n {% endif %}\n \n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n \n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.880975}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier,\n schema=schema,\n database=database,\n type='table') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema,\n database=database,\n type='table') -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema,\n database=database,\n type=backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=database) -%}\n\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if old_relation is not none %}\n {{ adapter.rename_relation(old_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8858922}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.886699}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8870158}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, sql) -%}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.887456}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n \n {{ sql_header if sql_header is not none }}\n \n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.887962}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set identifier = model['alias'] -%}\n {%- set tmp_identifier = model['name'] + '__dbt_tmp' -%}\n {%- set backup_identifier = model['name'] + '__dbt_backup' -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {%- set intermediate_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, database=database, type='view') -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = adapter.get_relation(identifier=tmp_identifier, \n schema=schema,\n database=database) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"old_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the old_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the old_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if old_relation is none else old_relation.type -%}\n {%- set backup_relation = api.Relation.create(identifier=backup_identifier,\n schema=schema, database=database,\n type=backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = adapter.get_relation(identifier=backup_identifier,\n schema=schema,\n database=database) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ create_view_as(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if old_relation is not none %}\n {{ adapter.rename_relation(old_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.create_view_as", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8926}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.893235}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8934882}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.8948748}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.895403}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.895581}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.895776}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.89605}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set agate_table = load_agate_table() -%}\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ create_table_sql }};\n -- dbt seed --\n {{ sql }}\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.899499}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.903821}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.904813}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.905076}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.905586}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.905741}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.905864}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9060311}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9061592}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.906663}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9071329}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9085371}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9093919}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.909655}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9103339}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9106271}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.910943}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9116402}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9119658}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.91252}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\nselect *\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.912819}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.913165}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.913873}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "{% macro statement(name=None, fetch_result=False, auto_begin=True) -%}\n {%- if execute: -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- set res, table = adapter.execute(sql, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.915256}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.915891}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.916214}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.918228}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.919632}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.920413}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9206588}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9212348}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.921417}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9215832}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9217658}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.922304}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.922444}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9226072}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.923019}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9248378}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {% set tmp_identifier = base_relation.identifier ~ suffix %}\n {% set tmp_relation = base_relation.incorporate(\n path={\"identifier\": tmp_identifier}) -%}\n\n {% do return(tmp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.92518}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.925369}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.925581}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.925761}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9259148}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.926112}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.926395}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.926641}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.927286}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.92751}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.927702}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.928329}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter '+adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.928472}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.928698}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.929112}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.929842}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.930007}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.930208}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.930379}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.930659}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.931133}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.93256}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.932819}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.933001}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.933148}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.933322}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.933569}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.933773}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.934161}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.934357}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.934518}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.936245}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9364018}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9367192}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.936896}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9372318}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9374568}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.938056}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.93831}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n \n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n \n {% set sql -%}\n \n alter {{ relation.type }} {{ relation }}\n \n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n \n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n \n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.93913}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9398022}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.940065}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9403598}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.940642}, "macro.dbt_utils.except": {"unique_id": "macro.dbt_utils.except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.941015}, "macro.dbt_utils.default__except": {"unique_id": "macro.dbt_utils.default__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.941094}, "macro.dbt_utils.bigquery__except": {"unique_id": "macro.dbt_utils.bigquery__except", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/except.sql", "original_file_path": "macros/cross_db_utils/except.sql", "name": "bigquery__except", "macro_sql": "{% macro bigquery__except() %}\n\n except distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.941164}, "macro.dbt_utils.replace": {"unique_id": "macro.dbt_utils.replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt_utils') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.941578}, "macro.dbt_utils.default__replace": {"unique_id": "macro.dbt_utils.default__replace", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/replace.sql", "original_file_path": "macros/cross_db_utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n \n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.941739}, "macro.dbt_utils.concat": {"unique_id": "macro.dbt_utils.concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt_utils')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.942061}, "macro.dbt_utils.default__concat": {"unique_id": "macro.dbt_utils.default__concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/concat.sql", "original_file_path": "macros/cross_db_utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.942276}, "macro.dbt_utils.type_string": {"unique_id": "macro.dbt_utils.type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.942988}, "macro.dbt_utils.default__type_string": {"unique_id": "macro.dbt_utils.default__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n string\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9430609}, "macro.dbt_utils.redshift__type_string": {"unique_id": "macro.dbt_utils.redshift__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "redshift__type_string", "macro_sql": "\n\n{%- macro redshift__type_string() -%}\n varchar\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.943134}, "macro.dbt_utils.postgres__type_string": {"unique_id": "macro.dbt_utils.postgres__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_string", "macro_sql": "{% macro postgres__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.943202}, "macro.dbt_utils.snowflake__type_string": {"unique_id": "macro.dbt_utils.snowflake__type_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_string", "macro_sql": "{% macro snowflake__type_string() %}\n varchar\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.943269}, "macro.dbt_utils.type_timestamp": {"unique_id": "macro.dbt_utils.type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.943424}, "macro.dbt_utils.default__type_timestamp": {"unique_id": "macro.dbt_utils.default__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9434948}, "macro.dbt_utils.postgres__type_timestamp": {"unique_id": "macro.dbt_utils.postgres__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "postgres__type_timestamp", "macro_sql": "{% macro postgres__type_timestamp() %}\n timestamp without time zone\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.943564}, "macro.dbt_utils.snowflake__type_timestamp": {"unique_id": "macro.dbt_utils.snowflake__type_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "snowflake__type_timestamp", "macro_sql": "{% macro snowflake__type_timestamp() %}\n timestamp_ntz\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.943629}, "macro.dbt_utils.type_float": {"unique_id": "macro.dbt_utils.type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.943792}, "macro.dbt_utils.default__type_float": {"unique_id": "macro.dbt_utils.default__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n float\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9438632}, "macro.dbt_utils.bigquery__type_float": {"unique_id": "macro.dbt_utils.bigquery__type_float", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_float", "macro_sql": "{% macro bigquery__type_float() %}\n float64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9439309}, "macro.dbt_utils.type_numeric": {"unique_id": "macro.dbt_utils.type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.944087}, "macro.dbt_utils.default__type_numeric": {"unique_id": "macro.dbt_utils.default__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n numeric(28, 6)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9441578}, "macro.dbt_utils.bigquery__type_numeric": {"unique_id": "macro.dbt_utils.bigquery__type_numeric", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_numeric", "macro_sql": "{% macro bigquery__type_numeric() %}\n numeric\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9442282}, "macro.dbt_utils.type_bigint": {"unique_id": "macro.dbt_utils.type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9443939}, "macro.dbt_utils.default__type_bigint": {"unique_id": "macro.dbt_utils.default__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n bigint\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.944468}, "macro.dbt_utils.bigquery__type_bigint": {"unique_id": "macro.dbt_utils.bigquery__type_bigint", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_bigint", "macro_sql": "{% macro bigquery__type_bigint() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9445388}, "macro.dbt_utils.type_int": {"unique_id": "macro.dbt_utils.type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.944768}, "macro.dbt_utils.default__type_int": {"unique_id": "macro.dbt_utils.default__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "default__type_int", "macro_sql": "{% macro default__type_int() %}\n int\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.944842}, "macro.dbt_utils.bigquery__type_int": {"unique_id": "macro.dbt_utils.bigquery__type_int", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datatypes.sql", "original_file_path": "macros/cross_db_utils/datatypes.sql", "name": "bigquery__type_int", "macro_sql": "{% macro bigquery__type_int() %}\n int64\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.944911}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_relation.sql", "original_file_path": "macros/cross_db_utils/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.945468}, "macro.dbt_utils.cast_array_to_string": {"unique_id": "macro.dbt_utils.cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "cast_array_to_string", "macro_sql": "{% macro cast_array_to_string(array) %}\n {{ adapter.dispatch('cast_array_to_string', 'dbt_utils') (array) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__cast_array_to_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.94593}, "macro.dbt_utils.default__cast_array_to_string": {"unique_id": "macro.dbt_utils.default__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "default__cast_array_to_string", "macro_sql": "{% macro default__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.946066}, "macro.dbt_utils.postgres__cast_array_to_string": {"unique_id": "macro.dbt_utils.postgres__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "postgres__cast_array_to_string", "macro_sql": "{% macro postgres__cast_array_to_string(array) %}\n {%- set array_as_string -%}cast({{ array }} as {{ dbt_utils.type_string() }}){%- endset -%}\n {{ dbt_utils.replace(dbt_utils.replace(array_as_string,\"'}'\",\"']'\"),\"'{'\",\"'['\") }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.replace"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.946364}, "macro.dbt_utils.redshift__cast_array_to_string": {"unique_id": "macro.dbt_utils.redshift__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "redshift__cast_array_to_string", "macro_sql": "{% macro redshift__cast_array_to_string(array) %}\n cast({{ array }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9465148}, "macro.dbt_utils.bigquery__cast_array_to_string": {"unique_id": "macro.dbt_utils.bigquery__cast_array_to_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_array_to_string.sql", "original_file_path": "macros/cross_db_utils/cast_array_to_string.sql", "name": "bigquery__cast_array_to_string", "macro_sql": "{% macro bigquery__cast_array_to_string(array) %}\n '['||(select string_agg(cast(element as string), ',') from unnest({{ array }}) element)||']'\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.946651}, "macro.dbt_utils.length": {"unique_id": "macro.dbt_utils.length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__length"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9470599}, "macro.dbt_utils.default__length": {"unique_id": "macro.dbt_utils.default__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n \n length(\n {{ expression }}\n )\n \n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.947168}, "macro.dbt_utils.redshift__length": {"unique_id": "macro.dbt_utils.redshift__length", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/length.sql", "original_file_path": "macros/cross_db_utils/length.sql", "name": "redshift__length", "macro_sql": "{% macro redshift__length(expression) %}\n\n len(\n {{ expression }}\n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.947268}, "macro.dbt_utils.dateadd": {"unique_id": "macro.dbt_utils.dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt_utils')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.947861}, "macro.dbt_utils.default__dateadd": {"unique_id": "macro.dbt_utils.default__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.948024}, "macro.dbt_utils.bigquery__dateadd": {"unique_id": "macro.dbt_utils.bigquery__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "bigquery__dateadd", "macro_sql": "{% macro bigquery__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n datetime_add(\n cast( {{ from_date_or_timestamp }} as datetime),\n interval {{ interval }} {{ datepart }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.948183}, "macro.dbt_utils.postgres__dateadd": {"unique_id": "macro.dbt_utils.postgres__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.948338}, "macro.dbt_utils.redshift__dateadd": {"unique_id": "macro.dbt_utils.redshift__dateadd", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/dateadd.sql", "original_file_path": "macros/cross_db_utils/dateadd.sql", "name": "redshift__dateadd", "macro_sql": "{% macro redshift__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ return(dbt_utils.default__dateadd(datepart, interval, from_date_or_timestamp)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.948533}, "macro.dbt_utils.intersect": {"unique_id": "macro.dbt_utils.intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt_utils')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.948859}, "macro.dbt_utils.default__intersect": {"unique_id": "macro.dbt_utils.default__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9489331}, "macro.dbt_utils.bigquery__intersect": {"unique_id": "macro.dbt_utils.bigquery__intersect", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/intersect.sql", "original_file_path": "macros/cross_db_utils/intersect.sql", "name": "bigquery__intersect", "macro_sql": "{% macro bigquery__intersect() %}\n\n intersect distinct\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.949002}, "macro.dbt_utils.escape_single_quotes": {"unique_id": "macro.dbt_utils.escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9493911}, "macro.dbt_utils.default__escape_single_quotes": {"unique_id": "macro.dbt_utils.default__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9495292}, "macro.dbt_utils.snowflake__escape_single_quotes": {"unique_id": "macro.dbt_utils.snowflake__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "snowflake__escape_single_quotes", "macro_sql": "{% macro snowflake__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.949743}, "macro.dbt_utils.bigquery__escape_single_quotes": {"unique_id": "macro.dbt_utils.bigquery__escape_single_quotes", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/escape_single_quotes.sql", "original_file_path": "macros/cross_db_utils/escape_single_quotes.sql", "name": "bigquery__escape_single_quotes", "macro_sql": "{% macro bigquery__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\", \"\\\\'\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9498749}, "macro.dbt_utils.right": {"unique_id": "macro.dbt_utils.right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt_utils') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__right"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.950461}, "macro.dbt_utils.default__right": {"unique_id": "macro.dbt_utils.default__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.950593}, "macro.dbt_utils.bigquery__right": {"unique_id": "macro.dbt_utils.bigquery__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "bigquery__right", "macro_sql": "{% macro bigquery__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n substr(\n {{ string_text }},\n -1 * ({{ length_expression }})\n )\n end\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.950746}, "macro.dbt_utils.snowflake__right": {"unique_id": "macro.dbt_utils.snowflake__right", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/right.sql", "original_file_path": "macros/cross_db_utils/right.sql", "name": "snowflake__right", "macro_sql": "{% macro snowflake__right(string_text, length_expression) %}\n\n case when {{ length_expression }} = 0 \n then ''\n else \n right(\n {{ string_text }},\n {{ length_expression }}\n )\n end\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.950896}, "macro.dbt_utils.listagg": {"unique_id": "macro.dbt_utils.listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt_utils') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.953166}, "macro.dbt_utils.default__listagg": {"unique_id": "macro.dbt_utils.default__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.953579}, "macro.dbt_utils.bigquery__listagg": {"unique_id": "macro.dbt_utils.bigquery__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "bigquery__listagg", "macro_sql": "{% macro bigquery__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n {% if limit_num -%}\n limit {{ limit_num }}\n {%- endif %}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9538682}, "macro.dbt_utils.postgres__listagg": {"unique_id": "macro.dbt_utils.postgres__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n \n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9542441}, "macro.dbt_utils.redshift__listagg": {"unique_id": "macro.dbt_utils.redshift__listagg", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/listagg.sql", "original_file_path": "macros/cross_db_utils/listagg.sql", "name": "redshift__listagg", "macro_sql": "{% macro redshift__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n {% set ns = namespace() %}\n {% set ns.delimiter_text_regex = delimiter_text|trim(\"'\") %}\n {% set special_chars %}\\,^,$,.,|,?,*,+,(,),[,],{,}{% endset %} \n {%- for char in special_chars.split(',') -%}\n {% set escape_char %}\\\\{{ char }}{% endset %}\n {% set ns.delimiter_text_regex = ns.delimiter_text_regex|replace(char,escape_char) %}\n {%- endfor -%}\n\n {% set regex %}'([^{{ ns.delimiter_text_regex }}]+{{ ns.delimiter_text_regex }}){1,{{ limit_num - 1}}}[^{{ ns.delimiter_text_regex }}]+'{% endset %}\n regexp_substr(\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,{{ regex }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.955439}, "macro.dbt_utils.datediff": {"unique_id": "macro.dbt_utils.datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt_utils')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.958196}, "macro.dbt_utils.default__datediff": {"unique_id": "macro.dbt_utils.default__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.958375}, "macro.dbt_utils.bigquery__datediff": {"unique_id": "macro.dbt_utils.bigquery__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "bigquery__datediff", "macro_sql": "{% macro bigquery__datediff(first_date, second_date, datepart) -%}\n\n datetime_diff(\n cast({{second_date}} as datetime),\n cast({{first_date}} as datetime),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9585438}, "macro.dbt_utils.postgres__datediff": {"unique_id": "macro.dbt_utils.postgres__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.960385}, "macro.dbt_utils.redshift__datediff": {"unique_id": "macro.dbt_utils.redshift__datediff", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/datediff.sql", "original_file_path": "macros/cross_db_utils/datediff.sql", "name": "redshift__datediff", "macro_sql": "{% macro redshift__datediff(first_date, second_date, datepart) -%}\n\n {{ return(dbt_utils.default__datediff(first_date, second_date, datepart)) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.960599}, "macro.dbt_utils.safe_cast": {"unique_id": "macro.dbt_utils.safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt_utils') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.961164}, "macro.dbt_utils.default__safe_cast": {"unique_id": "macro.dbt_utils.default__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9613109}, "macro.dbt_utils.snowflake__safe_cast": {"unique_id": "macro.dbt_utils.snowflake__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "snowflake__safe_cast", "macro_sql": "{% macro snowflake__safe_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.96144}, "macro.dbt_utils.bigquery__safe_cast": {"unique_id": "macro.dbt_utils.bigquery__safe_cast", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/safe_cast.sql", "original_file_path": "macros/cross_db_utils/safe_cast.sql", "name": "bigquery__safe_cast", "macro_sql": "{% macro bigquery__safe_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.961566}, "macro.dbt_utils.hash": {"unique_id": "macro.dbt_utils.hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt_utils') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.961948}, "macro.dbt_utils.default__hash": {"unique_id": "macro.dbt_utils.default__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{field}} as {{dbt_utils.type_string()}}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.962091}, "macro.dbt_utils.bigquery__hash": {"unique_id": "macro.dbt_utils.bigquery__hash", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/hash.sql", "original_file_path": "macros/cross_db_utils/hash.sql", "name": "bigquery__hash", "macro_sql": "{% macro bigquery__hash(field) -%}\n to_hex({{dbt_utils.default__hash(field)}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9622211}, "macro.dbt_utils.cast_bool_to_text": {"unique_id": "macro.dbt_utils.cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt_utils') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.962601}, "macro.dbt_utils.default__cast_bool_to_text": {"unique_id": "macro.dbt_utils.default__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ dbt_utils.type_string() }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.962867}, "macro.dbt_utils.redshift__cast_bool_to_text": {"unique_id": "macro.dbt_utils.redshift__cast_bool_to_text", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/cast_bool_to_text.sql", "original_file_path": "macros/cross_db_utils/cast_bool_to_text.sql", "name": "redshift__cast_bool_to_text", "macro_sql": "{% macro redshift__cast_bool_to_text(field) %}\n case\n when {{ field }} is true then 'true'\n when {{ field }} is false then 'false'\n end::text\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.963017}, "macro.dbt_utils.identifier": {"unique_id": "macro.dbt_utils.identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "identifier", "macro_sql": "{% macro identifier(value) %}\t\n {%- set error_message = '\n Warning: the `identifier` macro is no longer supported and will be deprecated in a future release of dbt-utils. \\\n Use `adapter.quote` instead. The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {{ return(adapter.dispatch('identifier', 'dbt_utils') (value)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__identifier"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.963661}, "macro.dbt_utils.default__identifier": {"unique_id": "macro.dbt_utils.default__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "default__identifier", "macro_sql": "{% macro default__identifier(value) -%}\t\n \"{{ value }}\"\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.963779}, "macro.dbt_utils.bigquery__identifier": {"unique_id": "macro.dbt_utils.bigquery__identifier", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/identifier.sql", "original_file_path": "macros/cross_db_utils/identifier.sql", "name": "bigquery__identifier", "macro_sql": "{% macro bigquery__identifier(value) -%}\t\n `{{ value }}`\t\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.963882}, "macro.dbt_utils.any_value": {"unique_id": "macro.dbt_utils.any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.964285}, "macro.dbt_utils.default__any_value": {"unique_id": "macro.dbt_utils.default__any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n \n any_value({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.964391}, "macro.dbt_utils.postgres__any_value": {"unique_id": "macro.dbt_utils.postgres__any_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/any_value.sql", "original_file_path": "macros/cross_db_utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n {#- /*Postgres doesn't support any_value, so we're using min() to get the same result*/ -#}\n min({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9644978}, "macro.dbt_utils.position": {"unique_id": "macro.dbt_utils.position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt_utils') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__position"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9649348}, "macro.dbt_utils.default__position": {"unique_id": "macro.dbt_utils.default__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n \n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.965069}, "macro.dbt_utils.bigquery__position": {"unique_id": "macro.dbt_utils.bigquery__position", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/position.sql", "original_file_path": "macros/cross_db_utils/position.sql", "name": "bigquery__position", "macro_sql": "{% macro bigquery__position(substring_text, string_text) %}\n\n strpos(\n {{ string_text }},\n {{ substring_text }}\n \n )\n \n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.965198}, "macro.dbt_utils.string_literal": {"unique_id": "macro.dbt_utils.string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt_utils') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9656231}, "macro.dbt_utils.default__string_literal": {"unique_id": "macro.dbt_utils.default__string_literal", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/literal.sql", "original_file_path": "macros/cross_db_utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.965725}, "macro.dbt_utils.current_timestamp": {"unique_id": "macro.dbt_utils.current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp", "macro_sql": "{% macro current_timestamp() -%}\n {{ return(adapter.dispatch('current_timestamp', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.966304}, "macro.dbt_utils.default__current_timestamp": {"unique_id": "macro.dbt_utils.default__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() %}\n current_timestamp::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.966416}, "macro.dbt_utils.redshift__current_timestamp": {"unique_id": "macro.dbt_utils.redshift__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp", "macro_sql": "{% macro redshift__current_timestamp() %}\n getdate()\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.966489}, "macro.dbt_utils.bigquery__current_timestamp": {"unique_id": "macro.dbt_utils.bigquery__current_timestamp", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "bigquery__current_timestamp", "macro_sql": "{% macro bigquery__current_timestamp() %}\n current_timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.966557}, "macro.dbt_utils.current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "current_timestamp_in_utc", "macro_sql": "{% macro current_timestamp_in_utc() -%}\n {{ return(adapter.dispatch('current_timestamp_in_utc', 'dbt_utils')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9667132}, "macro.dbt_utils.default__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.default__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "default__current_timestamp_in_utc", "macro_sql": "{% macro default__current_timestamp_in_utc() %}\n {{dbt_utils.current_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.966818}, "macro.dbt_utils.snowflake__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.snowflake__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "snowflake__current_timestamp_in_utc", "macro_sql": "{% macro snowflake__current_timestamp_in_utc() %}\n convert_timezone('UTC', {{dbt_utils.current_timestamp()}})::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.current_timestamp", "macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.966958}, "macro.dbt_utils.postgres__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.postgres__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "postgres__current_timestamp_in_utc", "macro_sql": "{% macro postgres__current_timestamp_in_utc() %}\n (current_timestamp at time zone 'utc')::{{dbt_utils.type_timestamp()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9670641}, "macro.dbt_utils.redshift__current_timestamp_in_utc": {"unique_id": "macro.dbt_utils.redshift__current_timestamp_in_utc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/current_timestamp.sql", "original_file_path": "macros/cross_db_utils/current_timestamp.sql", "name": "redshift__current_timestamp_in_utc", "macro_sql": "{% macro redshift__current_timestamp_in_utc() %}\n {{ return(dbt_utils.default__current_timestamp_in_utc()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__current_timestamp_in_utc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.967189}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9686038}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }},\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9690619}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt_utils.safe_cast(expr, dbt_utils.type_numeric() ) }} %\n {{ dbt_utils.safe_cast(bin_size, dbt_utils.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.safe_cast", "macro.dbt_utils.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.969517}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/width_bucket.sql", "original_file_path": "macros/cross_db_utils/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9697092}, "macro.dbt_utils.array_concat": {"unique_id": "macro.dbt_utils.array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt_utils')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.970152}, "macro.dbt_utils.default__array_concat": {"unique_id": "macro.dbt_utils.default__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.970288}, "macro.dbt_utils.bigquery__array_concat": {"unique_id": "macro.dbt_utils.bigquery__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "bigquery__array_concat", "macro_sql": "{% macro bigquery__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.970443}, "macro.dbt_utils.redshift__array_concat": {"unique_id": "macro.dbt_utils.redshift__array_concat", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_concat.sql", "original_file_path": "macros/cross_db_utils/array_concat.sql", "name": "redshift__array_concat", "macro_sql": "{% macro redshift__array_concat(array_1, array_2) -%}\n array_concat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.970618}, "macro.dbt_utils.bool_or": {"unique_id": "macro.dbt_utils.bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt_utils') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.97105}, "macro.dbt_utils.default__bool_or": {"unique_id": "macro.dbt_utils.default__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n \n bool_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9711611}, "macro.dbt_utils.snowflake__bool_or": {"unique_id": "macro.dbt_utils.snowflake__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "snowflake__bool_or", "macro_sql": "{% macro snowflake__bool_or(expression) -%}\n \n boolor_agg({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.971333}, "macro.dbt_utils.bigquery__bool_or": {"unique_id": "macro.dbt_utils.bigquery__bool_or", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/bool_or.sql", "original_file_path": "macros/cross_db_utils/bool_or.sql", "name": "bigquery__bool_or", "macro_sql": "{% macro bigquery__bool_or(expression) -%}\n \n logical_or({{ expression }})\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.971431}, "macro.dbt_utils.last_day": {"unique_id": "macro.dbt_utils.last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt_utils') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9720478}, "macro.dbt_utils.default_last_day": {"unique_id": "macro.dbt_utils.default_last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd(datepart, '1', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9723158}, "macro.dbt_utils.default__last_day": {"unique_id": "macro.dbt_utils.default__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9724622}, "macro.dbt_utils.postgres__last_day": {"unique_id": "macro.dbt_utils.postgres__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt_utils.dateadd('day', '-1',\n dbt_utils.dateadd('month', '3', dbt_utils.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt_utils.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.date_trunc", "macro.dbt_utils.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9728582}, "macro.dbt_utils.redshift__last_day": {"unique_id": "macro.dbt_utils.redshift__last_day", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/last_day.sql", "original_file_path": "macros/cross_db_utils/last_day.sql", "name": "redshift__last_day", "macro_sql": "{% macro redshift__last_day(date, datepart) %}\n\n {{ return(dbt_utils.default__last_day(date, datepart)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__last_day"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.973032}, "macro.dbt_utils.split_part": {"unique_id": "macro.dbt_utils.split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt_utils') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.97453}, "macro.dbt_utils.default__split_part": {"unique_id": "macro.dbt_utils.default__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.974706}, "macro.dbt_utils._split_part_negative": {"unique_id": "macro.dbt_utils._split_part_negative", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9749382}, "macro.dbt_utils.postgres__split_part": {"unique_id": "macro.dbt_utils.postgres__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9753191}, "macro.dbt_utils.redshift__split_part": {"unique_id": "macro.dbt_utils.redshift__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "redshift__split_part", "macro_sql": "{% macro redshift__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt_utils.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt_utils._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__split_part", "macro.dbt_utils._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.975651}, "macro.dbt_utils.bigquery__split_part": {"unique_id": "macro.dbt_utils.bigquery__split_part", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/split_part.sql", "original_file_path": "macros/cross_db_utils/split_part.sql", "name": "bigquery__split_part", "macro_sql": "{% macro bigquery__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset({{ part_number - 1 }})]\n {% else %}\n split(\n {{ string_text }},\n {{ delimiter_text }}\n )[safe_offset(\n length({{ string_text }}) \n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 1\n )]\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.976015}, "macro.dbt_utils.date_trunc": {"unique_id": "macro.dbt_utils.date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt_utils') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9765089}, "macro.dbt_utils.default__date_trunc": {"unique_id": "macro.dbt_utils.default__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.976634}, "macro.dbt_utils.bigquery__date_trunc": {"unique_id": "macro.dbt_utils.bigquery__date_trunc", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/date_trunc.sql", "original_file_path": "macros/cross_db_utils/date_trunc.sql", "name": "bigquery__date_trunc", "macro_sql": "{% macro bigquery__date_trunc(datepart, date) -%}\n timestamp_trunc(\n cast({{date}} as timestamp),\n {{datepart}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.976761}, "macro.dbt_utils.array_construct": {"unique_id": "macro.dbt_utils.array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs = [], data_type = api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt_utils')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.977334}, "macro.dbt_utils.default__array_construct": {"unique_id": "macro.dbt_utils.default__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9775748}, "macro.dbt_utils.snowflake__array_construct": {"unique_id": "macro.dbt_utils.snowflake__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "snowflake__array_construct", "macro_sql": "{% macro snowflake__array_construct(inputs, data_type) -%}\n array_construct( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.977717}, "macro.dbt_utils.redshift__array_construct": {"unique_id": "macro.dbt_utils.redshift__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "redshift__array_construct", "macro_sql": "{% macro redshift__array_construct(inputs, data_type) -%}\n array( {{ inputs|join(' , ') }} )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.977851}, "macro.dbt_utils.bigquery__array_construct": {"unique_id": "macro.dbt_utils.bigquery__array_construct", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_construct.sql", "original_file_path": "macros/cross_db_utils/array_construct.sql", "name": "bigquery__array_construct", "macro_sql": "{% macro bigquery__array_construct(inputs, data_type) -%}\n [ {{ inputs|join(' , ') }} ]\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.977982}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/_is_ephemeral.sql", "original_file_path": "macros/cross_db_utils/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9790232}, "macro.dbt_utils.array_append": {"unique_id": "macro.dbt_utils.array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt_utils')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9795089}, "macro.dbt_utils.default__array_append": {"unique_id": "macro.dbt_utils.default__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9796429}, "macro.dbt_utils.bigquery__array_append": {"unique_id": "macro.dbt_utils.bigquery__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "bigquery__array_append", "macro_sql": "{% macro bigquery__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.97983}, "macro.dbt_utils.redshift__array_append": {"unique_id": "macro.dbt_utils.redshift__array_append", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/array_append.sql", "original_file_path": "macros/cross_db_utils/array_append.sql", "name": "redshift__array_append", "macro_sql": "{% macro redshift__array_append(array, new_element) -%}\n {{ dbt_utils.array_concat(array, dbt_utils.array_construct([new_element])) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.array_concat", "macro.dbt_utils.array_construct"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.980009}, "macro.dbt_utils.get_period_boundaries": {"unique_id": "macro.dbt_utils.get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_boundaries", "macro_sql": "{% macro get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n {{ return(adapter.dispatch('get_period_boundaries', 'dbt_utils')(target_schema, target_table, timestamp_field, start_date, stop_date, period)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_boundaries"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9856472}, "macro.dbt_utils.default__get_period_boundaries": {"unique_id": "macro.dbt_utils.default__get_period_boundaries", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_boundaries", "macro_sql": "{% macro default__get_period_boundaries(target_schema, target_table, timestamp_field, start_date, stop_date, period) -%}\n\n {% call statement('period_boundaries', fetch_result=True) -%}\n with data as (\n select\n coalesce(max(\"{{timestamp_field}}\"), '{{start_date}}')::timestamp as start_timestamp,\n coalesce(\n {{dbt_utils.dateadd('millisecond',\n -1,\n \"nullif('\" ~ stop_date ~ \"','')::timestamp\")}},\n {{dbt_utils.current_timestamp()}}\n ) as stop_timestamp\n from \"{{target_schema}}\".\"{{target_table}}\"\n )\n\n select\n start_timestamp,\n stop_timestamp,\n {{dbt_utils.datediff('start_timestamp',\n 'stop_timestamp',\n period)}} + 1 as num_periods\n from data\n {%- endcall %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.98619}, "macro.dbt_utils.get_period_sql": {"unique_id": "macro.dbt_utils.get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "get_period_sql", "macro_sql": "{% macro get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n {{ return(adapter.dispatch('get_period_sql', 'dbt_utils')(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_period_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.986537}, "macro.dbt_utils.default__get_period_sql": {"unique_id": "macro.dbt_utils.default__get_period_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "default__get_period_sql", "macro_sql": "{% macro default__get_period_sql(target_cols_csv, sql, timestamp_field, period, start_timestamp, stop_timestamp, offset) -%}\n\n {%- set period_filter -%}\n (\"{{timestamp_field}}\" > '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' and\n \"{{timestamp_field}}\" <= '{{start_timestamp}}'::timestamp + interval '{{offset}} {{period}}' + interval '1 {{period}}' and\n \"{{timestamp_field}}\" < '{{stop_timestamp}}'::timestamp)\n {%- endset -%}\n\n {%- set filtered_sql = sql | replace(\"__PERIOD_FILTER__\", period_filter) -%}\n\n select\n {{target_cols_csv}}\n from (\n {{filtered_sql}}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.987069}, "macro.dbt_utils.materialization_insert_by_period_default": {"unique_id": "macro.dbt_utils.materialization_insert_by_period_default", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/materializations/insert_by_period_materialization.sql", "original_file_path": "macros/materializations/insert_by_period_materialization.sql", "name": "materialization_insert_by_period_default", "macro_sql": "{% materialization insert_by_period, default -%}\n {%- set timestamp_field = config.require('timestamp_field') -%}\n {%- set start_date = config.require('start_date') -%}\n {%- set stop_date = config.get('stop_date') or '' -%}\n {%- set period = config.get('period') or 'week' -%}\n\n {%- if sql.find('__PERIOD_FILTER__') == -1 -%}\n {%- set error_message -%}\n Model '{{ model.unique_id }}' does not include the required string '__PERIOD_FILTER__' in its sql\n {%- endset -%}\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n\n {%- set identifier = model['name'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set target_relation = api.Relation.create(identifier=identifier, schema=schema, type='table') -%}\n\n {%- set non_destructive_mode = (flags.NON_DESTRUCTIVE == True) -%}\n {%- set full_refresh_mode = (flags.FULL_REFRESH == True) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_not_as_table = (old_relation is not none and not old_relation.is_table) -%}\n\n {%- set should_truncate = (non_destructive_mode and full_refresh_mode and exists_as_table) -%}\n {%- set should_drop = (not should_truncate and (full_refresh_mode or exists_not_as_table)) -%}\n {%- set force_create = (flags.FULL_REFRESH and not flags.NON_DESTRUCTIVE) -%}\n\n -- setup\n {% if old_relation is none -%}\n -- noop\n {%- elif should_truncate -%}\n {{adapter.truncate_relation(old_relation)}}\n {%- elif should_drop -%}\n {{adapter.drop_relation(old_relation)}}\n {%- set old_relation = none -%}\n {%- endif %}\n\n {{run_hooks(pre_hooks, inside_transaction=False)}}\n\n -- `begin` happens here, so `commit` after it to finish the transaction\n {{run_hooks(pre_hooks, inside_transaction=True)}}\n {% call statement() -%}\n begin; -- make extra sure we've closed out the transaction\n commit;\n {%- endcall %}\n\n -- build model\n {% if force_create or old_relation is none -%}\n {# Create an empty target table -#}\n {% call statement('main') -%}\n {%- set empty_sql = sql | replace(\"__PERIOD_FILTER__\", 'false') -%}\n {{create_table_as(False, target_relation, empty_sql)}}\n {%- endcall %}\n {%- endif %}\n\n {% set _ = dbt_utils.get_period_boundaries(schema,\n identifier,\n timestamp_field,\n start_date,\n stop_date,\n period) %}\n {%- set start_timestamp = load_result('period_boundaries')['data'][0][0] | string -%}\n {%- set stop_timestamp = load_result('period_boundaries')['data'][0][1] | string -%}\n {%- set num_periods = load_result('period_boundaries')['data'][0][2] | int -%}\n\n {% set target_columns = adapter.get_columns_in_relation(target_relation) %}\n {%- set target_cols_csv = target_columns | map(attribute='quoted') | join(', ') -%}\n {%- set loop_vars = {'sum_rows_inserted': 0} -%}\n\n -- commit each period as a separate transaction\n {% for i in range(num_periods) -%}\n {%- set msg = \"Running for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- set tmp_identifier = model['name'] ~ '__dbt_incremental_period' ~ i ~ '_tmp' -%}\n {%- set tmp_relation = api.Relation.create(identifier=tmp_identifier,\n schema=schema, type='table') -%}\n {% call statement() -%}\n {% set tmp_table_sql = dbt_utils.get_period_sql(target_cols_csv,\n sql,\n timestamp_field,\n period,\n start_timestamp,\n stop_timestamp,\n i) %}\n {{dbt.create_table_as(True, tmp_relation, tmp_table_sql)}}\n {%- endcall %}\n\n {{adapter.expand_target_column_types(from_relation=tmp_relation,\n to_relation=target_relation)}}\n {%- set name = 'main-' ~ i -%}\n {% call statement(name, fetch_result=True) -%}\n insert into {{target_relation}} ({{target_cols_csv}})\n (\n select\n {{target_cols_csv}}\n from {{tmp_relation.include(schema=False)}}\n );\n {%- endcall %}\n {% set result = load_result('main-' ~ i) %}\n {% if 'response' in result.keys() %} {# added in v0.19.0 #}\n {% set rows_inserted = result['response']['rows_affected'] %}\n {% else %} {# older versions #}\n {% set rows_inserted = result['status'].split(\" \")[2] | int %}\n {% endif %}\n \n {%- set sum_rows_inserted = loop_vars['sum_rows_inserted'] + rows_inserted -%}\n {%- if loop_vars.update({'sum_rows_inserted': sum_rows_inserted}) %} {% endif -%}\n\n {%- set msg = \"Ran for \" ~ period ~ \" \" ~ (i + 1) ~ \" of \" ~ (num_periods) ~ \"; \" ~ rows_inserted ~ \" records inserted\" -%}\n {{ dbt_utils.log_info(msg) }}\n\n {%- endfor %}\n\n {% call statement() -%}\n begin;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=True)}}\n\n {% call statement() -%}\n commit;\n {%- endcall %}\n\n {{run_hooks(post_hooks, inside_transaction=False)}}\n\n {%- set status_string = \"INSERT \" ~ loop_vars['sum_rows_inserted'] -%}\n\n {% call noop_statement('main', status_string) -%}\n -- no-op\n {%- endcall %}\n\n -- Return the relations created in this materialization\n {{ return({'relations': [target_relation]}) }} \n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt_utils.get_period_boundaries", "macro.dbt_utils.log_info", "macro.dbt_utils.get_period_sql", "macro.dbt.noop_statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.992377}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.992933}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt_utils.split_part(\n dbt_utils.split_part(\n dbt_utils.replace(\n dbt_utils.replace(\n dbt_utils.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt_utils.safe_cast(\n parsed,\n dbt_utils.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part", "macro.dbt_utils.replace", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9934149}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.993956}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url = \n dbt_utils.replace(\n dbt_utils.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{dbt_utils.position(\"'/'\", stripped_url)}}, 0),\n {{dbt_utils.position(\"'?'\", stripped_url)}} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt_utils.split_part(\n dbt_utils.right(\n stripped_url, \n dbt_utils.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ), \n \"'?'\", 1\n )\n -%}\n\n {{ dbt_utils.safe_cast(\n parsed_path,\n dbt_utils.type_string()\n )}}\n \n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.replace", "macro.dbt_utils.position", "macro.dbt_utils.split_part", "macro.dbt_utils.right", "macro.dbt_utils.length", "macro.dbt_utils.safe_cast", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9946618}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.995072}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt_utils.split_part(dbt_utils.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.split_part"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9954078}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9960299}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model) %}\n\n{{ config(fail_calc = 'coalesce(row_count_delta, 0)') }}\n\nwith a as (\n\n select count(*) as count_our_model from {{ model }}\n\n),\nb as (\n\n select count(*) as count_comparison_model from {{ compare_model }}\n\n),\ncounts as (\n\n select\n count_our_model,\n count_comparison_model\n from a\n cross join b\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9962618}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9967418}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'coalesce(diff_count, 0)') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\nwith a as (\n\n select count(*) as count_a from {{ model }}\n\n),\nb as (\n\n select count(*) as count_b from {{ compare_model }}\n\n),\nfinal as (\n\n select\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n from a\n cross join b\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9970639}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.997958}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.998376}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9990022}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval) %}\n\n{% set threshold = dbt_utils.dateadd(datepart, interval * -1, dbt_utils.current_timestamp()) %}\n\nwith recency as (\n\n select max({{field}}) as most_recent\n from {{ model }}\n\n)\n\nselect\n\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.999358}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9997828}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name) %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876148.9999669}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.00067}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.001277}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.001916}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.002301}, "macro.dbt_utils.test_unique_where": {"unique_id": "macro.dbt_utils.test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "test_unique_where", "macro_sql": "{% test unique_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.unique_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `unique` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_unique_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.002793}, "macro.dbt_utils.default__test_unique_where": {"unique_id": "macro.dbt_utils.default__test_unique_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_unique_where.sql", "original_file_path": "macros/generic_tests/test_unique_where.sql", "name": "default__test_unique_where", "macro_sql": "{% macro default__test_unique_where(model, column_name) %}\r\n {{ return(test_unique(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_unique"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.002971}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.003377}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name) %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.003561}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0042398}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.005079}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0059452}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt_utils.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt_utils.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.006337}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.007078}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n *\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.00739}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.007987}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\nwith validation as (\n select\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n),\nvalidation_errors as (\n select\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.008518}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0092459}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\nwith windowed as (\n\n select\n {{ column_name }},\n lag({{ column_name }}) over (\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt_utils.type_timestamp() }})= cast({{ dbt_utils.dateadd(datepart, interval, previous_column_name) }} as {{ dbt_utils.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.009981}, "macro.dbt_utils.test_not_null_where": {"unique_id": "macro.dbt_utils.test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "test_not_null_where", "macro_sql": "{% test not_null_where(model, column_name) %}\r\n {%- set deprecation_warning = '\r\n Warning: `dbt_utils.not_null_where` is no longer supported.\r\n Starting in dbt v0.20.0, the built-in `not_null` test supports a `where` config.\r\n ' -%}\r\n {%- do exceptions.warn(deprecation_warning) -%}\r\n {{ return(adapter.dispatch('test_not_null_where', 'dbt_utils')(model, column_name)) }}\r\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_where"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0104802}, "macro.dbt_utils.default__test_not_null_where": {"unique_id": "macro.dbt_utils.default__test_not_null_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/test_not_null_where.sql", "original_file_path": "macros/generic_tests/test_not_null_where.sql", "name": "default__test_not_null_where", "macro_sql": "{% macro default__test_not_null_where(model, column_name) %}\r\n {{ return(test_not_null(model, column_name)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.010653}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.011484}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt_utils.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.except"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0124018}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.015681}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions nore cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.01719}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.017665}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.017838}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.018187}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0183969}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.018759}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.018938}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.019475}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.020205}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{dbt_utils.datediff(start_date, end_date, datepart)}}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.020802}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.021033}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt_utils.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0213969}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.021782}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.022215}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0229208}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.02378}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.02474}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.025203}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.025409}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.025921}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.026792}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.027654}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0281658}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.028456}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.029202}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('*') }}\n {% endif %}\n\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0301912}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name, table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0319092}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value', table=none) -%}\n\n {% if table %}\n {%- set error_message = '\n Warning: the `unpivot` macro no longer accepts a `table` parameter. \\\n This parameter will be deprecated in a future release of dbt-utils. Use the `relation` parameter instead. \\\n The {}.{} model triggered this warning. \\\n '.format(model.package_name, model.name) -%}\n {%- do exceptions.warn(error_message) -%}\n {% endif %}\n\n {% if relation and table %}\n {{ exceptions.raise_compiler_error(\"Error: both the `relation` and `table` parameters were provided to `unpivot` macro. Choose one only (we recommend `relation`).\") }}\n {% elif not relation and table %}\n {% set relation=table %}\n {% elif not relation and not table %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt_utils.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt_utils.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.type_string", "macro.dbt_utils.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.034}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0365949}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.039597}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.040004}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0402508}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by=none, relation_alias=none) -%}\n\n {%- set error_message_group_by -%}\nWarning: the `group_by` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nUse `partition_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if kwargs.get('group_by') %}\n {%- do exceptions.warn(error_message_group_by) -%}\n {%- endif -%}\n\n {%- set error_message_order_by -%}\nWarning: `order_by` as an optional parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nSupply a non-null value for `order_by` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if not order_by %}\n {%- do exceptions.warn(error_message_order_by) -%}\n {%- endif -%}\n\n {%- set error_message_alias -%}\nWarning: the `relation_alias` parameter of the `deduplicate` macro is no longer supported and will be deprecated in a future release of dbt-utils.\nIf you were using `relation_alias` to point to a CTE previously then you can now pass the alias directly to `relation` instead.\nThe {{ model.package_name }}.{{ model.name }} model triggered this warning.\n {%- endset -%}\n\n {% if relation_alias %}\n {%- do exceptions.warn(error_message_alias) -%}\n {%- endif -%}\n\n {% set partition_by = partition_by or kwargs.get('group_by') %}\n {% set relation = relation_alias or relation %}\n {% set order_by = order_by or \"'1'\" %}\n\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.042732}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.042965}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.043176}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0433679}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.043542}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.043712}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.044383}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- if varargs|length >= 1 or field_list is string %}\n\n{%- set error_message = '\nWarning: the `surrogate_key` macro now takes a single list argument instead of \\\nmultiple string arguments. Support for multiple string arguments will be \\\ndeprecated in a future release of dbt-utils. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{# first argument is not included in varargs, so add first element to field_list_xf #}\n{%- set field_list_xf = [field_list] -%}\n\n{%- for field in varargs %}\n{%- set _ = field_list_xf.append(field) -%}\n{%- endfor -%}\n\n{%- else -%}\n\n{# if using list, just set field_list_xf as field_list #}\n{%- set field_list_xf = field_list -%}\n\n{%- endif -%}\n\n\n{%- set fields = [] -%}\n\n{%- for field in field_list_xf -%}\n\n {%- set _ = fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt_utils.type_string() ~ \"), '')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- set _ = fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{dbt_utils.hash(dbt_utils.concat(fields))}}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.hash", "macro.dbt_utils.concat"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.045417}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add() -%}\n {# needed for safe_add to allow for non-keyword arguments see SO post #}\n {# https://stackoverflow.com/questions/13944751/args-kwargs-in-jinja2-macros #}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(*varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0459561}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add() -%}\n\n{% set fields = [] %}\n\n{%- for field in varargs -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.046251}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.046655}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.046989}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0484962}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as \"table_schema\",\n table_name as \"table_name\",\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.048773}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.049578}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0500932}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.05129}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.052813}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0539572}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt_utils.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.05485}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.05542}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.056145}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0566158}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.057199}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.057722}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0578089}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as \"table_type\"\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.057889}, "macro.dbt_utils.bigquery__get_table_types_sql": {"unique_id": "macro.dbt_utils.bigquery__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "bigquery__get_table_types_sql", "macro_sql": "{% macro bigquery__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as `table_type`\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.057971}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.059009}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.059288}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0608299}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.061725}, "macro.netsuite_source.get_expense_accounts_columns": {"unique_id": "macro.netsuite_source.get_expense_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_expense_accounts_columns.sql", "original_file_path": "macros/get_expense_accounts_columns.sql", "name": "get_expense_accounts_columns", "macro_sql": "{% macro get_expense_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"current_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"desription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_account_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_including_child_subs\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_summary\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.06371}, "macro.netsuite_source.get_locationmainaddress_columns": {"unique_id": "macro.netsuite_source.get_locationmainaddress_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locationmainaddress_columns.sql", "original_file_path": "macros/get_locationmainaddress_columns.sql", "name": "get_locationmainaddress_columns", "macro_sql": "{% macro get_locationmainaddress_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"addr1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addr2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addr3\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addressee\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addrphone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addrtext\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"attention\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"dropdownstate\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"nkey\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"override\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recordowner\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0659}, "macro.netsuite_source.get_accounts_columns": {"unique_id": "macro.netsuite_source.get_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "name": "get_accounts_columns", "macro_sql": "{% macro get_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"accountnumber\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"general_rate_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_balancesheet\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_leftside\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"type_name\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_float", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.067586}, "macro.netsuite_source.get_netsuite2_accounts_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "name": "get_netsuite2_accounts_columns", "macro_sql": "{% macro get_netsuite2_accounts_columns() %}\n\n{% set columns = [\n\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"acctnumber\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"accttype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"deferralacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"cashflowrate\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"generalrate\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"class\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"department\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"includechildren\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"issummary\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0694919}, "macro.netsuite_source.get_classes_columns": {"unique_id": "macro.netsuite_source.get_classes_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "name": "get_classes_columns", "macro_sql": "{% macro get_classes_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_float", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.0703511}, "macro.netsuite_source.get_netsuite2_classes_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_classes_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "name": "get_netsuite2_classes_columns", "macro_sql": "{% macro get_netsuite2_classes_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.071157}, "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns": {"unique_id": "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "original_file_path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "name": "get_accountingperiodfiscalcalendars_columns", "macro_sql": "{% macro get_accountingperiodfiscalcalendars_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accountingperiod\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"fiscalcalendar\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.072096}, "macro.netsuite_source.get_accountingbooksubsidiaries_columns": {"unique_id": "macro.netsuite_source.get_accountingbooksubsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accountingbooksubsidiaries_columns.sql", "original_file_path": "macros/get_accountingbooksubsidiaries_columns.sql", "name": "get_accountingbooksubsidiaries_columns", "macro_sql": "{% macro get_accountingbooksubsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accountingbook\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subsidiary\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.073011}, "macro.netsuite_source.get_items_columns": {"unique_id": "macro.netsuite_source.get_items_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "name": "get_items_columns", "macro_sql": "{% macro get_items_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"allow_drop_ship\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"alt_demand_source_item_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"asset_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"atp_lead_time\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"atp_method\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"available_to_partners\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"avatax_taxcode\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"averagecost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"backward_consumption_days\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"build_sub_assemblies\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"code_of_supply_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"commodity_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"consumption_unit_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cost_0\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"cost_category\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cost_estimate_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"costing_method\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country_of_manufacture\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"create_plan_on_event_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"current_on_order_count\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"custreturn_variance_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_of_last_transaction\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"default_return_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"deferred_expense_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"deferred_revenue_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"demand_source\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"demand_time_fence\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"deposit\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"displayname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"distribution_category\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"distribution_network\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"dropship_expense_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"effective_bom_control_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"featureddescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"featureditem\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fixed_lot_size\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"forward_consumption_days\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"fraud_risk\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fx_adjustment_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"gain_loss_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"handling_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"hazmat\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"hazmat_hazard_class\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"hazmat_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"hazmat_item_units\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"hazmat_item_units_qty\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"hazmat_packing_group\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"hazmat_shipping_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"include_child_subsidiaries\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"interco_expense_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"interco_income_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"invt_count_classification\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"invt_count_interval\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"is_cont_rev_handling\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_enforce_min_qty_internally\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_hold_rev_rec\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_moss\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_phantom\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_special_order_item\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isonline\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"istaxable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_defined_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_image\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_revenue_category\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"item_term_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"last_cogs_correction\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_invt_count_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_purchase_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"location_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"lot_numbered_item\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lot_sizing_method\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"manufacturer\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"manufacturing_charge_item\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"match_bill_to_receipt\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"matrix_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"maximum_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"minimum_quantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"mpn\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"nature_of_transaction_codes_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"next_invt_count_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ng_asset_type_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"ns_lead_time\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"offersupport\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"onspecial\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"overhead_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"periodic_lot_size_days\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"periodic_lot_size_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pref_purchase_tax_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"pref_sale_tax_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"pref_stock_level\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"prices_include_tax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"pricing_group_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"print_sub_items\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"prod_price_var_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"prod_qty_var_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"prompt_payment_discount_item\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchase_price_var_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchase_unit_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchasedescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"quantityavailable\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"quantitybackordered\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"quantityonhand\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"reorder_multiple\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"reorderpoint\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"replenishment_method\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"resalable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"reschedule_in_days\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"reschedule_out_days\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"rev_rec_forecast_rule_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"rev_rec_rule_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"revenue_allocation_group\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"round_up_as_component\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"safety_stock_days\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"safety_stock_level\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"sale_unit_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"salesdescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"salesforce_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"salesprice\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"scrap_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"serialized_item\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shippingcost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"special_work_order_item\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"specialsdescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"stock_unit_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"storedescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"storedetaileddescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"storedisplayname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"supplementary_unit__abberviat\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"supplementary_unit_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"supply_time_fence\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"supply_type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_item_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"totalvalue\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transferprice\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"type_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type_of_goods_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"udf1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"udf2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"un_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unbuild_variance_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"units_type_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"upc_code\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"use_component_yield\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"vendorname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendreturn_variance_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"vsoe_deferral\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vsoe_delivered\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vsoe_discount\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vsoe_price\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"weight\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"weight_in_user_defined_unit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"weight_unit_index\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"wip_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"wip_cost_variance_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"work_order_lead_time\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.115734}, "macro.netsuite_source.get_netsuite2_items_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_items_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "name": "get_netsuite2_items_columns", "macro_sql": "{% macro get_netsuite2_items_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"alternatedemandsourceitem\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"amortizationperiod\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"amortizationtemplate\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"assetaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"atpmethod\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"autoexpandkitforrevenuemgmt\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"averagecost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"backwardconsumptiondays\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"billexchratevarianceacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"billingschedule\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"billpricevarianceacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"billqtyvarianceacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"buildentireassembly\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"buildtime\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"class\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"consumptionunit\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"copydescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"costestimate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"costestimatetype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"costingmethod\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"costingmethoddisplay\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"countryofmanufacture\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"createddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"createexpenseplanson\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"createjob\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"createrevenueplanson\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"deferralaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deferredrevenueaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"deferrevrec\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"demandmodifier\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"demandsource\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"demandtimefence\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"department\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"description\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"directrevenueposting\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"displayname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"dropshipexpenseaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"enforceminqtyinternally\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"excludefromsitemap\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expenseaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"expenseamortizationrule\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fixedlotsize\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"forwardconsumptiondays\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"froogleproductfeed\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fxcost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"gainlossaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"generateaccruals\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"handlingcost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"includechildren\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"incomeaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"intercodefrevaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"intercoexpenseaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"intercoincomeaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isdropshipitem\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isfulfillable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"islotitem\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isonline\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isphantom\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isserialitem\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isspecialorderitem\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isspecialworkorderitem\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"itemid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"itemrevenuecategory\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"itemtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"lastpurchaseprice\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"leadtime\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"manufacturer\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"matchbilltoreceipt\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"matrixitemnametemplate\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"matrixtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"maximumquantity\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"minimumquantity\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"mpn\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"nextagcategory\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"nextagproductfeed\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"overallquantitypricingtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"periodiclotsizedays\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"periodiclotsizetype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"preferredlocation\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"pricinggroup\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"printitems\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"prodpricevarianceacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"prodqtyvarianceacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"projectexpensetype\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"projecttemplate\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"purchasedescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchasepricevarianceacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"purchaseunit\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"quantitypricingschedule\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"receiptamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"relateditemsdescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"rescheduleindays\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"rescheduleoutdays\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"residual\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"revenueallocationgroup\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"revenuerecognitionrule\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"revrecforecastrule\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"revreclassfxaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"roundupascomponent\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"safetystocklevel\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"saleunit\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"scrapacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"searchkeywords\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"seasonaldemand\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipindividually\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shippackage\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"shippingcost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"shoppingdotcomcategory\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shoppingproductfeed\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shopzillacategoryid\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"shopzillaproductfeed\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"sitemappriority\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"stockdescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"stockunit\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"storedescription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"storedisplayimage\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"storedisplayname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"storedisplaythumbnail\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"supplylotsizingmethod\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"supplyreplenishmentmethod\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"supplytimefence\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"supplytype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"totalquantityonhand\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"totalvalue\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transferprice\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"unbuildvarianceaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"unitstype\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"upccode\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"usebins\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"usemarginalrates\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendorname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendreturnvarianceaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"vsoedelivered\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vsoepermitdiscount\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vsoesopgroup\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"weightunit\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"weightunits\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"wipacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"wipvarianceacct\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"yahooproductfeed\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.129456}, "macro.netsuite_source.get_transaction_lines_columns": {"unique_id": "macro.netsuite_source.get_transaction_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "name": "get_transaction_lines_columns", "macro_sql": "{% macro get_transaction_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"company_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"item_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"location_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"non_posting_line\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subsidiary_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_line_id\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_float", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.1317172}, "macro.netsuite_source.get_netsuite2_transaction_lines_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transaction_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "name": "get_netsuite2_transaction_lines_columns", "macro_sql": "{% macro get_netsuite2_transaction_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"transaction\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"linesequencenumber\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"entity\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"item\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"class\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"location\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"department\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isclosed\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isbillable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"iscogs\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"cleared\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"commitmentfirm\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mainline\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxline\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.133674}, "macro.netsuite_source.get_vendors_columns": {"unique_id": "macro.netsuite_source.get_vendors_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "name": "get_vendors_columns", "macro_sql": "{% macro get_vendors_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_owner\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"accountnumber\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"accounts_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"annual_revenue\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"auto_renewals\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"auto_send_statements\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billaddress\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billing_class_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"create_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"creditlimit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"dic\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_bill_payment_vouchers\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_cash_sales\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_credit_notes\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_invoices\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_item_fulfilments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_purchase_orders\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_quotes\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_sales_orders\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email_statements\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exemption_certificate_no\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"fax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"home_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"hris_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"ico\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id_number_in_the_country_of_r\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id_type_in_the_country_of_r_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"in_transit_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"incoterm\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"industry_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"invoice_via_procurement_syste\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"invoicing_details\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is1099eligible\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_partner\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_person\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isemailhtml\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isemailpdf\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"labor_cost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"last_sales_activity\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"line1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"line3\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"loginaccess\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lsa_link\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lsa_link_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"msa_effective_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"no__of_employees\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"openbalance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"openbalance_foreign\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"payables_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"payment_terms_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"prepayment_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"printoncheckas\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchases_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"receiptamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"represents_subsidiary_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"restrict_access_to_expensify\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"salesforce_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipaddress\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subsidiary\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tax_contact_first_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_contact_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tax_contact_last_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_contact_middle_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"tax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"taxidnum\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"time_approver_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transactions_need_approval\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"uen\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unbilled_orders\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"unbilled_orders_foreign\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vat_registration_no\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"vendor_type_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"zipcode\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.150495}, "macro.netsuite_source.get_netsuite2_vendors_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_vendors_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "name": "get_netsuite2_vendors_columns", "macro_sql": "{% macro get_netsuite2_vendors_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accountnumber\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"altemail\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"altphone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"balanceprimary\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"billingclass\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"category\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"contactlist\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"creditlimit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"defaultbankaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"defaultvendorpaymentaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"emailpreference\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"emailtransactions\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"entityid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"expenseaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"faxtransactions\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"giveaccess\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"homephone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"incoterm\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isautogeneratedrepresentingentity\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isjobresourcevend\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isperson\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"laborcost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"lastname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"legalname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middlename\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobilephone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"payablesaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"printoncheckas\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"printtransactions\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"representingsubsidiary\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"rolesforsearch\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"salutation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subsidiaryedition\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"terms\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unbilledorders\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"unbilledordersprimary\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"workcalendar\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.1564002}, "macro.netsuite_source.get_transactionaccountingline_columns": {"unique_id": "macro.netsuite_source.get_transactionaccountingline_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactionaccountingline_columns.sql", "original_file_path": "macros/get_transactionaccountingline_columns.sql", "name": "get_transactionaccountingline_columns", "macro_sql": "{% macro get_transactionaccountingline_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"accountingbook\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"amountlinked\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"amountpaid\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"amountunpaid\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"debit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"exchangerate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"netamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"overheadparentitem\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"paymentamountunused\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"paymentamountused\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"posting\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"transactionline\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.158858}, "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_accounting_lines_columns.sql", "original_file_path": "macros/get_transaction_accounting_lines_columns.sql", "name": "get_netsuite2_transaction_accounting_lines_columns", "macro_sql": "{% macro get_netsuite2_transaction_accounting_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"accountingbook\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"amountpaid\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"amountunpaid\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"credit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"debit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"exchangerate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"netamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"paymentamountunused\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"paymentamountused\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"posting\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"transaction\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"transactionline\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_float", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.160803}, "macro.netsuite_source.get_vendorcategory_columns": {"unique_id": "macro.netsuite_source.get_vendorcategory_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendorcategory_columns.sql", "original_file_path": "macros/get_vendorcategory_columns.sql", "name": "get_vendorcategory_columns", "macro_sql": "{% macro get_vendorcategory_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"istaxagency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.161928}, "macro.netsuite_source.get_accounttype_columns": {"unique_id": "macro.netsuite_source.get_accounttype_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounttype_columns.sql", "original_file_path": "macros/get_accounttype_columns.sql", "name": "get_accounttype_columns", "macro_sql": "{% macro get_accounttype_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"balancesheet\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"defaultcashflowratetype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"defaultgeneralratetype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"eliminationalgo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"includeinrevaldefault\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"internalid\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"left\", \"datatype\": dbt_utils.type_string(), \"quote\": True},\n {\"name\": \"longname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"seqnum\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"usercanchangerevaloption\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.1635892}, "macro.netsuite_source.get_accounting_books_columns": {"unique_id": "macro.netsuite_source.get_accounting_books_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "name": "get_accounting_books_columns", "macro_sql": "{% macro get_accounting_books_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accounting_book_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"accounting_book_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"accounting_book_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"base_book_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_created\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"effective_period_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"form_template_component_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"form_template_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"is_adjustment_only\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_arrangement_level_reclass\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_consolidated\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_contingent_revenue_handling\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_include_child_subsidiaries\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_primary\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_two_step_revenue_allocation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unbilled_receivable_grouping\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.166317}, "macro.netsuite_source.get_netsuite2_accounting_books_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounting_books_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "name": "get_netsuite2_accounting_books_columns", "macro_sql": "{% macro get_netsuite2_accounting_books_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"basebook\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"contingentrevenuehandling\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"effectiveperiod\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isadjustmentonly\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isconsolidated\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isprimary\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subsidiariesstring\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"twosteprevenueallocation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"unbilledreceivablegrouping\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.167837}, "macro.netsuite_source.get_departments_columns": {"unique_id": "macro.netsuite_source.get_departments_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "name": "get_departments_columns", "macro_sql": "{% macro get_departments_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"department_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_float", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.1687639}, "macro.netsuite_source.get_netsuite2_departments_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_departments_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "name": "get_netsuite2_departments_columns", "macro_sql": "{% macro get_netsuite2_departments_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"fullname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.1696498}, "macro.netsuite_source.get_transactions_columns": {"unique_id": "macro.netsuite_source.get_transactions_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "name": "get_transactions_columns", "macro_sql": "{% macro get_transactions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"due_date\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"is_advanced_intercompany\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_intercompany\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"trandate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"transaction_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"transaction_type\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.171354}, "macro.netsuite_source.get_netsuite2_transactions_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transactions_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "name": "get_netsuite2_transactions_columns", "macro_sql": "{% macro get_netsuite2_transactions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"transactionnumber\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"trandate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"createddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"duedate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"closedate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"entity\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"postingperiod\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"posting\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"intercoadj\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isreversal\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.173008}, "macro.netsuite_source.get_entity_columns": {"unique_id": "macro.netsuite_source.get_entity_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_entity_columns.sql", "original_file_path": "macros/get_entity_columns.sql", "name": "get_entity_columns", "macro_sql": "{% macro get_entity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"altemail\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"altphone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"employee\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"entityid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"genericresource\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"homephone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isperson\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"laborcost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"lastname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"middlename\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mobilephone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"othername\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"partner\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"project\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"projecttemplate\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"salutation\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"title\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"toplevelparent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"type\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.177431}, "macro.netsuite_source.get_accounting_periods_columns": {"unique_id": "macro.netsuite_source.get_accounting_periods_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "name": "get_accounting_periods_columns", "macro_sql": "{% macro get_accounting_periods_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"closed\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"closed_accounts_payable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"closed_accounts_receivable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"closed_all\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"closed_on\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"closed_payroll\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"ending\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"fiscal_calendar_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"fivetran_index\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_adjustment\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"locked_accounts_payable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"locked_accounts_receivable\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"locked_all\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"locked_payroll\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"quarter\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"starting\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"year_0\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"year_id\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.181061}, "macro.netsuite_source.get_netsuite2_accounting_periods_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounting_periods_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "name": "get_netsuite2_accounting_periods_columns", "macro_sql": "{% macro get_netsuite2_accounting_periods_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"alllocked\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"allownonglchanges\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"aplocked\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"arlocked\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"closed\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"closedondate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"enddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isadjust\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isposting\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isquarter\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isyear\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"periodname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"startdate\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.182871}, "macro.netsuite_source.get_consolidated_exchange_rates_columns": {"unique_id": "macro.netsuite_source.get_consolidated_exchange_rates_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "name": "get_consolidated_exchange_rates_columns", "macro_sql": "{% macro get_consolidated_exchange_rates_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accounting_book_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"average_budget_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"average_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"consolidated_exchange_rate_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"current_budget_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"current_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"from_subsidiary_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"historical_budget_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"historical_rate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"to_subsidiary_id\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.1850948}, "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "name": "get_netsuite2_consolidated_exchange_rates_columns", "macro_sql": "{% macro get_netsuite2_consolidated_exchange_rates_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"averagerate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"currentrate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"fromcurrency\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"fromsubsidiary\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"historicalrate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"postingperiod\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"tocurrency\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"tosubsidiary\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_float", "macro.dbt_utils.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.18634}, "macro.netsuite_source.get_income_accounts_columns": {"unique_id": "macro.netsuite_source.get_income_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_income_accounts_columns.sql", "original_file_path": "macros/get_income_accounts_columns.sql", "name": "get_income_accounts_columns", "macro_sql": "{% macro get_income_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"current_balance\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"desription\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"income_account_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"is_including_child_subs\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_summary\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.188501}, "macro.netsuite_source.get_customers_columns": {"unique_id": "macro.netsuite_source.get_customers_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "name": "get_customers_columns", "macro_sql": "{% macro get_customers_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_first_order\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"zipcode\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.1902668}, "macro.netsuite_source.get_netsuite2_customers_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_customers_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "name": "get_netsuite2_customers_columns", "macro_sql": "{% macro get_netsuite2_customers_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"entityid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"isperson\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lastname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"receivablesaccount\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"firstorderdate\", \"datatype\": dbt_utils.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.191972}, "macro.netsuite_source.get_locations_columns": {"unique_id": "macro.netsuite_source.get_locations_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "name": "get_locations_columns", "macro_sql": "{% macro get_locations_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.193326}, "macro.netsuite_source.get_netsuite2_locations_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_locations_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "name": "get_netsuite2_locations_columns", "macro_sql": "{% macro get_netsuite2_locations_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mainaddress\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.194346}, "macro.netsuite_source.get_entityaddress_columns": {"unique_id": "macro.netsuite_source.get_entityaddress_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_entityaddress_columns.sql", "original_file_path": "macros/get_entityaddress_columns.sql", "name": "get_entityaddress_columns", "macro_sql": "{% macro get_entityaddress_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"addr1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addr2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addr3\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addressee\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addrphone\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"addrtext\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"attention\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"dropdownstate\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"nkey\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"override\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"recordowner\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.196578}, "macro.netsuite_source.get_vendor_types_columns": {"unique_id": "macro.netsuite_source.get_vendor_types_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendor_types_columns.sql", "original_file_path": "macros/get_vendor_types_columns.sql", "name": "get_vendor_types_columns", "macro_sql": "{% macro get_vendor_types_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"vendor_type_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"vendor_type_id\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.1976142}, "macro.netsuite_source.get_subsidiaries_columns": {"unique_id": "macro.netsuite_source.get_subsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "name": "get_subsidiaries_columns", "macro_sql": "{% macro get_subsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"address1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"address2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"base_currency_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"branch_id\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"brn\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"edition\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"federal_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fiscal_calendar_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_elimination\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"is_moss\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive_bool\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"moss_nexus_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"return_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"return_address1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"return_address2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"return_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"return_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"return_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"return_zipcode\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_address2\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_city\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"shipping_zipcode\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state_tax_number\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subnav__searchable_subsidiary\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"subsidiary_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"subsidiary_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"taxonomy_reference_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"tran_num_prefix\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"uen\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"url\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"zipcode\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2043169}, "macro.netsuite_source.get_netsuite2_subsidiaries_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_subsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "name": "get_netsuite2_subsidiaries_columns", "macro_sql": "{% macro get_netsuite2_subsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"email\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"mainaddress\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"country\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"state\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fiscalcalendar\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.205513}, "macro.netsuite_source.get_job_columns": {"unique_id": "macro.netsuite_source.get_job_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_job_columns.sql", "original_file_path": "macros/get_job_columns.sql", "name": "get_job_columns", "macro_sql": "{% macro get_job_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"accountnumber\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"actualtime\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"allowallresourcesfortasks\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"allowexpenses\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"allowtime\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"alternatecontact\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"billingschedule\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"calculatedenddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"calculatedenddatebaseline\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"category\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"comments\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"contactlist\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"currencyprecision\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"custentity1\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custentity4\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"custentity5\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"customer\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"enddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"entityid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"entitystatus\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"estimatedcost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedgrossprofit\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedgrossprofitpercent\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedlaborcost\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedlaborcostbaseline\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedlaborrevenue\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedrevenue\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedtime\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedtimeoverride\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"estimatedtimeoverridebaseline\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"files\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"forecastchargerunondemand\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fxrate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"includecrmtasksintotals\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isexempttime\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isproductivetime\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isutilizedtime\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"jobbillingtype\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"jobitem\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"jobprice\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"jobtype\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"lastbaselinedate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"limittimetoassignees\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"materializetime\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"percentcomplete\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"percenttimecomplete\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"primarycontact\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"projectedenddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"projectedenddatebaseline\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"projectmanager\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"startdate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"startdatebaseline\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"timeapproval\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"timeremaining\", \"datatype\": dbt_utils.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float", "macro.dbt_utils.type_int"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2142}, "macro.netsuite_source.get_currencies_columns": {"unique_id": "macro.netsuite_source.get_currencies_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "name": "get_currencies_columns", "macro_sql": "{% macro get_currencies_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currency_extid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"is_inactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"precision_0\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"symbol\", \"datatype\": dbt_utils.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.215876}, "macro.netsuite_source.get_netsuite2_currencies_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_currencies_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "name": "get_netsuite2_currencies_columns", "macro_sql": "{% macro get_netsuite2_currencies_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"currencyprecision\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"displaysymbol\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"exchangerate\", \"datatype\": dbt_utils.type_float()},\n {\"name\": \"externalid\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"fxrateupdatetimezone\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"id\", \"datatype\": dbt_utils.type_int()},\n {\"name\": \"includeinfxrateupdates\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isbasecurrency\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt_utils.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"overridecurrencyformat\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"symbol\", \"datatype\": dbt_utils.type_string()},\n {\"name\": \"symbolplacement\", \"datatype\": dbt_utils.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_timestamp", "macro.dbt_utils.type_int", "macro.dbt_utils.type_string", "macro.dbt_utils.type_float"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.21751}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.218113}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2192059}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.219393}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.219564}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.219736}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2198882}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2200582}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2206771}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.221173}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.222301}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.222563}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.222823}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.223073}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2233212}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2235992}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.223962}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.224384}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.224488}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.224589}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.224693}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.225162}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.225845}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.226581}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.227137}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.227273}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.227405}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.227541}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.227681}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.230547}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.23073}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.230891}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.231046}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt_utils.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.datediff"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.232955}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.233839}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2339818}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2342532}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.234536}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.234664}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.234784}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.234907}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2354329}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt_utils.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2360141}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.236557}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.236758}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.236974}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2372942}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt_utils.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.238163}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils.string_literal", "macro.dbt_utils.type_string"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.242112}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.242483}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2429702}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.244562}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.245107}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.245756}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.245908}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.246061}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.246227}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2463732}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2465138}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.247267}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.248248}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.248992}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2491531}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2493079}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.249463}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2496252}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt_utils.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2497962}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.250116}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2502148}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.250313}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.251076}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2523499}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n\n {% set relation=adapter.get_relation(\n database=var(database_variable, default_database),\n schema=schema,\n identifier=table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=database,\n schema=var(schema_variable, default_schema),\n identifier=table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.254187}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.255815}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2563908}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.256504}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.256604}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.2571032}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true}, "patch_path": null, "arguments": [], "created_at": 1658876149.257587}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.0.4/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "netsuite_source.account_periods_table": {"unique_id": "netsuite_source.account_periods_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_periods_table", "block_contents": "Table detailing all accounting periods, including monthly, quarterly and yearly."}, "netsuite_source.accounting_books_table": {"unique_id": "netsuite_source.accounting_books_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_books_table", "block_contents": "Table detailing all accounting books set up in Netsuite."}, "netsuite_source.accounts_table": {"unique_id": "netsuite_source.accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounts_table", "block_contents": "Table detailing all accounts set up in Netsuite."}, "netsuite_source.classes_table": {"unique_id": "netsuite_source.classes_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "classes_table", "block_contents": "Table detailing all classes set up in Netsuite."}, "netsuite_source.consolidated_exchange_rates_table": {"unique_id": "netsuite_source.consolidated_exchange_rates_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "consolidated_exchange_rates_table", "block_contents": "Table detailing average, historical and current exchange rates for all accounting periods."}, "netsuite_source.customers_table": {"unique_id": "netsuite_source.customers_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customers_table", "block_contents": "Table detailing all customer information."}, "netsuite_source.currencies_table": {"unique_id": "netsuite_source.currencies_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currencies_table", "block_contents": "Table detailing all currency information."}, "netsuite_source.departments_table": {"unique_id": "netsuite_source.departments_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "departments_table", "block_contents": "Table detailing all departments set up in Netsuite."}, "netsuite_source.expense_accounts_table": {"unique_id": "netsuite_source.expense_accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expense_accounts_table", "block_contents": "Table detailing all expense accounts."}, "netsuite_source.income_accounts_table": {"unique_id": "netsuite_source.income_accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "income_accounts_table", "block_contents": "Table detailing all income accounts."}, "netsuite_source.items_table": {"unique_id": "netsuite_source.items_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "items_table", "block_contents": "Table detailing information about the items created in Netsuite."}, "netsuite_source.locations_table": {"unique_id": "netsuite_source.locations_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "locations_table", "block_contents": "Table detailing all locations, including store, warehouse and office locations."}, "netsuite_source.subsidiaries_table": {"unique_id": "netsuite_source.subsidiaries_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "subsidiaries_table", "block_contents": "Table detailing all subsidiaries."}, "netsuite_source.transaction_lines_table": {"unique_id": "netsuite_source.transaction_lines_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "netsuite_source.transaction_table": {"unique_id": "netsuite_source.transaction_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_table", "block_contents": "A table detailing all transactions."}, "netsuite_source.vendor_types_table": {"unique_id": "netsuite_source.vendor_types_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_types_table", "block_contents": "A table detailing all the various types of vendors."}, "netsuite_source.vendor_table": {"unique_id": "netsuite_source.vendor_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "A table detailing all vendor information."}, "netsuite_source.entities_table": {"unique_id": "netsuite_source.entities_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entities_table", "block_contents": "Table detailing all entities in Netsuite."}, "netsuite_source.jobs_table": {"unique_id": "netsuite_source.jobs_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "jobs_table", "block_contents": "Table detailing all jobs."}, "netsuite_source.transaction_accounting_lines_table": {"unique_id": "netsuite_source.transaction_accounting_lines_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_accounting_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "netsuite_source.vendor_categories_table": {"unique_id": "netsuite_source.vendor_categories_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_categories_table", "block_contents": "A table containing categories and how they map to vendors."}, "netsuite_source.accounting_book_subsidiaries_table": {"unique_id": "netsuite_source.accounting_book_subsidiaries_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_book_subsidiaries_table", "block_contents": "A table containing the various account books and the respective subsidiaries."}, "netsuite_source.accounting_period_fiscal_calendars_table": {"unique_id": "netsuite_source.accounting_period_fiscal_calendars_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_period_fiscal_calendars_table", "block_contents": "A table containing the accounting fiscal calendar periods."}, "netsuite_source.account_types_table": {"unique_id": "netsuite_source.account_types_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_types_table", "block_contents": "A table containing the various account types within Netsuite."}, "netsuite_source.entity_address_table": {"unique_id": "netsuite_source.entity_address_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entity_address_table", "block_contents": "A table containing addresses and the various entities which they map."}, "netsuite_source.location_main_address_table": {"unique_id": "netsuite_source.location_main_address_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "location_main_address_table", "block_contents": "A table containing the location main addresses."}, "netsuite_source._fivetran_id": {"unique_id": "netsuite_source._fivetran_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "netsuite_source._fivetran_synced": {"unique_id": "netsuite_source._fivetran_synced", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "netsuite_source._fivetran_deleted": {"unique_id": "netsuite_source._fivetran_deleted", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Timestamp of when a record was deleted."}, "netsuite_source.vendor_id": {"unique_id": "netsuite_source.vendor_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_id", "block_contents": "The unique identifier of the vendor."}, "netsuite_source.company_name": {"unique_id": "netsuite_source.company_name", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "company_name", "block_contents": "Name of the company."}, "netsuite_source.create_date_at": {"unique_id": "netsuite_source.create_date_at", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "create_date_at", "block_contents": "Timestamp of the record creation."}, "netsuite_source.vendor_category_id": {"unique_id": "netsuite_source.vendor_category_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_category_id", "block_contents": "Unique identifier of the vendor category."}, "netsuite_source.accounting_period_id": {"unique_id": "netsuite_source.accounting_period_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_period_id", "block_contents": "The accounting period id of the accounting period which the transaction took place in."}, "netsuite_source.created_at": {"unique_id": "netsuite_source.created_at", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of when the record was created."}, "netsuite_source.currency_id": {"unique_id": "netsuite_source.currency_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "The currency id of the currency used within the record."}, "netsuite_source.entity_id": {"unique_id": "netsuite_source.entity_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entity_id", "block_contents": "The entity id of the entity used for the record."}, "netsuite_source.transaction_id": {"unique_id": "netsuite_source.transaction_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "The transaction id of referenced for the record."}, "netsuite_source.department_id": {"unique_id": "netsuite_source.department_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "The unique identifier of the department used for the record."}, "netsuite_source.subsidiary_id": {"unique_id": "netsuite_source.subsidiary_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "subsidiary_id", "block_contents": "The unique identifier of the subsidiary used for the record."}, "netsuite_source.location_id": {"unique_id": "netsuite_source.location_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "location_id", "block_contents": "The unique identifier of the location used for the record."}, "netsuite_source.class_id": {"unique_id": "netsuite_source.class_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "The unique identifier of the class used for the record."}, "netsuite_source.item_id": {"unique_id": "netsuite_source.item_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "The unique identifier of the item used within the record."}, "netsuite_source.fiscal_calendar_id": {"unique_id": "netsuite_source.fiscal_calendar_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "fiscal_calendar_id", "block_contents": "Reference to the fiscal calendar used for the record."}, "netsuite_source.main_address_id": {"unique_id": "netsuite_source.main_address_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "main_address_id", "block_contents": "Reference to the main address used for the record."}, "netsuite_source.addr1": {"unique_id": "netsuite_source.addr1", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr1", "block_contents": "The associated address 1."}, "netsuite_source.addr2": {"unique_id": "netsuite_source.addr2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr2", "block_contents": "The associated address 2."}, "netsuite_source.addr3": {"unique_id": "netsuite_source.addr3", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr3", "block_contents": "The associated address 3."}, "netsuite_source.addressee": {"unique_id": "netsuite_source.addressee", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addressee", "block_contents": "The individual associated with the address"}, "netsuite_source.full_address": {"unique_id": "netsuite_source.full_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "full_address", "block_contents": "The full address associated."}, "netsuite_source.city": {"unique_id": "netsuite_source.city", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "city", "block_contents": "The associated city."}, "netsuite_source.country": {"unique_id": "netsuite_source.country", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "country", "block_contents": "The associated country."}, "netsuite_source.state": {"unique_id": "netsuite_source.state", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "state", "block_contents": "The associated state."}, "netsuite_source.nkey": {"unique_id": "netsuite_source.nkey", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "nkey", "block_contents": "The associated Netsuite key."}, "netsuite_source.zipcode": {"unique_id": "netsuite_source.zipcode", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "zipcode", "block_contents": "The associated zipcode."}, "netsuite_source.customer_id": {"unique_id": "netsuite_source.customer_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Unique identifier of the customer."}, "netsuite_source.accounting_book_id": {"unique_id": "netsuite_source.accounting_book_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_book_id", "block_contents": "Unique identifier of the accounting book."}, "netsuite_source.account_type_id": {"unique_id": "netsuite_source.account_type_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type_id", "block_contents": "Unique identifier of thea account type."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": [], "seed.netsuite_source_integration_tests.netsuite_vendors_data": [], "seed.netsuite_source_integration_tests.netsuite2_classification_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_source_integration_tests.netsuite2_entities_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_source_integration_tests.netsuite_customers_data": [], "seed.netsuite_source_integration_tests.netsuite_locations_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_data": [], "seed.netsuite_source_integration_tests.netsuite_items_data": [], "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_source_integration_tests.netsuite_classes_data": [], "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_source_integration_tests.netsuite_departments_data": [], "seed.netsuite_source_integration_tests.netsuite2_customer_data": [], "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_department_data": [], "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite_currencies_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_source_integration_tests.netsuite_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_source_integration_tests.netsuite2_job_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_data": [], "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_source_integration_tests.netsuite2_item_data": [], "seed.netsuite_source_integration_tests.netsuite_transactions_data": [], "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["model.netsuite_source.stg_netsuite2__transactions_tmp", "model.netsuite_source.stg_netsuite2__transactions_tmp"], "model.netsuite_source.stg_netsuite2__jobs": ["model.netsuite_source.stg_netsuite2__jobs_tmp", "model.netsuite_source.stg_netsuite2__jobs_tmp"], "model.netsuite_source.stg_netsuite2__vendors": ["model.netsuite_source.stg_netsuite2__vendors_tmp", "model.netsuite_source.stg_netsuite2__vendors_tmp"], "model.netsuite_source.stg_netsuite2__classes": ["model.netsuite_source.stg_netsuite2__classes_tmp", "model.netsuite_source.stg_netsuite2__classes_tmp"], "model.netsuite_source.stg_netsuite2__account_types": ["model.netsuite_source.stg_netsuite2__account_types_tmp", "model.netsuite_source.stg_netsuite2__account_types_tmp"], "model.netsuite_source.stg_netsuite2__entities": ["model.netsuite_source.stg_netsuite2__entities_tmp", "model.netsuite_source.stg_netsuite2__entities_tmp"], "model.netsuite_source.stg_netsuite2__accounting_periods": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"], "model.netsuite_source.stg_netsuite2__customers": ["model.netsuite_source.stg_netsuite2__customers_tmp", "model.netsuite_source.stg_netsuite2__customers_tmp"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"], "model.netsuite_source.stg_netsuite2__accounts": ["model.netsuite_source.stg_netsuite2__accounts_tmp", "model.netsuite_source.stg_netsuite2__accounts_tmp"], "model.netsuite_source.stg_netsuite2__transaction_lines": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"], "model.netsuite_source.stg_netsuite2__subsidiaries": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"], "model.netsuite_source.stg_netsuite2__entity_address": ["model.netsuite_source.stg_netsuite2__entity_address_tmp", "model.netsuite_source.stg_netsuite2__entity_address_tmp"], "model.netsuite_source.stg_netsuite2__location_main_address": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp", "model.netsuite_source.stg_netsuite2__location_main_address_tmp"], "model.netsuite_source.stg_netsuite2__vendor_categories": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"], "model.netsuite_source.stg_netsuite2__departments": ["model.netsuite_source.stg_netsuite2__departments_tmp", "model.netsuite_source.stg_netsuite2__departments_tmp"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"], "model.netsuite_source.stg_netsuite2__accounting_books": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp", "model.netsuite_source.stg_netsuite2__accounting_books_tmp"], "model.netsuite_source.stg_netsuite2__items": ["model.netsuite_source.stg_netsuite2__items_tmp", "model.netsuite_source.stg_netsuite2__items_tmp"], "model.netsuite_source.stg_netsuite2__currencies": ["model.netsuite_source.stg_netsuite2__currencies_tmp", "model.netsuite_source.stg_netsuite2__currencies_tmp"], "model.netsuite_source.stg_netsuite2__locations": ["model.netsuite_source.stg_netsuite2__locations_tmp", "model.netsuite_source.stg_netsuite2__locations_tmp"], "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": ["source.netsuite_source.netsuite2.subsidiary"], "model.netsuite_source.stg_netsuite2__transactions_tmp": ["source.netsuite_source.netsuite2.transaction"], "model.netsuite_source.stg_netsuite2__entity_address_tmp": ["source.netsuite_source.netsuite2.entity_address"], "model.netsuite_source.stg_netsuite2__account_types_tmp": ["source.netsuite_source.netsuite2.account_type"], "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": ["source.netsuite_source.netsuite2.accounting_period"], "model.netsuite_source.stg_netsuite2__jobs_tmp": ["source.netsuite_source.netsuite2.job"], "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": ["source.netsuite_source.netsuite2.transaction_line"], "model.netsuite_source.stg_netsuite2__accounts_tmp": ["source.netsuite_source.netsuite2.account"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["source.netsuite_source.netsuite2.customer"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["source.netsuite_source.netsuite2.entity"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["source.netsuite_source.netsuite2.currency"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["source.netsuite_source.netsuite2.vendor"], "model.netsuite_source.stg_netsuite2__items_tmp": ["source.netsuite_source.netsuite2.item"], "model.netsuite_source.stg_netsuite2__accounting_books_tmp": ["source.netsuite_source.netsuite2.accounting_book"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"], "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": ["source.netsuite_source.netsuite2.vendor_category"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": ["source.netsuite_source.netsuite2.transaction_accounting_line"], "model.netsuite_source.stg_netsuite2__location_main_address_tmp": ["source.netsuite_source.netsuite2.location_main_address"], "model.netsuite_source.stg_netsuite2__locations_tmp": ["source.netsuite_source.netsuite2.location"], "model.netsuite_source.stg_netsuite2__departments_tmp": ["source.netsuite_source.netsuite2.department"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["source.netsuite_source.netsuite2.classification"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"], "model.netsuite_source.stg_netsuite__transactions": ["model.netsuite_source.stg_netsuite__transactions_tmp", "model.netsuite_source.stg_netsuite__transactions_tmp"], "model.netsuite_source.stg_netsuite__customers": ["model.netsuite_source.stg_netsuite__customers_tmp", "model.netsuite_source.stg_netsuite__customers_tmp"], "model.netsuite_source.stg_netsuite__accounting_books": ["model.netsuite_source.stg_netsuite__accounting_books_tmp", "model.netsuite_source.stg_netsuite__accounting_books_tmp"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"], "model.netsuite_source.stg_netsuite__transaction_lines": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp", "model.netsuite_source.stg_netsuite__transaction_lines_tmp"], "model.netsuite_source.stg_netsuite__income_accounts": ["model.netsuite_source.stg_netsuite__income_accounts_tmp", "model.netsuite_source.stg_netsuite__income_accounts_tmp"], "model.netsuite_source.stg_netsuite__expense_accounts": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp", "model.netsuite_source.stg_netsuite__expense_accounts_tmp"], "model.netsuite_source.stg_netsuite__vendors": ["model.netsuite_source.stg_netsuite__vendors_tmp", "model.netsuite_source.stg_netsuite__vendors_tmp"], "model.netsuite_source.stg_netsuite__classes": ["model.netsuite_source.stg_netsuite__classes_tmp", "model.netsuite_source.stg_netsuite__classes_tmp"], "model.netsuite_source.stg_netsuite__subsidiaries": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp", "model.netsuite_source.stg_netsuite__subsidiaries_tmp"], "model.netsuite_source.stg_netsuite__accounts": ["model.netsuite_source.stg_netsuite__accounts_tmp", "model.netsuite_source.stg_netsuite__accounts_tmp"], "model.netsuite_source.stg_netsuite__items": ["model.netsuite_source.stg_netsuite__items_tmp", "model.netsuite_source.stg_netsuite__items_tmp"], "model.netsuite_source.stg_netsuite__locations": ["model.netsuite_source.stg_netsuite__locations_tmp", "model.netsuite_source.stg_netsuite__locations_tmp"], "model.netsuite_source.stg_netsuite__departments": ["model.netsuite_source.stg_netsuite__departments_tmp", "model.netsuite_source.stg_netsuite__departments_tmp"], "model.netsuite_source.stg_netsuite__currencies": ["model.netsuite_source.stg_netsuite__currencies_tmp", "model.netsuite_source.stg_netsuite__currencies_tmp"], "model.netsuite_source.stg_netsuite__vendor_types": ["model.netsuite_source.stg_netsuite__vendor_types_tmp", "model.netsuite_source.stg_netsuite__vendor_types_tmp"], "model.netsuite_source.stg_netsuite__accounting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp", "model.netsuite_source.stg_netsuite__accounting_periods_tmp"], "model.netsuite_source.stg_netsuite__accounting_periods_tmp": ["source.netsuite_source.netsuite.accounting_periods"], "model.netsuite_source.stg_netsuite__accounting_books_tmp": ["source.netsuite_source.netsuite.accounting_books"], "model.netsuite_source.stg_netsuite__customers_tmp": ["source.netsuite_source.netsuite.customers"], "model.netsuite_source.stg_netsuite__transaction_lines_tmp": ["source.netsuite_source.netsuite.transaction_lines"], "model.netsuite_source.stg_netsuite__income_accounts_tmp": ["source.netsuite_source.netsuite.income_accounts"], "model.netsuite_source.stg_netsuite__accounts_tmp": ["source.netsuite_source.netsuite.accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["source.netsuite_source.netsuite.departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["source.netsuite_source.netsuite.currencies"], "model.netsuite_source.stg_netsuite__vendor_types_tmp": ["source.netsuite_source.netsuite.vendor_types"], "model.netsuite_source.stg_netsuite__vendors_tmp": ["source.netsuite_source.netsuite.vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["source.netsuite_source.netsuite.locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["source.netsuite_source.netsuite.items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["source.netsuite_source.netsuite.subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["source.netsuite_source.netsuite.transactions"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": ["source.netsuite_source.netsuite.consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__classes_tmp": ["source.netsuite_source.netsuite.classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["source.netsuite_source.netsuite.expense_accounts"], "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": ["model.netsuite_source.stg_netsuite__accounting_books"], "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": ["model.netsuite_source.stg_netsuite__accounting_books"], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": ["model.netsuite_source.stg_netsuite__accounts"], "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": ["model.netsuite_source.stg_netsuite__accounts"], "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": ["model.netsuite_source.stg_netsuite__classes"], "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": ["model.netsuite_source.stg_netsuite__classes"], "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": ["model.netsuite_source.stg_netsuite__currencies"], "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": ["model.netsuite_source.stg_netsuite__currencies"], "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": ["model.netsuite_source.stg_netsuite__customers"], "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": ["model.netsuite_source.stg_netsuite__customers"], "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": ["model.netsuite_source.stg_netsuite__departments"], "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": ["model.netsuite_source.stg_netsuite__departments"], "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": ["model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": ["model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": ["model.netsuite_source.stg_netsuite__income_accounts"], "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": ["model.netsuite_source.stg_netsuite__income_accounts"], "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": ["model.netsuite_source.stg_netsuite__items"], "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": ["model.netsuite_source.stg_netsuite__items"], "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": ["model.netsuite_source.stg_netsuite__locations"], "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": ["model.netsuite_source.stg_netsuite__locations"], "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": ["model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": ["model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": ["model.netsuite_source.stg_netsuite__transactions"], "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": ["model.netsuite_source.stg_netsuite__transactions"], "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": ["model.netsuite_source.stg_netsuite__vendor_types"], "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": ["model.netsuite_source.stg_netsuite__vendor_types"], "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": ["model.netsuite_source.stg_netsuite__vendors"], "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": ["model.netsuite_source.stg_netsuite__vendors"], "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": ["model.netsuite_source.stg_netsuite2__account_types"], "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": ["model.netsuite_source.stg_netsuite2__account_types"], "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": ["model.netsuite_source.stg_netsuite2__accounting_books"], "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": ["model.netsuite_source.stg_netsuite2__accounting_books"], "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": ["model.netsuite_source.stg_netsuite2__accounting_periods"], "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": ["model.netsuite_source.stg_netsuite2__accounting_periods"], "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": ["model.netsuite_source.stg_netsuite2__accounts"], "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": ["model.netsuite_source.stg_netsuite2__accounts"], "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": ["model.netsuite_source.stg_netsuite2__classes"], "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": ["model.netsuite_source.stg_netsuite2__classes"], "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": ["model.netsuite_source.stg_netsuite2__currencies"], "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": ["model.netsuite_source.stg_netsuite2__currencies"], "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": ["model.netsuite_source.stg_netsuite2__customers"], "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": ["model.netsuite_source.stg_netsuite2__customers"], "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": ["model.netsuite_source.stg_netsuite2__departments"], "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": ["model.netsuite_source.stg_netsuite2__departments"], "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": ["model.netsuite_source.stg_netsuite2__entities"], "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": ["model.netsuite_source.stg_netsuite2__entities"], "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": ["model.netsuite_source.stg_netsuite2__items"], "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": ["model.netsuite_source.stg_netsuite2__items"], "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": ["model.netsuite_source.stg_netsuite2__jobs"], "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": ["model.netsuite_source.stg_netsuite2__jobs"], "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": ["model.netsuite_source.stg_netsuite2__locations"], "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": ["model.netsuite_source.stg_netsuite2__locations"], "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": ["model.netsuite_source.stg_netsuite2__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": ["model.netsuite_source.stg_netsuite2__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": ["model.netsuite_source.stg_netsuite2__transactions"], "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": ["model.netsuite_source.stg_netsuite2__transactions"], "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": ["model.netsuite_source.stg_netsuite2__vendor_categories"], "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": ["model.netsuite_source.stg_netsuite2__vendor_categories"], "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": ["model.netsuite_source.stg_netsuite2__vendors"], "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": ["model.netsuite_source.stg_netsuite2__vendors"], "source.netsuite_source.netsuite2.account_type": [], "source.netsuite_source.netsuite2.accounting_book_subsidiaries": [], "source.netsuite_source.netsuite2.accounting_book": [], "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": [], "source.netsuite_source.netsuite2.accounting_period": [], "source.netsuite_source.netsuite2.account": [], "source.netsuite_source.netsuite2.classification": [], "source.netsuite_source.netsuite2.consolidated_exchange_rate": [], "source.netsuite_source.netsuite2.currency": [], "source.netsuite_source.netsuite2.customer": [], "source.netsuite_source.netsuite2.department": [], "source.netsuite_source.netsuite2.entity": [], "source.netsuite_source.netsuite2.entity_address": [], "source.netsuite_source.netsuite2.item": [], "source.netsuite_source.netsuite2.job": [], "source.netsuite_source.netsuite2.location_main_address": [], "source.netsuite_source.netsuite2.location": [], "source.netsuite_source.netsuite2.subsidiary": [], "source.netsuite_source.netsuite2.transaction_accounting_line": [], "source.netsuite_source.netsuite2.transaction_line": [], "source.netsuite_source.netsuite2.transaction": [], "source.netsuite_source.netsuite2.vendor_category": [], "source.netsuite_source.netsuite2.vendor": [], "source.netsuite_source.netsuite.accounting_books": [], "source.netsuite_source.netsuite.accounting_periods": [], "source.netsuite_source.netsuite.accounts": [], "source.netsuite_source.netsuite.classes": [], "source.netsuite_source.netsuite.consolidated_exchange_rates": [], "source.netsuite_source.netsuite.currencies": [], "source.netsuite_source.netsuite.customers": [], "source.netsuite_source.netsuite.departments": [], "source.netsuite_source.netsuite.expense_accounts": [], "source.netsuite_source.netsuite.income_accounts": [], "source.netsuite_source.netsuite.items": [], "source.netsuite_source.netsuite.locations": [], "source.netsuite_source.netsuite.subsidiaries": [], "source.netsuite_source.netsuite.transaction_lines": [], "source.netsuite_source.netsuite.transactions": [], "source.netsuite_source.netsuite.vendor_types": [], "source.netsuite_source.netsuite.vendors": []}, "child_map": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": [], "seed.netsuite_source_integration_tests.netsuite_vendors_data": [], "seed.netsuite_source_integration_tests.netsuite2_classification_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_source_integration_tests.netsuite2_entities_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_source_integration_tests.netsuite_customers_data": [], "seed.netsuite_source_integration_tests.netsuite_locations_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_data": [], "seed.netsuite_source_integration_tests.netsuite_items_data": [], "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_source_integration_tests.netsuite_classes_data": [], "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_source_integration_tests.netsuite_departments_data": [], "seed.netsuite_source_integration_tests.netsuite2_customer_data": [], "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_department_data": [], "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite_currencies_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_source_integration_tests.netsuite_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_source_integration_tests.netsuite2_job_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_data": [], "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_source_integration_tests.netsuite2_item_data": [], "seed.netsuite_source_integration_tests.netsuite_transactions_data": [], "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4"], "model.netsuite_source.stg_netsuite2__jobs": ["test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c"], "model.netsuite_source.stg_netsuite2__vendors": ["test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d"], "model.netsuite_source.stg_netsuite2__classes": ["test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98"], "model.netsuite_source.stg_netsuite2__account_types": ["test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f"], "model.netsuite_source.stg_netsuite2__entities": ["test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50"], "model.netsuite_source.stg_netsuite2__accounting_periods": ["test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": ["test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348"], "model.netsuite_source.stg_netsuite2__customers": ["test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": ["test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396"], "model.netsuite_source.stg_netsuite2__accounts": ["test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17"], "model.netsuite_source.stg_netsuite2__transaction_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1"], "model.netsuite_source.stg_netsuite2__subsidiaries": ["test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229"], "model.netsuite_source.stg_netsuite2__entity_address": [], "model.netsuite_source.stg_netsuite2__location_main_address": [], "model.netsuite_source.stg_netsuite2__vendor_categories": ["test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6"], "model.netsuite_source.stg_netsuite2__departments": ["test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": ["test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a"], "model.netsuite_source.stg_netsuite2__accounting_books": ["test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230"], "model.netsuite_source.stg_netsuite2__items": ["test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee"], "model.netsuite_source.stg_netsuite2__currencies": ["test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78"], "model.netsuite_source.stg_netsuite2__locations": ["test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149"], "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite_source.stg_netsuite2__transactions_tmp": ["model.netsuite_source.stg_netsuite2__transactions", "model.netsuite_source.stg_netsuite2__transactions"], "model.netsuite_source.stg_netsuite2__entity_address_tmp": ["model.netsuite_source.stg_netsuite2__entity_address", "model.netsuite_source.stg_netsuite2__entity_address"], "model.netsuite_source.stg_netsuite2__account_types_tmp": ["model.netsuite_source.stg_netsuite2__account_types", "model.netsuite_source.stg_netsuite2__account_types"], "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": ["model.netsuite_source.stg_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__accounting_periods"], "model.netsuite_source.stg_netsuite2__jobs_tmp": ["model.netsuite_source.stg_netsuite2__jobs", "model.netsuite_source.stg_netsuite2__jobs"], "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": ["model.netsuite_source.stg_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transaction_lines"], "model.netsuite_source.stg_netsuite2__accounts_tmp": ["model.netsuite_source.stg_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__accounts"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["model.netsuite_source.stg_netsuite2__customers", "model.netsuite_source.stg_netsuite2__customers"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["model.netsuite_source.stg_netsuite2__entities", "model.netsuite_source.stg_netsuite2__entities"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__currencies"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["model.netsuite_source.stg_netsuite2__vendors", "model.netsuite_source.stg_netsuite2__vendors"], "model.netsuite_source.stg_netsuite2__items_tmp": ["model.netsuite_source.stg_netsuite2__items", "model.netsuite_source.stg_netsuite2__items"], "model.netsuite_source.stg_netsuite2__accounting_books_tmp": ["model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__accounting_books"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": ["model.netsuite_source.stg_netsuite2__vendor_categories", "model.netsuite_source.stg_netsuite2__vendor_categories"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "model.netsuite_source.stg_netsuite2__location_main_address_tmp": ["model.netsuite_source.stg_netsuite2__location_main_address", "model.netsuite_source.stg_netsuite2__location_main_address"], "model.netsuite_source.stg_netsuite2__locations_tmp": ["model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__locations"], "model.netsuite_source.stg_netsuite2__departments_tmp": ["model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__departments"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__classes"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__transactions": ["test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79"], "model.netsuite_source.stg_netsuite__customers": ["test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9"], "model.netsuite_source.stg_netsuite__accounting_books": ["test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": ["test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54"], "model.netsuite_source.stg_netsuite__transaction_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c"], "model.netsuite_source.stg_netsuite__income_accounts": ["test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07"], "model.netsuite_source.stg_netsuite__expense_accounts": ["test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff"], "model.netsuite_source.stg_netsuite__vendors": ["test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39"], "model.netsuite_source.stg_netsuite__classes": ["test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b"], "model.netsuite_source.stg_netsuite__subsidiaries": ["test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0"], "model.netsuite_source.stg_netsuite__accounts": ["test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281"], "model.netsuite_source.stg_netsuite__items": ["test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654"], "model.netsuite_source.stg_netsuite__locations": ["test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2"], "model.netsuite_source.stg_netsuite__departments": ["test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1"], "model.netsuite_source.stg_netsuite__currencies": ["test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c"], "model.netsuite_source.stg_netsuite__vendor_types": ["test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69"], "model.netsuite_source.stg_netsuite__accounting_periods": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563"], "model.netsuite_source.stg_netsuite__accounting_periods_tmp": ["model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounting_periods"], "model.netsuite_source.stg_netsuite__accounting_books_tmp": ["model.netsuite_source.stg_netsuite__accounting_books", "model.netsuite_source.stg_netsuite__accounting_books"], "model.netsuite_source.stg_netsuite__customers_tmp": ["model.netsuite_source.stg_netsuite__customers", "model.netsuite_source.stg_netsuite__customers"], "model.netsuite_source.stg_netsuite__transaction_lines_tmp": ["model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transaction_lines"], "model.netsuite_source.stg_netsuite__income_accounts_tmp": ["model.netsuite_source.stg_netsuite__income_accounts", "model.netsuite_source.stg_netsuite__income_accounts"], "model.netsuite_source.stg_netsuite__accounts_tmp": ["model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["model.netsuite_source.stg_netsuite__currencies", "model.netsuite_source.stg_netsuite__currencies"], "model.netsuite_source.stg_netsuite__vendor_types_tmp": ["model.netsuite_source.stg_netsuite__vendor_types", "model.netsuite_source.stg_netsuite__vendor_types"], "model.netsuite_source.stg_netsuite__vendors_tmp": ["model.netsuite_source.stg_netsuite__vendors", "model.netsuite_source.stg_netsuite__vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["model.netsuite_source.stg_netsuite__items", "model.netsuite_source.stg_netsuite__items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__transactions"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__classes_tmp": ["model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["model.netsuite_source.stg_netsuite__expense_accounts", "model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": [], "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": [], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": [], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": [], "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": [], "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": [], "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": [], "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": [], "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": [], "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": [], "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": [], "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": [], "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": [], "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": [], "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": [], "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": [], "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": [], "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": [], "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": [], "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": [], "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": [], "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": [], "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": [], "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": [], "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": [], "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": [], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": [], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": [], "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": [], "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": [], "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": [], "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": [], "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": [], "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": [], "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": [], "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": [], "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": [], "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": [], "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": [], "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": [], "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": [], "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": [], "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": [], "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": [], "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": [], "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": [], "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": [], "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": [], "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": [], "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": [], "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": [], "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": [], "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": [], "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": [], "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": [], "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": [], "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": [], "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": [], "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": [], "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": [], "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": [], "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": [], "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": [], "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": [], "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": [], "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": [], "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": [], "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": [], "source.netsuite_source.netsuite2.account_type": ["model.netsuite_source.stg_netsuite2__account_types_tmp"], "source.netsuite_source.netsuite2.accounting_book_subsidiaries": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"], "source.netsuite_source.netsuite2.accounting_book": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp"], "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"], "source.netsuite_source.netsuite2.accounting_period": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp"], "source.netsuite_source.netsuite2.account": ["model.netsuite_source.stg_netsuite2__accounts_tmp"], "source.netsuite_source.netsuite2.classification": ["model.netsuite_source.stg_netsuite2__classes_tmp"], "source.netsuite_source.netsuite2.consolidated_exchange_rate": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"], "source.netsuite_source.netsuite2.currency": ["model.netsuite_source.stg_netsuite2__currencies_tmp"], "source.netsuite_source.netsuite2.customer": ["model.netsuite_source.stg_netsuite2__customers_tmp"], "source.netsuite_source.netsuite2.department": ["model.netsuite_source.stg_netsuite2__departments_tmp"], "source.netsuite_source.netsuite2.entity": ["model.netsuite_source.stg_netsuite2__entities_tmp"], "source.netsuite_source.netsuite2.entity_address": ["model.netsuite_source.stg_netsuite2__entity_address_tmp"], "source.netsuite_source.netsuite2.item": ["model.netsuite_source.stg_netsuite2__items_tmp"], "source.netsuite_source.netsuite2.job": ["model.netsuite_source.stg_netsuite2__jobs_tmp"], "source.netsuite_source.netsuite2.location_main_address": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp"], "source.netsuite_source.netsuite2.location": ["model.netsuite_source.stg_netsuite2__locations_tmp"], "source.netsuite_source.netsuite2.subsidiary": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp"], "source.netsuite_source.netsuite2.transaction_accounting_line": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"], "source.netsuite_source.netsuite2.transaction_line": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp"], "source.netsuite_source.netsuite2.transaction": ["model.netsuite_source.stg_netsuite2__transactions_tmp"], "source.netsuite_source.netsuite2.vendor_category": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp"], "source.netsuite_source.netsuite2.vendor": ["model.netsuite_source.stg_netsuite2__vendors_tmp"], "source.netsuite_source.netsuite.accounting_books": ["model.netsuite_source.stg_netsuite__accounting_books_tmp"], "source.netsuite_source.netsuite.accounting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp"], "source.netsuite_source.netsuite.accounts": ["model.netsuite_source.stg_netsuite__accounts_tmp"], "source.netsuite_source.netsuite.classes": ["model.netsuite_source.stg_netsuite__classes_tmp"], "source.netsuite_source.netsuite.consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"], "source.netsuite_source.netsuite.currencies": ["model.netsuite_source.stg_netsuite__currencies_tmp"], "source.netsuite_source.netsuite.customers": ["model.netsuite_source.stg_netsuite__customers_tmp"], "source.netsuite_source.netsuite.departments": ["model.netsuite_source.stg_netsuite__departments_tmp"], "source.netsuite_source.netsuite.expense_accounts": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp"], "source.netsuite_source.netsuite.income_accounts": ["model.netsuite_source.stg_netsuite__income_accounts_tmp"], "source.netsuite_source.netsuite.items": ["model.netsuite_source.stg_netsuite__items_tmp"], "source.netsuite_source.netsuite.locations": ["model.netsuite_source.stg_netsuite__locations_tmp"], "source.netsuite_source.netsuite.subsidiaries": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp"], "source.netsuite_source.netsuite.transaction_lines": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp"], "source.netsuite_source.netsuite.transactions": ["model.netsuite_source.stg_netsuite__transactions_tmp"], "source.netsuite_source.netsuite.vendor_types": ["model.netsuite_source.stg_netsuite__vendor_types_tmp"], "source.netsuite_source.netsuite.vendors": ["model.netsuite_source.stg_netsuite__vendors_tmp"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2022-10-24T20:25:40.972405Z", "invocation_id": "4195529c-716a-4b27-ac5b-72f919bfcd43", "env": {}, "project_id": "0161153b585f60374e0a66941a656f43", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_currency_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_currency_data.csv", "original_file_path": "seeds/netsuite2_currency_data.csv", "name": "netsuite2_currency_data", "alias": "netsuite2_currency_data", "checksum": {"name": "sha256", "checksum": "860ccbec95ff9c17e8e40db2c32e28ab56f2ef18f6af775bc982fc5494aae23c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.641398, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\""}, "seed.netsuite_source_integration_tests.netsuite_vendors_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_vendors_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_vendors_data.csv", "original_file_path": "seeds/netsuite_vendors_data.csv", "name": "netsuite_vendors_data", "alias": "netsuite_vendors_data", "checksum": {"name": "sha256", "checksum": "f050ea1d5fa346fcefbe9a5792dfbe9f5aabbec17a359ab2e497be7b3e888e2d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6471229, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\""}, "seed.netsuite_source_integration_tests.netsuite2_classification_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_classification_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_classification_data.csv", "original_file_path": "seeds/netsuite2_classification_data.csv", "name": "netsuite2_classification_data", "alias": "netsuite2_classification_data", "checksum": {"name": "sha256", "checksum": "800dc93b65435dd17dbe1f668890a317bce221193a1ca52d6075c5ab8504e29c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.648414, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounting_books_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounting_books_data.csv", "original_file_path": "seeds/netsuite_accounting_books_data.csv", "name": "netsuite_accounting_books_data", "alias": "netsuite_accounting_books_data", "checksum": {"name": "sha256", "checksum": "45b73583ed0a1425f131de59b6a17b997caec17d9b0884947f27008ae81c1684"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.649585, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\""}, "seed.netsuite_source_integration_tests.netsuite2_entities_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_entities_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_entities_data.csv", "original_file_path": "seeds/netsuite2_entities_data.csv", "name": "netsuite2_entities_data", "alias": "netsuite2_entities_data", "checksum": {"name": "sha256", "checksum": "e28458219e88aecec3f237ff9c58941d13c0e40c478fec9e8727fbb3d9d244c8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.650738, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\""}, "seed.netsuite_source_integration_tests.netsuite2_vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_vendor_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_vendor_data.csv", "original_file_path": "seeds/netsuite2_vendor_data.csv", "name": "netsuite2_vendor_data", "alias": "netsuite2_vendor_data", "checksum": {"name": "sha256", "checksum": "f1f8f8762dd6b7192e2273f12ee86f43eb06933a2055da91d37c82f0ddbec0b8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.652019, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\""}, "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_consolidated_exchange_rates_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_consolidated_exchange_rates_data.csv", "original_file_path": "seeds/netsuite_consolidated_exchange_rates_data.csv", "name": "netsuite_consolidated_exchange_rates_data", "alias": "netsuite_consolidated_exchange_rates_data", "checksum": {"name": "sha256", "checksum": "b8719124e41745363f91f996b99812a9e6c98306ef24034c5efb12b64600a496"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.653165, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\""}, "seed.netsuite_source_integration_tests.netsuite_customers_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_customers_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_customers_data.csv", "original_file_path": "seeds/netsuite_customers_data.csv", "name": "netsuite_customers_data", "alias": "netsuite_customers_data", "checksum": {"name": "sha256", "checksum": "e3ce06d6edaeb9f777c340a597d8de7cfb2d3423a20a2421eae4c86264a9c93a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.654301, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\""}, "seed.netsuite_source_integration_tests.netsuite_locations_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_locations_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_locations_data.csv", "original_file_path": "seeds/netsuite_locations_data.csv", "name": "netsuite_locations_data", "alias": "netsuite_locations_data", "checksum": {"name": "sha256", "checksum": "8a71a79adb44cc02707a75ee10a85f03b472324a894ddc32716eeea7d533bc2f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6554508, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\""}, "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_transaction_line_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_transaction_line_data.csv", "original_file_path": "seeds/netsuite2_transaction_line_data.csv", "name": "netsuite2_transaction_line_data", "alias": "netsuite2_transaction_line_data", "checksum": {"name": "sha256", "checksum": "746773ecc92c2e3e1113ebf7d00fd1a33723016cd3f221fca37fa938315ca5b1"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6567109, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\""}, "seed.netsuite_source_integration_tests.netsuite2_account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_account_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_account_data.csv", "original_file_path": "seeds/netsuite2_account_data.csv", "name": "netsuite2_account_data", "alias": "netsuite2_account_data", "checksum": {"name": "sha256", "checksum": "689909e17df06e2b189107699467b29cda77e8b4ab1d433c644872c481524747"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.65785, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\""}, "seed.netsuite_source_integration_tests.netsuite_items_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_items_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_items_data.csv", "original_file_path": "seeds/netsuite_items_data.csv", "name": "netsuite_items_data", "alias": "netsuite_items_data", "checksum": {"name": "sha256", "checksum": "567fc2b4c8e46962f9297095017fa529544feafed31503e9fc3ed51bf60b866d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.658987, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\""}, "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_subsidiary_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_subsidiary_data.csv", "original_file_path": "seeds/netsuite2_subsidiary_data.csv", "name": "netsuite2_subsidiary_data", "alias": "netsuite2_subsidiary_data", "checksum": {"name": "sha256", "checksum": "ab5bdff19af5d7a5f923820106bd9aa7fc321d3a1b1397ab2ad33f8d1fce3991"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.66012, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\""}, "seed.netsuite_source_integration_tests.netsuite2_account_type_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_account_type_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_account_type_data.csv", "original_file_path": "seeds/netsuite2_account_type_data.csv", "name": "netsuite2_account_type_data", "alias": "netsuite2_account_type_data", "checksum": {"name": "sha256", "checksum": "a25b940f65942b256bca8c5ac0c5d4f420a9b1e2d6330bd1102da3e8fa664c7f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.66141, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_period_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_period_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_data.csv", "name": "netsuite2_accounting_period_data", "alias": "netsuite2_accounting_period_data", "checksum": {"name": "sha256", "checksum": "8434862ad961a3c3e31effc380b84b721212641ca8623789446401e345cf9dba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.662561, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_period_fiscal_cal_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_period_fiscal_cal_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_fiscal_cal_data.csv", "name": "netsuite2_accounting_period_fiscal_cal_data", "alias": "netsuite2_accounting_period_fiscal_cal_data", "checksum": {"name": "sha256", "checksum": "ff3ab48ac65713c861da7a5542f14db75c64c4ad7ae4efc8acb2241c10b127c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.663682, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\""}, "seed.netsuite_source_integration_tests.netsuite_classes_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_classes_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_classes_data.csv", "original_file_path": "seeds/netsuite_classes_data.csv", "name": "netsuite_classes_data", "alias": "netsuite_classes_data", "checksum": {"name": "sha256", "checksum": "18e8a63665925edfacbeaa443c7f6632c4489bd521df77d945ee657d398588e3"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.664789, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\""}, "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_entity_address_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_entity_address_data.csv", "original_file_path": "seeds/netsuite2_entity_address_data.csv", "name": "netsuite2_entity_address_data", "alias": "netsuite2_entity_address_data", "checksum": {"name": "sha256", "checksum": "194e01a215739408a796ec2d819da0bc650c860e052e2cddf6695c3faab3b059"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.666004, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\""}, "seed.netsuite_source_integration_tests.netsuite_departments_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_departments_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_departments_data.csv", "original_file_path": "seeds/netsuite_departments_data.csv", "name": "netsuite_departments_data", "alias": "netsuite_departments_data", "checksum": {"name": "sha256", "checksum": "9060203f11419c602daf8afc578035d29ef612e1e868b12fa22eaf7b37942607"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.667148, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\""}, "seed.netsuite_source_integration_tests.netsuite2_customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_customer_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_customer_data.csv", "original_file_path": "seeds/netsuite2_customer_data.csv", "name": "netsuite2_customer_data", "alias": "netsuite2_customer_data", "checksum": {"name": "sha256", "checksum": "5500a2147bb74338ce1aa8bc059d0f3cae74cdfcf4d0d68b49121540b5ccb573"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.668279, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\""}, "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_tran_acct_line_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_tran_acct_line_data.csv", "original_file_path": "seeds/netsuite2_tran_acct_line_data.csv", "name": "netsuite2_tran_acct_line_data", "alias": "netsuite2_tran_acct_line_data", "checksum": {"name": "sha256", "checksum": "c6e72ec64e0179be9c3f3fb6435a828570cd1cb9ba2092ce78b6a4900bc02ddb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.669844, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\""}, "seed.netsuite_source_integration_tests.netsuite2_department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_department_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_department_data.csv", "original_file_path": "seeds/netsuite2_department_data.csv", "name": "netsuite2_department_data", "alias": "netsuite2_department_data", "checksum": {"name": "sha256", "checksum": "6570dc2a4efbac97f87551588b34558d6c5c5b8e071b3cfea59bc9e13a0b7b4a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6710122, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\""}, "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_expense_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_expense_accounts_data.csv", "original_file_path": "seeds/netsuite_expense_accounts_data.csv", "name": "netsuite_expense_accounts_data", "alias": "netsuite_expense_accounts_data", "checksum": {"name": "sha256", "checksum": "983ef804359afb2c0f7db8c3bb32d5eecdec8c0d9fbf502360944877dc212f9c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.672152, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite_currencies_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_currencies_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_currencies_data.csv", "original_file_path": "seeds/netsuite_currencies_data.csv", "name": "netsuite_currencies_data", "alias": "netsuite_currencies_data", "checksum": {"name": "sha256", "checksum": "f98ba1751b715296956912fc4c2b43f58875c56740e829c045aefe1172cb2232"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.673324, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_book_sub_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_book_sub_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_sub_data.csv", "name": "netsuite2_accounting_book_sub_data", "alias": "netsuite2_accounting_book_sub_data", "checksum": {"name": "sha256", "checksum": "e95506b5ada820d0a9a79e7759d749a1512beaa8922c3d6e78c105f9029f7992"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.674598, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounts_data.csv", "original_file_path": "seeds/netsuite_accounts_data.csv", "name": "netsuite_accounts_data", "alias": "netsuite_accounts_data", "checksum": {"name": "sha256", "checksum": "a3d24c6bf7438f0bf6e0a725565ea0bb000c6fa01b7ffbdfb1b70689f5ad515b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6757472, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_vendor_category_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_vendor_category_data.csv", "original_file_path": "seeds/netsuite2_vendor_category_data.csv", "name": "netsuite2_vendor_category_data", "alias": "netsuite2_vendor_category_data", "checksum": {"name": "sha256", "checksum": "498453adb748d03d07147625b2ef67966f7200523eef6d824ce8787212159bf8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.676894, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounting_periods_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounting_periods_data.csv", "original_file_path": "seeds/netsuite_accounting_periods_data.csv", "name": "netsuite_accounting_periods_data", "alias": "netsuite_accounting_periods_data", "checksum": {"name": "sha256", "checksum": "673c2f4c76e4cb8bbccecc7e30c0056163d39f53174013f0460a2e4e5efe6e33"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.677995, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\""}, "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_subsidiaries_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_subsidiaries_data.csv", "original_file_path": "seeds/netsuite_subsidiaries_data.csv", "name": "netsuite_subsidiaries_data", "alias": "netsuite_subsidiaries_data", "checksum": {"name": "sha256", "checksum": "4dd2e8b192c4c052a847d6791b5a32da6968a3234d48b85a37ae20f7ee9445de"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6792068, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\""}, "seed.netsuite_source_integration_tests.netsuite2_job_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_job_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_job_data.csv", "original_file_path": "seeds/netsuite2_job_data.csv", "name": "netsuite2_job_data", "alias": "netsuite2_job_data", "checksum": {"name": "sha256", "checksum": "5fa5024df2ff944188a0ada73be30727b1b1552f3a890b9bd244264d2188fd68"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.680316, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\""}, "seed.netsuite_source_integration_tests.netsuite2_transaction_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_transaction_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_transaction_data.csv", "original_file_path": "seeds/netsuite2_transaction_data.csv", "name": "netsuite2_transaction_data", "alias": "netsuite2_transaction_data", "checksum": {"name": "sha256", "checksum": "16b52e72a514adb263e4e26594326996ab0c1089e576155a4f429975b1d54db0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.681482, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\""}, "seed.netsuite_source_integration_tests.netsuite2_location_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_location_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_location_data.csv", "original_file_path": "seeds/netsuite2_location_data.csv", "name": "netsuite2_location_data", "alias": "netsuite2_location_data", "checksum": {"name": "sha256", "checksum": "a3ce64b239774b83f9226b8e1f8504147dd5f890a86ab80fda41c0376a6e2d19"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.682616, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\""}, "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_income_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_income_accounts_data.csv", "original_file_path": "seeds/netsuite_income_accounts_data.csv", "name": "netsuite_income_accounts_data", "alias": "netsuite_income_accounts_data", "checksum": {"name": "sha256", "checksum": "53a81321736b4a42663e253050539eb48b0d179847e23f161927d29c4cbf1367"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6838841, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_consolidated_exchange_rate_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_consolidated_exchange_rate_data.csv", "original_file_path": "seeds/netsuite2_consolidated_exchange_rate_data.csv", "name": "netsuite2_consolidated_exchange_rate_data", "alias": "netsuite2_consolidated_exchange_rate_data", "checksum": {"name": "sha256", "checksum": "d609008a0522dd0e4e60f8967234bd4ec6c6b5b4fcc8d97a7167869d27ab24ef"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.685031, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_book_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_book_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_data.csv", "name": "netsuite2_accounting_book_data", "alias": "netsuite2_accounting_book_data", "checksum": {"name": "sha256", "checksum": "e5762b59dceb08e4a5170f2ff5413591cfca97f2a8a9a5080bf96860cf276566"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.686168, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\""}, "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_location_main_address_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_location_main_address_data.csv", "original_file_path": "seeds/netsuite2_location_main_address_data.csv", "name": "netsuite2_location_main_address_data", "alias": "netsuite2_location_main_address_data", "checksum": {"name": "sha256", "checksum": "605372cb4ea25cff3ec9f9c80374d24c71d6848ff3dbda939928851568a7311d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6874392, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\""}, "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_vendor_types_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_vendor_types_data.csv", "original_file_path": "seeds/netsuite_vendor_types_data.csv", "name": "netsuite_vendor_types_data", "alias": "netsuite_vendor_types_data", "checksum": {"name": "sha256", "checksum": "2111fb5a226e9e73c187a1a1a13caa0c2d3b54bb2eedfe3287f636c049c72b64"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.688583, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\""}, "seed.netsuite_source_integration_tests.netsuite2_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_item_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_item_data.csv", "original_file_path": "seeds/netsuite2_item_data.csv", "name": "netsuite2_item_data", "alias": "netsuite2_item_data", "checksum": {"name": "sha256", "checksum": "73809b7847e14ec59fa08705c6ba1ee6be142717f9bcbe2dde9eeb5b1c14a65f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.689721, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\""}, "seed.netsuite_source_integration_tests.netsuite_transactions_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_transactions_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_transactions_data.csv", "original_file_path": "seeds/netsuite_transactions_data.csv", "name": "netsuite_transactions_data", "alias": "netsuite_transactions_data", "checksum": {"name": "sha256", "checksum": "c1d88d96de5d5e6ed310a6b008df7390a2aaf7b0d857668e0dfed259f0c704ed"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.690861, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\""}, "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_transaction_lines_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_transaction_lines_data.csv", "original_file_path": "seeds/netsuite_transaction_lines_data.csv", "name": "netsuite_transaction_lines_data", "alias": "netsuite_transaction_lines_data", "checksum": {"name": "sha256", "checksum": "6786bdf4b6e00d6243008c46d0bb69a21158ff27265690503aaa9d8b6faa01d2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.69212, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\""}, "model.netsuite_source.stg_netsuite2__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_transactions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions_tmp", "model.netsuite_source.stg_netsuite2__transactions_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transactions"], "unique_id": "model.netsuite_source.stg_netsuite2__transactions", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transactions_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transactions_tmp')),\n staging_columns=get_netsuite2_transactions_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_id,\n transactionnumber as transaction_number,\n type as transaction_type,\n memo,\n trandate as transaction_date,\n status,\n createddate as created_at,\n duedate as due_date_at,\n closedate as closed_at,\n currency as currency_id,\n entity as entity_id,\n postingperiod as accounting_period_id,\n posting = 'T' as is_posting,\n intercoadj = 'T' as is_intercompany_adjustment,\n isreversal = 'T' as is_reversal\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transactions_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transactions.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transactions.sql", "name": "stg_netsuite2__transactions", "alias": "stg_netsuite2__transactions", "checksum": {"name": "sha256", "checksum": "6cfa8b003b02cfe90d29c76cb3690de25444fb558c3735c7b2dc4a89fb005251"}, "tags": [], "refs": [["stg_netsuite2__transactions_tmp"], ["stg_netsuite2__transactions_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_number": {"name": "transaction_number", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the transaction is a posting event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany_adjustment": {"name": "is_intercompany_adjustment", "description": "Boolean indicating if the transaction is an intercompany adjustment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_reversal": {"name": "is_reversal", "description": "Boolean indicating if the transaction is a reversal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.629515, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n transactionnumber\n \n as \n \n transactionnumber\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n trandate\n \n as \n \n trandate\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n createddate\n \n as \n \n createddate\n \n, \n \n \n duedate\n \n as \n \n duedate\n \n, \n \n \n closedate\n \n as \n \n closedate\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n entity\n \n as \n \n entity\n \n, \n \n \n postingperiod\n \n as \n \n postingperiod\n \n, \n \n \n posting\n \n as \n \n posting\n \n, \n cast(null as TEXT) as \n \n intercoadj\n \n , \n \n \n isreversal\n \n as \n \n isreversal\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_id,\n transactionnumber as transaction_number,\n type as transaction_type,\n memo,\n trandate as transaction_date,\n status,\n createddate as created_at,\n duedate as due_date_at,\n closedate as closed_at,\n currency as currency_id,\n entity as entity_id,\n postingperiod as accounting_period_id,\n posting = 'T' as is_posting,\n intercoadj = 'T' as is_intercompany_adjustment,\n isreversal = 'T' as is_reversal\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\""}, "model.netsuite_source.stg_netsuite2__jobs": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_job_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs_tmp", "model.netsuite_source.stg_netsuite2__jobs_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__jobs"], "unique_id": "model.netsuite_source.stg_netsuite2__jobs", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__jobs_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__jobs_tmp')),\n staging_columns=get_job_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n id as job_id,\n externalid as job_external_id,\n customer as customer_id,\n entityid as entity_id,\n defaultbillingaddress as billing_address_id,\n defaultshippingaddress as shipping_address_id,\n parent as parent_id\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__jobs.sql", "original_file_path": "models/netsuite2/stg_netsuite2__jobs.sql", "name": "stg_netsuite2__jobs", "alias": "stg_netsuite2__jobs", "checksum": {"name": "sha256", "checksum": "ad872a5592725850b2d219ce6051a429a48a1a0850bec9681dabc65b0b2f7cc9"}, "tags": [], "refs": [["stg_netsuite2__jobs_tmp"], ["stg_netsuite2__jobs_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all jobs.", "columns": {"job_id": {"name": "job_id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_external_id": {"name": "job_external_id", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "Reference the the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Default billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__jobs.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.617078, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountnumber\n \n as \n \n accountnumber\n \n, \n \n \n actualtime\n \n as \n \n actualtime\n \n, \n \n \n allowallresourcesfortasks\n \n as \n \n allowallresourcesfortasks\n \n, \n \n \n allowexpenses\n \n as \n \n allowexpenses\n \n, \n \n \n allowtime\n \n as \n \n allowtime\n \n, \n \n \n alternatecontact\n \n as \n \n alternatecontact\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n billingschedule\n \n as \n \n billingschedule\n \n, \n \n \n calculatedenddate\n \n as \n \n calculatedenddate\n \n, \n \n \n calculatedenddatebaseline\n \n as \n \n calculatedenddatebaseline\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n contactlist\n \n as \n \n contactlist\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n currencyprecision\n \n as \n \n currencyprecision\n \n, \n \n \n custentity1\n \n as \n \n custentity1\n \n, \n \n \n custentity4\n \n as \n \n custentity4\n \n, \n \n \n custentity5\n \n as \n \n custentity5\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n enddate\n \n as \n \n enddate\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitystatus\n \n as \n \n entitystatus\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n estimatedcost\n \n as \n \n estimatedcost\n \n, \n \n \n estimatedgrossprofit\n \n as \n \n estimatedgrossprofit\n \n, \n \n \n estimatedgrossprofitpercent\n \n as \n \n estimatedgrossprofitpercent\n \n, \n \n \n estimatedlaborcost\n \n as \n \n estimatedlaborcost\n \n, \n \n \n estimatedlaborcostbaseline\n \n as \n \n estimatedlaborcostbaseline\n \n, \n \n \n estimatedlaborrevenue\n \n as \n \n estimatedlaborrevenue\n \n, \n \n \n estimatedrevenue\n \n as \n \n estimatedrevenue\n \n, \n \n \n estimatedtime\n \n as \n \n estimatedtime\n \n, \n \n \n estimatedtimeoverride\n \n as \n \n estimatedtimeoverride\n \n, \n \n \n estimatedtimeoverridebaseline\n \n as \n \n estimatedtimeoverridebaseline\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n files\n \n as \n \n files\n \n, \n \n \n forecastchargerunondemand\n \n as \n \n forecastchargerunondemand\n \n, \n \n \n fxrate\n \n as \n \n fxrate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includecrmtasksintotals\n \n as \n \n includecrmtasksintotals\n \n, \n \n \n isexempttime\n \n as \n \n isexempttime\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isproductivetime\n \n as \n \n isproductivetime\n \n, \n \n \n isutilizedtime\n \n as \n \n isutilizedtime\n \n, \n \n \n jobbillingtype\n \n as \n \n jobbillingtype\n \n, \n \n \n jobitem\n \n as \n \n jobitem\n \n, \n \n \n jobprice\n \n as \n \n jobprice\n \n, \n \n \n jobtype\n \n as \n \n jobtype\n \n, \n \n \n lastbaselinedate\n \n as \n \n lastbaselinedate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n limittimetoassignees\n \n as \n \n limittimetoassignees\n \n, \n \n \n materializetime\n \n as \n \n materializetime\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n percentcomplete\n \n as \n \n percentcomplete\n \n, \n \n \n percenttimecomplete\n \n as \n \n percenttimecomplete\n \n, \n \n \n primarycontact\n \n as \n \n primarycontact\n \n, \n \n \n projectedenddate\n \n as \n \n projectedenddate\n \n, \n \n \n projectedenddatebaseline\n \n as \n \n projectedenddatebaseline\n \n, \n \n \n projectmanager\n \n as \n \n projectmanager\n \n, \n \n \n startdate\n \n as \n \n startdate\n \n, \n \n \n startdatebaseline\n \n as \n \n startdatebaseline\n \n, \n \n \n timeapproval\n \n as \n \n timeapproval\n \n, \n \n \n timeremaining\n \n as \n \n timeremaining\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n id as job_id,\n externalid as job_external_id,\n customer as customer_id,\n entityid as entity_id,\n defaultbillingaddress as billing_address_id,\n defaultshippingaddress as shipping_address_id,\n parent as parent_id\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\""}, "model.netsuite_source.stg_netsuite2__vendors": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_vendors_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors_tmp", "model.netsuite_source.stg_netsuite2__vendors_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendors"], "unique_id": "model.netsuite_source.stg_netsuite2__vendors", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__vendors_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__vendors_tmp')),\n staging_columns=get_netsuite2_vendors_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as vendor_id,\n companyname as company_name,\n datecreated as create_date_at,\n category as vendor_category_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__vendors.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendors.sql", "name": "stg_netsuite2__vendors", "alias": "stg_netsuite2__vendors", "checksum": {"name": "sha256", "checksum": "f4b5f8a87be234ed979c5f09110de8a2d32b791a6cc35fad0034b80493c6c4bb"}, "tags": [], "refs": [["stg_netsuite2__vendors_tmp"], ["stg_netsuite2__vendors_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all vendor information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendors.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.631171, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountnumber\n \n as \n \n accountnumber\n \n, \n \n \n altemail\n \n as \n \n altemail\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n altphone\n \n as \n \n altphone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balanceprimary\n \n as \n \n balanceprimary\n \n, \n cast(null as INT) as \n \n billingclass\n \n , \n \n \n category\n \n as \n \n category\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n contactlist\n \n as \n \n contactlist\n \n, \n \n \n creditlimit\n \n as \n \n creditlimit\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n defaultbankaccount\n \n as \n \n defaultbankaccount\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n defaultvendorpaymentaccount\n \n as \n \n defaultvendorpaymentaccount\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n emailpreference\n \n as \n \n emailpreference\n \n, \n \n \n emailtransactions\n \n as \n \n emailtransactions\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n expenseaccount\n \n as \n \n expenseaccount\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n faxtransactions\n \n as \n \n faxtransactions\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n giveaccess\n \n as \n \n giveaccess\n \n, \n \n \n homephone\n \n as \n \n homephone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n incoterm\n \n as \n \n incoterm\n \n, \n cast(null as TEXT) as \n \n isautogeneratedrepresentingentity\n \n , \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isjobresourcevend\n \n as \n \n isjobresourcevend\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n laborcost\n \n as \n \n laborcost\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n legalname\n \n as \n \n legalname\n \n, \n \n \n middlename\n \n as \n \n middlename\n \n, \n \n \n mobilephone\n \n as \n \n mobilephone\n \n, \n \n \n payablesaccount\n \n as \n \n payablesaccount\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n printoncheckas\n \n as \n \n printoncheckas\n \n, \n \n \n printtransactions\n \n as \n \n printtransactions\n \n, \n \n \n purchaseorderamount\n \n as \n \n purchaseorderamount\n \n, \n \n \n purchaseorderquantity\n \n as \n \n purchaseorderquantity\n \n, \n \n \n purchaseorderquantitydiff\n \n as \n \n purchaseorderquantitydiff\n \n, \n \n \n receiptamount\n \n as \n \n receiptamount\n \n, \n \n \n receiptquantity\n \n as \n \n receiptquantity\n \n, \n \n \n receiptquantitydiff\n \n as \n \n receiptquantitydiff\n \n, \n cast(null as INT) as \n \n representingsubsidiary\n \n , \n \n \n rolesforsearch\n \n as \n \n rolesforsearch\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n subsidiaryedition\n \n as \n \n subsidiaryedition\n \n, \n \n \n terms\n \n as \n \n terms\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n unbilledorders\n \n as \n \n unbilledorders\n \n, \n \n \n unbilledordersprimary\n \n as \n \n unbilledordersprimary\n \n, \n \n \n url\n \n as \n \n url\n \n, \n \n \n workcalendar\n \n as \n \n workcalendar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as vendor_id,\n companyname as company_name,\n datecreated as create_date_at,\n category as vendor_category_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\""}, "model.netsuite_source.stg_netsuite2__classes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_classes_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__classes_tmp", "model.netsuite_source.stg_netsuite2__classes_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__classes"], "unique_id": "model.netsuite_source.stg_netsuite2__classes", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__classes_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__classes_tmp')),\n staging_columns=get_netsuite2_classes_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as class_id,\n externalid as class_external_id,\n name,\n fullname as full_name,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('classes_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__classes.sql", "original_file_path": "models/netsuite2/stg_netsuite2__classes.sql", "name": "stg_netsuite2__classes", "alias": "stg_netsuite2__classes", "checksum": {"name": "sha256", "checksum": "55d1438c5add45a09f7a06b5edb622b71d7b1fb040fdf473c3db51261844d4a1"}, "tags": [], "refs": [["stg_netsuite2__classes_tmp"], ["stg_netsuite2__classes_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all classes set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_external_id": {"name": "class_external_id", "description": "Reference to the external class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the class is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__classes.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.603311, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as class_id,\n externalid as class_external_id,\n name,\n fullname as full_name,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\""}, "model.netsuite_source.stg_netsuite2__account_types": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounttype_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types_tmp", "model.netsuite_source.stg_netsuite2__account_types_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__account_types"], "unique_id": "model.netsuite_source.stg_netsuite2__account_types", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__account_types_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__account_types_tmp')),\n staging_columns=get_accounttype_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n id as account_type_id,\n balancesheet = 'T' as is_balancesheet,\n {%- if target.type == 'bigquery' -%}\n `left` \n {%- elif target.type == 'snowflake' -%}\n \"LEFT\"\n {%- elif target.type in ('redshift', 'postgres') -%}\n \"left\" \n {%- else -%}\n left\n {%- endif -%} = 'T' as is_leftside,\n longname as type_name\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__account_types.sql", "original_file_path": "models/netsuite2/stg_netsuite2__account_types.sql", "name": "stg_netsuite2__account_types", "alias": "stg_netsuite2__account_types", "checksum": {"name": "sha256", "checksum": "899ddfe641e319f7830072bbb040247692af2e25cfd465b838d27b46746b0106"}, "tags": [], "refs": [["stg_netsuite2__account_types_tmp"], ["stg_netsuite2__account_types_tmp"]], "sources": [], "metrics": [], "description": "A table containing the various account types within Netsuite.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Boolean indicating if the account type is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Boolean indicating if the account type is leftside.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__account_types.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.593041, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balancesheet\n \n as \n \n balancesheet\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n defaultcashflowratetype\n \n as \n \n defaultcashflowratetype\n \n, \n \n \n defaultgeneralratetype\n \n as \n \n defaultgeneralratetype\n \n, \n \n \n eliminationalgo\n \n as \n \n eliminationalgo\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includeinrevaldefault\n \n as \n \n includeinrevaldefault\n \n, \n \n \n internalid\n \n as \n \n internalid\n \n, \n \n \n \n \n \"left\"\n \n \n \n as \n \n \n \n \"left\"\n \n \n \n, \n \n \n longname\n \n as \n \n longname\n \n, \n \n \n seqnum\n \n as \n \n seqnum\n \n, \n \n \n usercanchangerevaloption\n \n as \n \n usercanchangerevaloption\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n id as account_type_id,\n balancesheet = 'T' as is_balancesheet,\"left\"= 'T' as is_leftside,\n longname as type_name\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\""}, "model.netsuite_source.stg_netsuite2__entities": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_entity_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entities_tmp", "model.netsuite_source.stg_netsuite2__entities_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entities"], "unique_id": "model.netsuite_source.stg_netsuite2__entities", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__entities_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__entities_tmp')),\n staging_columns=get_entity_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as entity_id,\n parent as parent_id,\n entitytitle as entity_name,\n type as entity_type,\n isperson = 'T' as is_person,\n contact as contact_id,\n customer as customer_id,\n employee as employee_id,\n project as job_id,\n vendor as vendor_id\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__entities.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entities.sql", "name": "stg_netsuite2__entities", "alias": "stg_netsuite2__entities", "checksum": {"name": "sha256", "checksum": "96c2b4dc091545f8b992e7fd62354e3df9fcf7bfe2756a44bad286e691454492"}, "tags": [], "refs": [["stg_netsuite2__entities_tmp"], ["stg_netsuite2__entities_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all entities in Netsuite.", "columns": {"entity_id": {"name": "entity_id", "description": "Th \"The entity id of the entity used for the record.\"e unique identifier of the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The \"Unique identifier of the customer.\"unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_name": {"name": "entity_name", "description": "The entity name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating whether the entity is a person.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_id": {"name": "job_id", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_type": {"name": "entity_type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Th \"The unique identifier of the vendor.\"e unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entities.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.611362, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n altemail\n \n as \n \n altemail\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n altphone\n \n as \n \n altphone\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n employee\n \n as \n \n employee\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n genericresource\n \n as \n \n genericresource\n \n, \n \n \n homephone\n \n as \n \n homephone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n laborcost\n \n as \n \n laborcost\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n middlename\n \n as \n \n middlename\n \n, \n \n \n mobilephone\n \n as \n \n mobilephone\n \n, \n \n \n othername\n \n as \n \n othername\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n partner\n \n as \n \n partner\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n project\n \n as \n \n project\n \n, \n \n \n projecttemplate\n \n as \n \n projecttemplate\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n toplevelparent\n \n as \n \n toplevelparent\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as entity_id,\n parent as parent_id,\n entitytitle as entity_name,\n type as entity_type,\n isperson = 'T' as is_person,\n contact as contact_id,\n customer as customer_id,\n employee as employee_id,\n project as job_id,\n vendor as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\""}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounting_periods_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_periods"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_periods_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_periods_tmp')),\n staging_columns=get_netsuite2_accounting_periods_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_period_id,\n parent as parent_id, \n periodname as name,\n startdate as starting_at,\n enddate as ending_at,\n closedondate as closed_at,\n isquarter = 'T' as is_quarter,\n isyear = 'T' as is_year,\n isadjust = 'T' as is_adjustment,\n isposting = 'T' as is_posting,\n closed = 'T' as is_closed,\n alllocked = 'T' as is_all_locked,\n arlocked = 'T' as is_ar_locked,\n aplocked = 'T' as is_ap_locked\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_periods.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_periods.sql", "name": "stg_netsuite2__accounting_periods", "alias": "stg_netsuite2__accounting_periods", "checksum": {"name": "sha256", "checksum": "8007d75811cab3d6e1a2041de1c45e56095ba2e376c83d96bdeb8909527b4f7d"}, "tags": [], "refs": [["stg_netsuite2__accounting_periods_tmp"], ["stg_netsuite2__accounting_periods_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_quarter": {"name": "is_quarter", "description": "Boolean indicating if the accounting period is the initial quarter.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_year": {"name": "is_year", "description": "Boolean indicating if the accounting period is the initial period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Boolean indicating if the accounting period is an adjustment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the accounting period is posting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_all_locked": {"name": "is_all_locked", "description": "Boolean indicating if all the accounting periods are locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_ar_locked": {"name": "is_ar_locked", "description": "Boolean indicating if the ar accounting period is locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_ap_locked": {"name": "is_ap_locked", "description": "Boolean indicating if the ap accounting period is locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_periods.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.599118, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n alllocked\n \n as \n \n alllocked\n \n, \n \n \n allownonglchanges\n \n as \n \n allownonglchanges\n \n, \n \n \n aplocked\n \n as \n \n aplocked\n \n, \n \n \n arlocked\n \n as \n \n arlocked\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n closedondate\n \n as \n \n closedondate\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n enddate\n \n as \n \n enddate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isadjust\n \n as \n \n isadjust\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isposting\n \n as \n \n isposting\n \n, \n \n \n isquarter\n \n as \n \n isquarter\n \n, \n \n \n isyear\n \n as \n \n isyear\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n periodname\n \n as \n \n periodname\n \n, \n \n \n startdate\n \n as \n \n startdate\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_period_id,\n parent as parent_id, \n periodname as name,\n startdate as starting_at,\n enddate as ending_at,\n closedondate as closed_at,\n isquarter = 'T' as is_quarter,\n isyear = 'T' as is_year,\n isadjust = 'T' as is_adjustment,\n isposting = 'T' as is_posting,\n closed = 'T' as is_closed,\n alllocked = 'T' as is_all_locked,\n arlocked = 'T' as is_ar_locked,\n aplocked = 'T' as is_ap_locked\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\""}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accountingperiodfiscalcalendars_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_period_fiscal_cal"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_period_fiscal_cal_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_period_fiscal_cal_tmp')),\n staging_columns=get_accountingperiodfiscalcalendars_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingperiod as accounting_period_id,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "name": "stg_netsuite2__accounting_period_fiscal_cal", "alias": "stg_netsuite2__accounting_period_fiscal_cal", "checksum": {"name": "sha256", "checksum": "2678f0fb6ff02c4a845196aa5ca3538a4a526d711e6fd3a36bda1bd96facb37d"}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal_tmp"], ["stg_netsuite2__accounting_period_fiscal_cal_tmp"]], "sources": [], "metrics": [], "description": "A table containing the accounting fiscal calendar periods.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.596755, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountingperiod\n \n as \n \n accountingperiod\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n fiscalcalendar\n \n as \n \n fiscalcalendar\n \n, \n \n \n parent\n \n as \n \n parent\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingperiod as accounting_period_id,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\""}, "model.netsuite_source.stg_netsuite2__customers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_customers_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__customers_tmp", "model.netsuite_source.stg_netsuite2__customers_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__customers"], "unique_id": "model.netsuite_source.stg_netsuite2__customers", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__customers_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__customers_tmp')),\n staging_columns=get_netsuite2_customers_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as customer_id,\n entityid as entity_id,\n externalid as customer_external_id,\n parent as parent_id,\n isperson = 'T' as is_person,\n companyname as company_name,\n firstname as first_name,\n lastname as last_name,\n email as email_address,\n phone as phone_number,\n defaultbillingaddress as default_billing_address_id,\n defaultshippingaddress as default_shipping_address_id,\n receivablesaccount as receivables_account_id,\n currency as currency_id,\n firstorderdate as date_first_order_at\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('customers_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__customers.sql", "original_file_path": "models/netsuite2/stg_netsuite2__customers.sql", "name": "stg_netsuite2__customers", "alias": "stg_netsuite2__customers", "checksum": {"name": "sha256", "checksum": "d0d06f971eb7ccff2cbba7e2d5b137177f34095ea8781804fbea74025b14189f"}, "tags": [], "refs": [["stg_netsuite2__customers_tmp"], ["stg_netsuite2__customers_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating if the customer is an individual person.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Last name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Customers email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_billing_address_id": {"name": "default_billing_address_id", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_shipping_address_id": {"name": "default_shipping_address_id", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivables_account_id": {"name": "receivables_account_id", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__customers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.608005, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n receivablesaccount\n \n as \n \n receivablesaccount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n firstorderdate\n \n as \n \n firstorderdate\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as customer_id,\n entityid as entity_id,\n externalid as customer_external_id,\n parent as parent_id,\n isperson = 'T' as is_person,\n companyname as company_name,\n firstname as first_name,\n lastname as last_name,\n email as email_address,\n phone as phone_number,\n defaultbillingaddress as default_billing_address_id,\n defaultshippingaddress as default_shipping_address_id,\n receivablesaccount as receivables_account_id,\n currency as currency_id,\n firstorderdate as date_first_order_at\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\""}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accountingbooksubsidiaries_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_book_subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_book_subsidiaries_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_book_subsidiaries_tmp')),\n staging_columns=get_accountingbooksubsidiaries_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingbook as accounting_book_id,\n status,\n subsidiary as subsidiary_id\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "name": "stg_netsuite2__accounting_book_subsidiaries", "alias": "stg_netsuite2__accounting_book_subsidiaries", "checksum": {"name": "sha256", "checksum": "c118a8fc8aada69254a37255a604f17695966064c01244257bc501aa4e843718"}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries_tmp"], ["stg_netsuite2__accounting_book_subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "A table containing the various account books and the respective subsidiaries.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.593993, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountingbook\n \n as \n \n accountingbook\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingbook as accounting_book_id,\n status,\n subsidiary as subsidiary_id\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\""}, "model.netsuite_source.stg_netsuite2__accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounts_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts_tmp", "model.netsuite_source.stg_netsuite2__accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounts"], "unique_id": "model.netsuite_source.stg_netsuite2__accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounts_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounts_tmp')),\n staging_columns=get_netsuite2_accounts_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as account_id, \n externalid as account_external_id,\n parent as parent_id,\n acctnumber as account_number,\n accttype as account_type_id,\n fullname as name,\n description as account_description,\n deferralacct as deferral_account_id,\n cashflowrate as cash_flow_rate_type,\n generalrate as general_rate_type,\n currency as currency_id,\n class as class_id,\n department as department_id,\n location as location_id,\n includechildren = 'T' as is_including_child_subs,\n isinactive = 'T' as is_inactive,\n issummary = 'T' as is_summary,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }}\n \n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounts.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounts.sql", "name": "stg_netsuite2__accounts", "alias": "stg_netsuite2__accounts", "checksum": {"name": "sha256", "checksum": "784d22fb98d78fd586615f77eacad4791287ef26e5638f184eb117fe0f008585"}, "tags": [], "refs": [["stg_netsuite2__accounts_tmp"], ["stg_netsuite2__accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounts set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_external_id": {"name": "account_external_id", "description": "Reference to the external account,", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Netsuite generate account number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Reference to the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_description": {"name": "account_description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferral_account_id": {"name": "deferral_account_id", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_rate_type": {"name": "cash_flow_rate_type", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_including_child_subs": {"name": "is_including_child_subs", "description": "Boolean indicating if the account includes sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the account is inactive.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_summary": {"name": "is_summary", "description": "Boolean indicating if the account is a summary account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.602101, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n acctnumber\n \n as \n \n acctnumber\n \n, \n \n \n accttype\n \n as \n \n accttype\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n deferralacct\n \n as \n \n deferralacct\n \n, \n \n \n cashflowrate\n \n as \n \n cashflowrate\n \n, \n \n \n generalrate\n \n as \n \n generalrate\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n class\n \n as \n \n class\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n includechildren\n \n as \n \n includechildren\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n issummary\n \n as \n \n issummary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as account_id, \n externalid as account_external_id,\n parent as parent_id,\n acctnumber as account_number,\n accttype as account_type_id,\n fullname as name,\n description as account_description,\n deferralacct as deferral_account_id,\n cashflowrate as cash_flow_rate_type,\n generalrate as general_rate_type,\n currency as currency_id,\n class as class_id,\n department as department_id,\n location as location_id,\n includechildren = 'T' as is_including_child_subs,\n isinactive = 'T' as is_inactive,\n issummary = 'T' as is_summary,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\""}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_transaction_lines_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_lines"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transaction_lines_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transaction_lines_tmp')),\n staging_columns=get_netsuite2_transaction_lines_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_line_id,\n transaction as transaction_id,\n linesequencenumber as transaction_line_number,\n memo,\n entity as entity_id,\n item as item_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n department as department_id,\n isclosed = 'T' as is_closed,\n isbillable = 'T' as is_billable,\n iscogs = 'T' as is_cogs,\n cleared = 'T' as is_cleared,\n commitmentfirm = 'T' as is_commitment_firm,\n mainline = 'T' as is_main_line,\n taxline = 'T' as is_tax_line\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transaction_lines_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_lines.sql", "name": "stg_netsuite2__transaction_lines", "alias": "stg_netsuite2__transaction_lines", "checksum": {"name": "sha256", "checksum": "f9c8883dafafdece7fb1ec344c62126790721198f540457a66a762808d96bc3b"}, "tags": [], "refs": [["stg_netsuite2__transaction_lines_tmp"], ["stg_netsuite2__transaction_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_number": {"name": "transaction_line_number", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the transaction line is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_billable": {"name": "is_billable", "description": "Boolean indicating if the transaction line is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_cogs": {"name": "is_cogs", "description": "Boolean indicating if the transaction line is a cost of goods sold entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_cleared": {"name": "is_cleared", "description": "Boolean indicating if the transaction line is cleared.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_commitment_firm": {"name": "is_commitment_firm", "description": "Boolean indicating if the transaction line is a commitment firm.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_main_line": {"name": "is_main_line", "description": "Boolean indicating if the transaction line is a main line entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_tax_line": {"name": "is_tax_line", "description": "Boolean indicating if the transaction line is a tax line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.627028, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n transaction\n \n as \n \n transaction\n \n, \n \n \n linesequencenumber\n \n as \n \n linesequencenumber\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n entity\n \n as \n \n entity\n \n, \n \n \n item\n \n as \n \n item\n \n, \n \n \n class\n \n as \n \n class\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n isclosed\n \n as \n \n isclosed\n \n, \n \n \n isbillable\n \n as \n \n isbillable\n \n, \n \n \n iscogs\n \n as \n \n iscogs\n \n, \n \n \n cleared\n \n as \n \n cleared\n \n, \n \n \n commitmentfirm\n \n as \n \n commitmentfirm\n \n, \n \n \n mainline\n \n as \n \n mainline\n \n, \n \n \n taxline\n \n as \n \n taxline\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_line_id,\n transaction as transaction_id,\n linesequencenumber as transaction_line_number,\n memo,\n entity as entity_id,\n item as item_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n department as department_id,\n isclosed = 'T' as is_closed,\n isbillable = 'T' as is_billable,\n iscogs = 'T' as is_cogs,\n cleared = 'T' as is_cleared,\n commitmentfirm = 'T' as is_commitment_firm,\n mainline = 'T' as is_main_line,\n taxline = 'T' as is_tax_line\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\""}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_subsidiaries_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__subsidiaries_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__subsidiaries_tmp')),\n staging_columns=get_netsuite2_subsidiaries_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as subsidiary_id,\n name,\n fullname as full_name,\n email as email_address,\n mainaddress as main_address_id,\n country,\n state,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('subsidiaries_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__subsidiaries.sql", "name": "stg_netsuite2__subsidiaries", "alias": "stg_netsuite2__subsidiaries", "checksum": {"name": "sha256", "checksum": "3be3646f51e6cbce641a4069402d860f7db873e67e2cd8f73a58345d3a91b378"}, "tags": [], "refs": [["stg_netsuite2__subsidiaries_tmp"], ["stg_netsuite2__subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.6217191, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n mainaddress\n \n as \n \n mainaddress\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n fiscalcalendar\n \n as \n \n fiscalcalendar\n \n, \n \n \n parent\n \n as \n \n parent\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as subsidiary_id,\n name,\n fullname as full_name,\n email as email_address,\n mainaddress as main_address_id,\n country,\n state,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\""}, "model.netsuite_source.stg_netsuite2__entity_address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_entityaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entity_address_tmp", "model.netsuite_source.stg_netsuite2__entity_address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entity_address"], "unique_id": "model.netsuite_source.stg_netsuite2__entity_address", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__entity_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__entity_address_tmp')),\n staging_columns=get_entityaddress_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__entity_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entity_address.sql", "name": "stg_netsuite2__entity_address", "alias": "stg_netsuite2__entity_address", "checksum": {"name": "sha256", "checksum": "71fa72175fd4e45cae5f56d051c957830f1b8593aaa90b849d9610dd48668b2c"}, "tags": [], "refs": [["stg_netsuite2__entity_address_tmp"], ["stg_netsuite2__entity_address_tmp"]], "sources": [], "metrics": [], "description": "A table containing addresses and the various entities which they map.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entity_address.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.613086, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n addr1\n \n as \n \n addr1\n \n, \n \n \n addr2\n \n as \n \n addr2\n \n, \n \n \n addr3\n \n as \n \n addr3\n \n, \n \n \n addressee\n \n as \n \n addressee\n \n, \n \n \n addrphone\n \n as \n \n addrphone\n \n, \n \n \n addrtext\n \n as \n \n addrtext\n \n, \n \n \n attention\n \n as \n \n attention\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n dropdownstate\n \n as \n \n dropdownstate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n nkey\n \n as \n \n nkey\n \n, \n \n \n override\n \n as \n \n override\n \n, \n \n \n recordowner\n \n as \n \n recordowner\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address\""}, "model.netsuite_source.stg_netsuite2__location_main_address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_locationmainaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp", "model.netsuite_source.stg_netsuite2__location_main_address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__location_main_address"], "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__location_main_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__location_main_address_tmp')),\n staging_columns=get_locationmainaddress_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__location_main_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__location_main_address.sql", "name": "stg_netsuite2__location_main_address", "alias": "stg_netsuite2__location_main_address", "checksum": {"name": "sha256", "checksum": "71d9ec2fd5ab6d7c0a577fc3bbdc4444c6c266d474e88c3906f12a2d3798dfaf"}, "tags": [], "refs": [["stg_netsuite2__location_main_address_tmp"], ["stg_netsuite2__location_main_address_tmp"]], "sources": [], "metrics": [], "description": "A table containing the location main addresses.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__location_main_address.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.618846, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n addr1\n \n as \n \n addr1\n \n, \n \n \n addr2\n \n as \n \n addr2\n \n, \n \n \n addr3\n \n as \n \n addr3\n \n, \n \n \n addressee\n \n as \n \n addressee\n \n, \n \n \n addrphone\n \n as \n \n addrphone\n \n, \n \n \n addrtext\n \n as \n \n addrtext\n \n, \n \n \n attention\n \n as \n \n attention\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n dropdownstate\n \n as \n \n dropdownstate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n nkey\n \n as \n \n nkey\n \n, \n \n \n override\n \n as \n \n override\n \n, \n \n \n recordowner\n \n as \n \n recordowner\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address\""}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendorcategory_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendor_categories"], "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_vendor_categories', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__vendor_categories_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__vendor_categories_tmp')),\n staging_columns=get_vendorcategory_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as vendor_category_id,\n name,\n _fivetran_synced\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__vendor_categories.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendor_categories.sql", "name": "stg_netsuite2__vendor_categories", "alias": "stg_netsuite2__vendor_categories", "checksum": {"name": "sha256", "checksum": "97c7d63cfd24e9435a2fdb5c2754a8ced8122a34eb4ca8261ba58c1d0d6b85ad"}, "tags": [], "refs": [["stg_netsuite2__vendor_categories_tmp"], ["stg_netsuite2__vendor_categories_tmp"]], "sources": [], "metrics": [], "description": "A table containing categories and how they map to vendors.", "columns": {"vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendor_categories.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.630173, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n istaxagency\n \n as \n \n istaxagency\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as vendor_category_id,\n name,\n _fivetran_synced\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\""}, "model.netsuite_source.stg_netsuite2__departments": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_departments_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__departments_tmp", "model.netsuite_source.stg_netsuite2__departments_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__departments"], "unique_id": "model.netsuite_source.stg_netsuite2__departments", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__departments_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__departments_tmp')),\n staging_columns=get_netsuite2_departments_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as department_id,\n parent as parent_id,\n name,\n fullname as full_name,\n subsidiary as subsidiary_id,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('departments_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__departments.sql", "original_file_path": "models/netsuite2/stg_netsuite2__departments.sql", "name": "stg_netsuite2__departments", "alias": "stg_netsuite2__departments", "checksum": {"name": "sha256", "checksum": "11fa478222fba8dfc22c4d63b005fe315d9fb8f98dbf5e5e3af23a3304d763ed"}, "tags": [], "refs": [["stg_netsuite2__departments_tmp"], ["stg_netsuite2__departments_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all departments set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the department is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__departments.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.609663, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as department_id,\n parent as parent_id,\n name,\n fullname as full_name,\n subsidiary as subsidiary_id,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\""}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transactionaccountingline_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_accounting_lines"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transaction_accounting_lines_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transaction_accounting_lines_tmp')),\n staging_columns=get_transactionaccountingline_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n transaction as transaction_id,\n transactionline as transaction_line_id,\n accountingbook as accounting_book_id,\n account as account_id,\n posting = 'T' as is_posting,\n amount,\n credit as credit_amount,\n debit as debit_amount,\n netamount as net_amount,\n amountpaid as paid_amount,\n amountunpaid as unpaid_amount\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "name": "stg_netsuite2__transaction_accounting_lines", "alias": "stg_netsuite2__transaction_accounting_lines", "checksum": {"name": "sha256", "checksum": "8f11b9036edda818da5d940ba0b8f012be8602910c6488dac1b8f0c854165e1a"}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines_tmp"], ["stg_netsuite2__transaction_accounting_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The tra \"The transaction id of referenced for the record.\"nsaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "net_amount": {"name": "net_amount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Reference to the accounting book of the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the entry is posting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_amount": {"name": "credit_amount", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "debit_amount": {"name": "debit_amount", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "paid_amount": {"name": "paid_amount", "description": "Total amount paid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unpaid_amount": {"name": "unpaid_amount", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.62384, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account\n \n as \n \n account\n \n, \n \n \n accountingbook\n \n as \n \n accountingbook\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amountlinked\n \n as \n \n amountlinked\n \n, \n \n \n amountpaid\n \n as \n \n amountpaid\n \n, \n \n \n amountunpaid\n \n as \n \n amountunpaid\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n debit\n \n as \n \n debit\n \n, \n \n \n exchangerate\n \n as \n \n exchangerate\n \n, \n \n \n netamount\n \n as \n \n netamount\n \n, \n \n \n overheadparentitem\n \n as \n \n overheadparentitem\n \n, \n \n \n paymentamountunused\n \n as \n \n paymentamountunused\n \n, \n \n \n paymentamountused\n \n as \n \n paymentamountused\n \n, \n \n \n posting\n \n as \n \n posting\n \n, \n \n \n transaction\n \n as \n \n transaction\n \n, \n \n \n transactionline\n \n as \n \n transactionline\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n transaction as transaction_id,\n transactionline as transaction_line_id,\n accountingbook as accounting_book_id,\n account as account_id,\n posting = 'T' as is_posting,\n amount,\n credit as credit_amount,\n debit as debit_amount,\n netamount as net_amount,\n amountpaid as paid_amount,\n amountunpaid as unpaid_amount\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\""}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__consolidated_exchange_rates"], "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__consolidated_exchange_rates_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__consolidated_exchange_rates_tmp')),\n staging_columns=get_netsuite2_consolidated_exchange_rates_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as consolidated_exchange_rate_id,\n postingperiod as accounting_period_id,\n fromcurrency as from_currency_id,\n fromsubsidiary as from_subsidiary_id,\n tocurrency as to_currency_id,\n tosubsidiary as to_subsidiary_id,\n currentrate as current_rate, \n averagerate as average_rate,\n historicalrate as historical_rate\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('consolidated_exchange_rates_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "name": "stg_netsuite2__consolidated_exchange_rates", "alias": "stg_netsuite2__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "d818a9207416d913242d57089bfdf69d9c3f9e0c0d865ec51ae24b6b36a93c34"}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates_tmp"], ["stg_netsuite2__consolidated_exchange_rates_tmp"]], "sources": [], "metrics": [], "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"consolidated_exchange_rate_id": {"name": "consolidated_exchange_rate_id", "description": "unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_currency_id": {"name": "from_currency_id", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_currency_id": {"name": "to_currency_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.604864, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n averagerate\n \n as \n \n averagerate\n \n, \n \n \n currentrate\n \n as \n \n currentrate\n \n, \n \n \n fromcurrency\n \n as \n \n fromcurrency\n \n, \n \n \n fromsubsidiary\n \n as \n \n fromsubsidiary\n \n, \n \n \n historicalrate\n \n as \n \n historicalrate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n postingperiod\n \n as \n \n postingperiod\n \n, \n \n \n tocurrency\n \n as \n \n tocurrency\n \n, \n \n \n tosubsidiary\n \n as \n \n tosubsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as consolidated_exchange_rate_id,\n postingperiod as accounting_period_id,\n fromcurrency as from_currency_id,\n fromsubsidiary as from_subsidiary_id,\n tocurrency as to_currency_id,\n tosubsidiary as to_subsidiary_id,\n currentrate as current_rate, \n averagerate as average_rate,\n historicalrate as historical_rate\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\""}, "model.netsuite_source.stg_netsuite2__accounting_books": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounting_books_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp", "model.netsuite_source.stg_netsuite2__accounting_books_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_books"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_books_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_books_tmp')),\n staging_columns=get_netsuite2_accounting_books_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_book_id,\n name as accounting_book_name,\n basebook as base_book_id,\n effectiveperiod as effective_period_id,\n isadjustmentonly = 'T' as is_adjustment_only,\n isconsolidated = 'T' as is_consolidated,\n contingentrevenuehandling as is_contingent_revenue_handling,\n isprimary = 'T' as is_primary,\n twosteprevenueallocation as is_two_step_revenue_allocation\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_books.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_books.sql", "name": "stg_netsuite2__accounting_books", "alias": "stg_netsuite2__accounting_books", "checksum": {"name": "sha256", "checksum": "e788e1638657cbb7b1ed9812d6cfb43592b178e898dc43019c94f3c309dc2339"}, "tags": [], "refs": [["stg_netsuite2__accounting_books_tmp"], ["stg_netsuite2__accounting_books_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_book_id": {"name": "base_book_id", "description": "Reference to the base book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_period_id": {"name": "effective_period_id", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment_only": {"name": "is_adjustment_only", "description": "Boolean indicating if the accounting book is an adjustment only.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_consolidated": {"name": "is_consolidated", "description": "Boolean indicating if the accounting book is a consolidated entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_contingent_revenue_handling": {"name": "is_contingent_revenue_handling", "description": "Boolean indicating if the accounting book is contingent revenue handling.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating if the accounting book is a primary entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_two_step_revenue_allocation": {"name": "is_two_step_revenue_allocation", "description": "Boolean indicating if the accounting book is a two step revenue allocation entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_books.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.595814, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n basebook\n \n as \n \n basebook\n \n, \n cast(null as TEXT) as \n \n contingentrevenuehandling\n \n , \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n effectiveperiod\n \n as \n \n effectiveperiod\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isadjustmentonly\n \n as \n \n isadjustmentonly\n \n, \n \n \n isconsolidated\n \n as \n \n isconsolidated\n \n, \n \n \n isprimary\n \n as \n \n isprimary\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n subsidiariesstring\n \n as \n \n subsidiariesstring\n \n, \n cast(null as TEXT) as \n \n twosteprevenueallocation\n \n , \n cast(null as TEXT) as \n \n unbilledreceivablegrouping\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_book_id,\n name as accounting_book_name,\n basebook as base_book_id,\n effectiveperiod as effective_period_id,\n isadjustmentonly = 'T' as is_adjustment_only,\n isconsolidated = 'T' as is_consolidated,\n contingentrevenuehandling as is_contingent_revenue_handling,\n isprimary = 'T' as is_primary,\n twosteprevenueallocation as is_two_step_revenue_allocation\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\""}, "model.netsuite_source.stg_netsuite2__items": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_items_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__items_tmp", "model.netsuite_source.stg_netsuite2__items_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__items"], "unique_id": "model.netsuite_source.stg_netsuite2__items", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__items_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__items_tmp')),\n staging_columns=get_netsuite2_items_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as item_id,\n fullname as name,\n itemtype as type_name,\n description as sales_description,\n department as department_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n assetaccount as asset_account_id,\n expenseaccount as expense_account_id,\n gainlossaccount as gain_loss_account_id,\n incomeaccount as income_account_id,\n intercoexpenseaccount as interco_expense_account_id,\n intercoincomeaccount as interco_income_account_id,\n deferralaccount as deferred_expense_account_id,\n deferredrevenueaccount as deferred_revenue_account_id,\n parent as parent_item_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__items.sql", "original_file_path": "models/netsuite2/stg_netsuite2__items.sql", "name": "stg_netsuite2__items", "alias": "stg_netsuite2__items", "checksum": {"name": "sha256", "checksum": "4ab457d19f1ffedf51a61dd39255596ec7199e281ebda2927355ee002d5b2614"}, "tags": [], "refs": [["stg_netsuite2__items_tmp"], ["stg_netsuite2__items_tmp"]], "sources": [], "metrics": [], "description": "Table detailing information about the items created in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "Item type name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "gain_loss_account_id": {"name": "gain_loss_account_id", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "interco_expense_account_id": {"name": "interco_expense_account_id", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "interco_income_account_id": {"name": "interco_income_account_id", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferred_expense_account_id": {"name": "deferred_expense_account_id", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferred_revenue_account_id": {"name": "deferred_revenue_account_id", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__items.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.6157892, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items_tmp\"\n\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as INT) as \n \n alternatedemandsourceitem\n \n , \n cast(null as INT) as \n \n amortizationperiod\n \n , \n cast(null as INT) as \n \n amortizationtemplate\n \n , \n \n \n assetaccount\n \n as \n \n assetaccount\n \n, \n cast(null as TEXT) as \n \n atpmethod\n \n , \n cast(null as TEXT) as \n \n autoexpandkitforrevenuemgmt\n \n , \n cast(null as FLOAT) as \n \n averagecost\n \n , \n cast(null as INT) as \n \n backwardconsumptiondays\n \n , \n cast(null as INT) as \n \n billexchratevarianceacct\n \n , \n cast(null as INT) as \n \n billingschedule\n \n , \n cast(null as INT) as \n \n billpricevarianceacct\n \n , \n cast(null as INT) as \n \n billqtyvarianceacct\n \n , \n cast(null as TEXT) as \n \n buildentireassembly\n \n , \n cast(null as FLOAT) as \n \n buildtime\n \n , \n \n \n class\n \n as \n \n class\n \n, \n cast(null as INT) as \n \n consumptionunit\n \n , \n cast(null as TEXT) as \n \n copydescription\n \n , \n cast(null as FLOAT) as \n \n cost\n \n , \n cast(null as FLOAT) as \n \n costestimate\n \n , \n cast(null as TEXT) as \n \n costestimatetype\n \n , \n cast(null as TEXT) as \n \n costingmethod\n \n , \n cast(null as TEXT) as \n \n costingmethoddisplay\n \n , \n cast(null as TEXT) as \n \n countryofmanufacture\n \n , \n cast(null as TIMESTAMP) as \n \n createddate\n \n , \n cast(null as INT) as \n \n createexpenseplanson\n \n , \n cast(null as TEXT) as \n \n createjob\n \n , \n cast(null as INT) as \n \n createrevenueplanson\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n \n \n deferralaccount\n \n as \n \n deferralaccount\n \n, \n cast(null as INT) as \n \n deferredrevenueaccount\n \n , \n cast(null as TEXT) as \n \n deferrevrec\n \n , \n cast(null as FLOAT) as \n \n demandmodifier\n \n , \n cast(null as TEXT) as \n \n demandsource\n \n , \n cast(null as INT) as \n \n demandtimefence\n \n , \n \n \n department\n \n as \n \n department\n \n, \n \n \n description\n \n as \n \n description\n \n, \n cast(null as TEXT) as \n \n directrevenueposting\n \n , \n cast(null as TEXT) as \n \n displayname\n \n , \n cast(null as INT) as \n \n dropshipexpenseaccount\n \n , \n cast(null as TEXT) as \n \n enforceminqtyinternally\n \n , \n cast(null as TEXT) as \n \n excludefromsitemap\n \n , \n \n \n expenseaccount\n \n as \n \n expenseaccount\n \n, \n cast(null as INT) as \n \n expenseamortizationrule\n \n , \n cast(null as TEXT) as \n \n externalid\n \n , \n cast(null as FLOAT) as \n \n fixedlotsize\n \n , \n cast(null as INT) as \n \n forwardconsumptiondays\n \n , \n cast(null as TEXT) as \n \n froogleproductfeed\n \n , \n \n \n fullname\n \n as \n \n fullname\n \n, \n cast(null as FLOAT) as \n \n fxcost\n \n , \n \n \n gainlossaccount\n \n as \n \n gainlossaccount\n \n, \n cast(null as TEXT) as \n \n generateaccruals\n \n , \n cast(null as FLOAT) as \n \n handlingcost\n \n , \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n includechildren\n \n , \n \n \n incomeaccount\n \n as \n \n incomeaccount\n \n, \n cast(null as INT) as \n \n intercodefrevaccount\n \n , \n cast(null as INT) as \n \n intercoexpenseaccount\n \n , \n cast(null as INT) as \n \n intercoincomeaccount\n \n , \n cast(null as TEXT) as \n \n isdropshipitem\n \n , \n cast(null as TEXT) as \n \n isfulfillable\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n islotitem\n \n , \n cast(null as TEXT) as \n \n isonline\n \n , \n cast(null as TEXT) as \n \n isphantom\n \n , \n cast(null as TEXT) as \n \n isserialitem\n \n , \n cast(null as TEXT) as \n \n isspecialorderitem\n \n , \n cast(null as TEXT) as \n \n isspecialworkorderitem\n \n , \n cast(null as TEXT) as \n \n itemid\n \n , \n cast(null as INT) as \n \n itemrevenuecategory\n \n , \n \n \n itemtype\n \n as \n \n itemtype\n \n, \n cast(null as TIMESTAMP) as \n \n lastmodifieddate\n \n , \n cast(null as FLOAT) as \n \n lastpurchaseprice\n \n , \n cast(null as INT) as \n \n leadtime\n \n , \n \n \n location\n \n as \n \n location\n \n, \n cast(null as TEXT) as \n \n manufacturer\n \n , \n cast(null as TEXT) as \n \n matchbilltoreceipt\n \n , \n cast(null as TEXT) as \n \n matrixitemnametemplate\n \n , \n cast(null as TEXT) as \n \n matrixtype\n \n , \n cast(null as INT) as \n \n maximumquantity\n \n , \n cast(null as INT) as \n \n minimumquantity\n \n , \n cast(null as TEXT) as \n \n mpn\n \n , \n cast(null as TEXT) as \n \n nextagcategory\n \n , \n cast(null as TEXT) as \n \n nextagproductfeed\n \n , \n cast(null as TEXT) as \n \n overallquantitypricingtype\n \n , \n \n \n parent\n \n as \n \n parent\n \n, \n cast(null as INT) as \n \n periodiclotsizedays\n \n , \n cast(null as TEXT) as \n \n periodiclotsizetype\n \n , \n cast(null as INT) as \n \n preferredlocation\n \n , \n cast(null as INT) as \n \n pricinggroup\n \n , \n cast(null as TEXT) as \n \n printitems\n \n , \n cast(null as INT) as \n \n prodpricevarianceacct\n \n , \n cast(null as INT) as \n \n prodqtyvarianceacct\n \n , \n cast(null as INT) as \n \n projectexpensetype\n \n , \n cast(null as INT) as \n \n projecttemplate\n \n , \n cast(null as TEXT) as \n \n purchasedescription\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as INT) as \n \n purchasepricevarianceacct\n \n , \n cast(null as INT) as \n \n purchaseunit\n \n , \n cast(null as INT) as \n \n quantitypricingschedule\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as TEXT) as \n \n relateditemsdescription\n \n , \n cast(null as INT) as \n \n rescheduleindays\n \n , \n cast(null as INT) as \n \n rescheduleoutdays\n \n , \n cast(null as FLOAT) as \n \n residual\n \n , \n cast(null as INT) as \n \n revenueallocationgroup\n \n , \n cast(null as INT) as \n \n revenuerecognitionrule\n \n , \n cast(null as INT) as \n \n revrecforecastrule\n \n , \n cast(null as INT) as \n \n revreclassfxaccount\n \n , \n cast(null as TEXT) as \n \n roundupascomponent\n \n , \n cast(null as FLOAT) as \n \n safetystocklevel\n \n , \n cast(null as INT) as \n \n saleunit\n \n , \n cast(null as INT) as \n \n scrapacct\n \n , \n cast(null as TEXT) as \n \n searchkeywords\n \n , \n cast(null as TEXT) as \n \n seasonaldemand\n \n , \n cast(null as TEXT) as \n \n shipindividually\n \n , \n cast(null as INT) as \n \n shippackage\n \n , \n cast(null as FLOAT) as \n \n shippingcost\n \n , \n cast(null as TEXT) as \n \n shoppingdotcomcategory\n \n , \n cast(null as TEXT) as \n \n shoppingproductfeed\n \n , \n cast(null as INT) as \n \n shopzillacategoryid\n \n , \n cast(null as TEXT) as \n \n shopzillaproductfeed\n \n , \n cast(null as TEXT) as \n \n sitemappriority\n \n , \n cast(null as TEXT) as \n \n stockdescription\n \n , \n cast(null as INT) as \n \n stockunit\n \n , \n cast(null as TEXT) as \n \n storedescription\n \n , \n cast(null as INT) as \n \n storedisplayimage\n \n , \n cast(null as TEXT) as \n \n storedisplayname\n \n , \n cast(null as INT) as \n \n storedisplaythumbnail\n \n , \n \n \n subsidiary\n \n as \n \n subsidiary\n \n, \n cast(null as TEXT) as \n \n subtype\n \n , \n cast(null as TEXT) as \n \n supplylotsizingmethod\n \n , \n cast(null as TEXT) as \n \n supplyreplenishmentmethod\n \n , \n cast(null as INT) as \n \n supplytimefence\n \n , \n cast(null as TEXT) as \n \n supplytype\n \n , \n cast(null as FLOAT) as \n \n totalquantityonhand\n \n , \n cast(null as FLOAT) as \n \n totalvalue\n \n , \n cast(null as FLOAT) as \n \n transferprice\n \n , \n cast(null as INT) as \n \n unbuildvarianceaccount\n \n , \n cast(null as INT) as \n \n unitstype\n \n , \n cast(null as TEXT) as \n \n upccode\n \n , \n cast(null as TEXT) as \n \n usebins\n \n , \n cast(null as TEXT) as \n \n usemarginalrates\n \n , \n cast(null as TEXT) as \n \n vendorname\n \n , \n cast(null as INT) as \n \n vendreturnvarianceaccount\n \n , \n cast(null as TEXT) as \n \n vsoedelivered\n \n , \n cast(null as TEXT) as \n \n vsoepermitdiscount\n \n , \n cast(null as TEXT) as \n \n vsoesopgroup\n \n , \n cast(null as FLOAT) as \n \n weight\n \n , \n cast(null as INT) as \n \n weightunit\n \n , \n cast(null as TEXT) as \n \n weightunits\n \n , \n cast(null as INT) as \n \n wipacct\n \n , \n cast(null as INT) as \n \n wipvarianceacct\n \n , \n cast(null as TEXT) as \n \n yahooproductfeed\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as item_id,\n fullname as name,\n itemtype as type_name,\n description as sales_description,\n department as department_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n assetaccount as asset_account_id,\n expenseaccount as expense_account_id,\n gainlossaccount as gain_loss_account_id,\n incomeaccount as income_account_id,\n intercoexpenseaccount as interco_expense_account_id,\n intercoincomeaccount as interco_income_account_id,\n deferralaccount as deferred_expense_account_id,\n deferredrevenueaccount as deferred_revenue_account_id,\n parent as parent_item_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\""}, "model.netsuite_source.stg_netsuite2__currencies": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies_tmp", "model.netsuite_source.stg_netsuite2__currencies_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__currencies"], "unique_id": "model.netsuite_source.stg_netsuite2__currencies", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__currencies_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__currencies_tmp')),\n staging_columns=get_netsuite2_currencies_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as currency_id,\n name,\n symbol\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__currencies.sql", "original_file_path": "models/netsuite2/stg_netsuite2__currencies.sql", "name": "stg_netsuite2__currencies", "alias": "stg_netsuite2__currencies", "checksum": {"name": "sha256", "checksum": "1732f9e10cdf1c28cb34fff21a98ce324488fb97373e28f948479653fddb4f52"}, "tags": [], "refs": [["stg_netsuite2__currencies_tmp"], ["stg_netsuite2__currencies_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all currency information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__currencies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.6056561, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n currencyprecision\n \n as \n \n currencyprecision\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n displaysymbol\n \n as \n \n displaysymbol\n \n, \n \n \n exchangerate\n \n as \n \n exchangerate\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fxrateupdatetimezone\n \n as \n \n fxrateupdatetimezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includeinfxrateupdates\n \n as \n \n includeinfxrateupdates\n \n, \n \n \n isbasecurrency\n \n as \n \n isbasecurrency\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n overridecurrencyformat\n \n as \n \n overridecurrencyformat\n \n, \n \n \n symbol\n \n as \n \n symbol\n \n, \n \n \n symbolplacement\n \n as \n \n symbolplacement\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as currency_id,\n name,\n symbol\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\""}, "model.netsuite_source.stg_netsuite2__locations": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_locations_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__locations_tmp", "model.netsuite_source.stg_netsuite2__locations_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__locations"], "unique_id": "model.netsuite_source.stg_netsuite2__locations", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__locations_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__locations_tmp')),\n staging_columns=get_netsuite2_locations_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as location_id,\n name,\n fullname as full_name,\n mainaddress as main_address_id,\n parent as parent_id,\n subsidiary as subsidiary_id\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('locations_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__locations.sql", "original_file_path": "models/netsuite2/stg_netsuite2__locations.sql", "name": "stg_netsuite2__locations", "alias": "stg_netsuite2__locations", "checksum": {"name": "sha256", "checksum": "f209763d31da50bf88ec1381c272ebc8800cec9be699a5d2bb3d35ee83a213c3"}, "tags": [], "refs": [["stg_netsuite2__locations_tmp"], ["stg_netsuite2__locations_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__locations.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.620047, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n mainaddress\n \n as \n \n mainaddress\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as location_id,\n name,\n fullname as full_name,\n mainaddress as main_address_id,\n parent as parent_id,\n subsidiary as subsidiary_id\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\""}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.subsidiary"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "name": "stg_netsuite2__subsidiaries_tmp", "alias": "stg_netsuite2__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "6666ee27a531fb4f909f1a5bb1ed78860aaab0fce53c3a7d64110b1bb94f8978"}, "tags": [], "refs": [], "sources": [["netsuite2", "subsidiary"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.071636, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transactions_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transactions') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "name": "stg_netsuite2__transactions_tmp", "alias": "stg_netsuite2__transactions_tmp", "checksum": {"name": "sha256", "checksum": "1625f18a3c8501316cb07107ba8fa7193670933f4257bbb1d9af4ba906a2dad0"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.0754728, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions_tmp\""}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity_address"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entity_address_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_entity_address') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "name": "stg_netsuite2__entity_address_tmp", "alias": "stg_netsuite2__entity_address_tmp", "checksum": {"name": "sha256", "checksum": "fcf2a49835607b81e8b532e6103522e1ae39c31c40cab59ac1afe6d989ddf459"}, "tags": [], "refs": [], "sources": [["netsuite2", "entity_address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.079575, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address_tmp\""}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account_type"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__account_types_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_account_types') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "name": "stg_netsuite2__account_types_tmp", "alias": "stg_netsuite2__account_types_tmp", "checksum": {"name": "sha256", "checksum": "3415db1a2707377cc7b0653882967c59ed725db0dd959536151d511a41c678c1"}, "tags": [], "refs": [], "sources": [["netsuite2", "account_type"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.083173, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_periods_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_accounting_periods') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "name": "stg_netsuite2__accounting_periods_tmp", "alias": "stg_netsuite2__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "0149cbd8d601dfcba0487e44f82d6ec166fb513775670cf614d6c6be4164c437"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_period"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.086814, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods_tmp\""}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.job"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__jobs_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_jobs') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "name": "stg_netsuite2__jobs_tmp", "alias": "stg_netsuite2__jobs_tmp", "checksum": {"name": "sha256", "checksum": "14799bd78ef93ef464b4dca07908e6ee44a7ff9881faf86757d39b5f4b1d0fd9"}, "tags": [], "refs": [], "sources": [["netsuite2", "job"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.090452, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs_tmp\""}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_line"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transaction_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "name": "stg_netsuite2__transaction_lines_tmp", "alias": "stg_netsuite2__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "15ebc09543829a7c09c0e49c546ffa8aae2b509054f26f5cbf06f3aa31731c80"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.0941818, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines_tmp\""}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "name": "stg_netsuite2__accounts_tmp", "alias": "stg_netsuite2__accounts_tmp", "checksum": {"name": "sha256", "checksum": "2a8d008c5c30f44eca40fa5871ea2579d0b51cf45cf10a39addb620fd870259f"}, "tags": [], "refs": [], "sources": [["netsuite2", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.097894, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts_tmp\""}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.customer"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__customers_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_customers') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "name": "stg_netsuite2__customers_tmp", "alias": "stg_netsuite2__customers_tmp", "checksum": {"name": "sha256", "checksum": "e2db5f557cfe416e87f1b8fb38e2b62277871d2ed4c8b3f0ba83f35bcda6ecba"}, "tags": [], "refs": [], "sources": [["netsuite2", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.102211, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers_tmp\""}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entities_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_entities') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "name": "stg_netsuite2__entities_tmp", "alias": "stg_netsuite2__entities_tmp", "checksum": {"name": "sha256", "checksum": "bb55a24286c0f26fd9e40a0f56b694fed4a736385a94deeb64ee3360c1310c29"}, "tags": [], "refs": [], "sources": [["netsuite2", "entity"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.10587, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities_tmp\""}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.currency"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__currencies_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_currencies') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "name": "stg_netsuite2__currencies_tmp", "alias": "stg_netsuite2__currencies_tmp", "checksum": {"name": "sha256", "checksum": "1f06a4a8f01197479386859c92462ba485f304e6c944130f66424fb4511a5799"}, "tags": [], "refs": [], "sources": [["netsuite2", "currency"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.109623, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies_tmp\""}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendors_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_vendors') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "name": "stg_netsuite2__vendors_tmp", "alias": "stg_netsuite2__vendors_tmp", "checksum": {"name": "sha256", "checksum": "e18a924a82a09bd660ba8517d492632efd1c2eabb10e4979e93f422e558d8022"}, "tags": [], "refs": [], "sources": [["netsuite2", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.113313, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors_tmp\""}, "model.netsuite_source.stg_netsuite2__items_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.item"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__items_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_items') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__items_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "name": "stg_netsuite2__items_tmp", "alias": "stg_netsuite2__items_tmp", "checksum": {"name": "sha256", "checksum": "521a428cea21fb1a256cb1a87335aebc92154e37ead547e3e21b5deeae0ea6c2"}, "tags": [], "refs": [], "sources": [["netsuite2", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.1168928, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_books_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_books') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "name": "stg_netsuite2__accounting_books_tmp", "alias": "stg_netsuite2__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "c5d1ee56d0181cee10a2ab0599060ec8954702bfebc8663cc523ae85849de31d"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_book"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.1204748, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_period_fiscal_cal_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_period_fiscal_calendars') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "alias": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "checksum": {"name": "sha256", "checksum": "d88060ffff63d2d9030c23de1a17a15dd7a34ecda89e323dc7e9cf140a04b03a"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_period_fiscal_calendars"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.124979, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal_tmp\""}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor_category"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendor_categories_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_vendor_categories', true))) }}\n\nselect * \nfrom {{ var('netsuite2_vendor_categories') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "name": "stg_netsuite2__vendor_categories_tmp", "alias": "stg_netsuite2__vendor_categories_tmp", "checksum": {"name": "sha256", "checksum": "6dd5fe29284858908fa31920941227618d5bc33eee62ff15e447357c5f1d791a"}, "tags": [], "refs": [], "sources": [["netsuite2", "vendor_category"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.128723, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_book_subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_book_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "alias": "stg_netsuite2__accounting_book_subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "c7c5eee54b160ba7e7cc3ca69b4ff74939dcb9ca44966e3e1ef95650743e4d03"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_book_subsidiaries"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.1325629, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_accounting_line"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_accounting_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transaction_accounting_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "alias": "stg_netsuite2__transaction_accounting_lines_tmp", "checksum": {"name": "sha256", "checksum": "91bfd0a5babb67c22979bdb03a16a185b90199fc905d8f55ec34516aa3674991"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction_accounting_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.1363862, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines_tmp\""}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location_main_address"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__location_main_address_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_location_main_address') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "name": "stg_netsuite2__location_main_address_tmp", "alias": "stg_netsuite2__location_main_address_tmp", "checksum": {"name": "sha256", "checksum": "360d4cd8b3a246007978c640ed7a423c49b628411bda7d8aab78f431f973d4be"}, "tags": [], "refs": [], "sources": [["netsuite2", "location_main_address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.140054, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address_tmp\""}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__locations_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_locations') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "name": "stg_netsuite2__locations_tmp", "alias": "stg_netsuite2__locations_tmp", "checksum": {"name": "sha256", "checksum": "f9747c40667070b7685c826bbaa541ec10a5dbcb5682fad9e65aa2b28b8b7e42"}, "tags": [], "refs": [], "sources": [["netsuite2", "location"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.143928, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations_tmp\""}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.department"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__departments_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_departments') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "name": "stg_netsuite2__departments_tmp", "alias": "stg_netsuite2__departments_tmp", "checksum": {"name": "sha256", "checksum": "d5a6479a4a567ab3f6c9f85f6a42fb752ab7889065c4f63f1ded657023ff54c9"}, "tags": [], "refs": [], "sources": [["netsuite2", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.148938, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments_tmp\""}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.classification"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__classes_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_classes') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "name": "stg_netsuite2__classes_tmp", "alias": "stg_netsuite2__classes_tmp", "checksum": {"name": "sha256", "checksum": "c5d7c66aef27878ade36b031c9e26b523c76373ac106b0f7b618a8e76f3518a2"}, "tags": [], "refs": [], "sources": [["netsuite2", "classification"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.152852, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes_tmp\""}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__consolidated_exchange_rates_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_consolidated_exchange_rates') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "alias": "stg_netsuite2__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "8cfcb1761c48b4f9b640cc61023b4106f86122fd925bea98200d2453da892c36"}, "tags": [], "refs": [], "sources": [["netsuite2", "consolidated_exchange_rate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.156758, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\""}, "model.netsuite_source.stg_netsuite__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transactions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__transactions_tmp", "model.netsuite_source.stg_netsuite__transactions_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transactions"], "unique_id": "model.netsuite_source.stg_netsuite__transactions", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__transactions_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__transactions_tmp')),\n staging_columns=get_transactions_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n status,\n trandate as transaction_date,\n currency_id,\n accounting_period_id,\n due_date as due_date_at,\n transaction_type,\n is_intercompany,\n is_advanced_intercompany,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transactions_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__transactions.sql", "original_file_path": "models/netsuite/stg_netsuite__transactions.sql", "name": "stg_netsuite__transactions", "alias": "stg_netsuite__transactions", "checksum": {"name": "sha256", "checksum": "229453298c19897d353712750c015e5fb7c80d41715a69a04bdb44c1d42dd50a"}, "tags": [], "refs": [["stg_netsuite__transactions_tmp"], ["stg_netsuite__transactions_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_advanced_intercompany": {"name": "is_advanced_intercompany", "description": "Value indicating whether the transaction is an advanced intercompany journal entry (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.5423949, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n is_advanced_intercompany\n \n as \n \n is_advanced_intercompany\n \n, \n \n \n is_intercompany\n \n as \n \n is_intercompany\n \n, \n \n \n status\n \n as \n \n status\n \n, \n cast(null as TIMESTAMP) as \n \n trandate\n \n , \n \n \n transaction_id\n \n as \n \n transaction_id\n \n, \n \n \n transaction_type\n \n as \n \n transaction_type\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n status,\n trandate as transaction_date,\n currency_id,\n accounting_period_id,\n due_date as due_date_at,\n transaction_type,\n is_intercompany,\n is_advanced_intercompany,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\""}, "model.netsuite_source.stg_netsuite__customers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_customers_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__customers_tmp", "model.netsuite_source.stg_netsuite__customers_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__customers"], "unique_id": "model.netsuite_source.stg_netsuite__customers", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__customers_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__customers_tmp')),\n staging_columns=get_customers_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n customer_id,\n companyname as company_name,\n customer_extid as customer_external_id,\n city,\n state,\n zipcode,\n country,\n date_first_order as date_first_order_at,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('customers_pass_through_columns') }}\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__customers.sql", "original_file_path": "models/netsuite/stg_netsuite__customers.sql", "name": "stg_netsuite__customers", "alias": "stg_netsuite__customers", "checksum": {"name": "sha256", "checksum": "c9e469c13b1608752f66936b6d5f93e6c21385726175cc422a3dcae92ac46025"}, "tags": [], "refs": [["stg_netsuite__customers_tmp"], ["stg_netsuite__customers_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__customers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.533014, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n city\n \n as \n \n city\n \n, \n cast(null as TEXT) as \n \n companyname\n \n , \n \n \n country\n \n as \n \n country\n \n, \n cast(null as TEXT) as \n \n customer_extid\n \n , \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date_first_order\n \n as \n \n date_first_order\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zipcode\n \n as \n \n zipcode\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n customer_id,\n companyname as company_name,\n customer_extid as customer_external_id,\n city,\n state,\n zipcode,\n country,\n date_first_order as date_first_order_at,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n \n\n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\""}, "model.netsuite_source.stg_netsuite__accounting_books": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounting_books_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books_tmp", "model.netsuite_source.stg_netsuite__accounting_books_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_books"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_books", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounting_books_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounting_books_tmp')),\n staging_columns=get_accounting_books_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n accounting_book_id,\n is_primary,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounting_books.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_books.sql", "name": "stg_netsuite__accounting_books", "alias": "stg_netsuite__accounting_books", "checksum": {"name": "sha256", "checksum": "1979e4645a6245ff201816e275fd790f10d92570aa910990ef7ac5a145a904f7"}, "tags": [], "refs": [["stg_netsuite__accounting_books_tmp"], ["stg_netsuite__accounting_books_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_books.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.524349, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n accounting_book_extid\n \n , \n \n \n accounting_book_id\n \n as \n \n accounting_book_id\n \n, \n cast(null as TEXT) as \n \n accounting_book_name\n \n , \n cast(null as FLOAT) as \n \n base_book_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_created\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as FLOAT) as \n \n effective_period_id\n \n , \n cast(null as TEXT) as \n \n form_template_component_id\n \n , \n cast(null as FLOAT) as \n \n form_template_id\n \n , \n cast(null as TEXT) as \n \n is_adjustment_only\n \n , \n cast(null as TEXT) as \n \n is_arrangement_level_reclass\n \n , \n cast(null as TEXT) as \n \n is_consolidated\n \n , \n cast(null as TEXT) as \n \n is_contingent_revenue_handling\n \n , \n cast(null as TEXT) as \n \n is_include_child_subsidiaries\n \n , \n \n \n is_primary\n \n as \n \n is_primary\n \n, \n cast(null as TEXT) as \n \n is_two_step_revenue_allocation\n \n , \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as TEXT) as \n \n unbilled_receivable_grouping\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n accounting_book_id,\n is_primary,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\""}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_consolidated_exchange_rates_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__consolidated_exchange_rates"], "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__consolidated_exchange_rates_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__consolidated_exchange_rates_tmp')),\n staging_columns=get_consolidated_exchange_rates_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n consolidated_exchange_rate_id,\n accounting_book_id,\n accounting_period_id,\n average_rate,\n current_rate,\n historical_rate,\n from_subsidiary_id,\n to_subsidiary_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('consolidated_exchange_rates_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "name": "stg_netsuite__consolidated_exchange_rates", "alias": "stg_netsuite__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "6a4909b08f327411a1947017c8f33d333e541e91c578c6c180dd754ebef85b9c"}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates_tmp"], ["stg_netsuite__consolidated_exchange_rates_tmp"]], "sources": [], "metrics": [], "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"consolidated_exchange_rate_id": {"name": "consolidated_exchange_rate_id", "description": "The unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "The accounting book the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.530654, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n accounting_book_id\n \n as \n \n accounting_book_id\n \n, \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n cast(null as FLOAT) as \n \n average_budget_rate\n \n , \n \n \n average_rate\n \n as \n \n average_rate\n \n, \n \n \n consolidated_exchange_rate_id\n \n as \n \n consolidated_exchange_rate_id\n \n, \n cast(null as FLOAT) as \n \n current_budget_rate\n \n , \n \n \n current_rate\n \n as \n \n current_rate\n \n, \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n \n \n from_subsidiary_id\n \n as \n \n from_subsidiary_id\n \n, \n cast(null as FLOAT) as \n \n historical_budget_rate\n \n , \n \n \n historical_rate\n \n as \n \n historical_rate\n \n, \n \n \n to_subsidiary_id\n \n as \n \n to_subsidiary_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n consolidated_exchange_rate_id,\n accounting_book_id,\n accounting_period_id,\n average_rate,\n current_rate,\n historical_rate,\n from_subsidiary_id,\n to_subsidiary_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\""}, "model.netsuite_source.stg_netsuite__transaction_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transaction_lines_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp", "model.netsuite_source.stg_netsuite__transaction_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transaction_lines"], "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__transaction_lines_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__transaction_lines_tmp')),\n staging_columns=get_transaction_lines_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n transaction_line_id,\n subsidiary_id,\n account_id,\n company_id,\n item_id,\n amount,\n non_posting_line,\n class_id,\n location_id,\n department_id,\n memo\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transaction_lines_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__transaction_lines.sql", "original_file_path": "models/netsuite/stg_netsuite__transaction_lines.sql", "name": "stg_netsuite__transaction_lines", "alias": "stg_netsuite__transaction_lines", "checksum": {"name": "sha256", "checksum": "439d9f1cc5d341305a11759ce2f4be9e154524b992103409aef648f97c471b80"}, "tags": [], "refs": [["stg_netsuite__transaction_lines_tmp"], ["stg_netsuite__transaction_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The subsidiary id of the subsidiary which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The item id of the item which is included in the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "non_posting_line": {"name": "non_posting_line", "description": "Value indicating whether the transaction line is a non posting line (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The class id of the class which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The location id of the location which the transaction line took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transaction_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.540724, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n non_posting_line\n \n as \n \n non_posting_line\n \n, \n \n \n subsidiary_id\n \n as \n \n subsidiary_id\n \n, \n \n \n transaction_id\n \n as \n \n transaction_id\n \n, \n \n \n transaction_line_id\n \n as \n \n transaction_line_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n transaction_line_id,\n subsidiary_id,\n account_id,\n company_id,\n item_id,\n amount,\n non_posting_line,\n class_id,\n location_id,\n department_id,\n memo\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\""}, "model.netsuite_source.stg_netsuite__income_accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_income_accounts_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts_tmp", "model.netsuite_source.stg_netsuite__income_accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__income_accounts"], "unique_id": "model.netsuite_source.stg_netsuite__income_accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__income_accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__income_accounts_tmp')),\n staging_columns=get_income_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n income_account_id,\n name, \n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__income_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__income_accounts.sql", "name": "stg_netsuite__income_accounts", "alias": "stg_netsuite__income_accounts", "checksum": {"name": "sha256", "checksum": "299fb45e200223bd290f01314ad47a4619932d39f3b04fe929a82c5ee8a0fe2b"}, "tags": [], "refs": [["stg_netsuite__income_accounts_tmp"], ["stg_netsuite__income_accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all income accounts.", "columns": {"income_account_id": {"name": "income_account_id", "description": "The unique identifier of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__income_accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.535718, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n account_number\n \n as \n \n account_number\n \n, \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as FLOAT) as \n \n current_balance\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n desription\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n income_account_extid\n \n , \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n cast(null as TEXT) as \n \n is_including_child_subs\n \n , \n cast(null as TEXT) as \n \n is_summary\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n income_account_id,\n name, \n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\""}, "model.netsuite_source.stg_netsuite__expense_accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_expense_accounts_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp", "model.netsuite_source.stg_netsuite__expense_accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__expense_accounts"], "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__expense_accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__expense_accounts_tmp')),\n staging_columns=get_expense_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n expense_account_id,\n name,\n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__expense_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__expense_accounts.sql", "name": "stg_netsuite__expense_accounts", "alias": "stg_netsuite__expense_accounts", "checksum": {"name": "sha256", "checksum": "f7c1276dddff15a68a1de673f503dc127efb4a2932756ea28c09c231aaf52b2c"}, "tags": [], "refs": [["stg_netsuite__expense_accounts_tmp"], ["stg_netsuite__expense_accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all expense accounts.", "columns": {"expense_account_id": {"name": "expense_account_id", "description": "The unique identifier of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__expense_accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.534802, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n account_number\n \n as \n \n account_number\n \n, \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as FLOAT) as \n \n current_balance\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n desription\n \n , \n cast(null as TEXT) as \n \n expense_account_extid\n \n , \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n is_including_child_subs\n \n , \n cast(null as TEXT) as \n \n is_summary\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n expense_account_id,\n name,\n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\""}, "model.netsuite_source.stg_netsuite__vendors": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendors_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__vendors_tmp", "model.netsuite_source.stg_netsuite__vendors_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendors"], "unique_id": "model.netsuite_source.stg_netsuite__vendors", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__vendors_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__vendors_tmp')),\n staging_columns=get_vendors_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n vendor_id,\n companyname as company_name,\n create_date as create_date_at,\n vendor_type_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your vendors_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('vendors_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__vendors.sql", "original_file_path": "models/netsuite/stg_netsuite__vendors.sql", "name": "stg_netsuite__vendors", "alias": "stg_netsuite__vendors", "checksum": {"name": "sha256", "checksum": "c588235e317970753f51be3cb41b70da9823d2476a989705e6f92aab38dd850d"}, "tags": [], "refs": [["stg_netsuite__vendors_tmp"], ["stg_netsuite__vendors_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The vendor's company name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendors.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.544096, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_owner\n \n , \n cast(null as TEXT) as \n \n accountnumber\n \n , \n cast(null as TEXT) as \n \n accounts_email\n \n , \n cast(null as FLOAT) as \n \n annual_revenue\n \n , \n cast(null as TEXT) as \n \n auto_renewals\n \n , \n cast(null as TEXT) as \n \n auto_send_statements\n \n , \n cast(null as TEXT) as \n \n billaddress\n \n , \n cast(null as FLOAT) as \n \n billing_class_id\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as TEXT) as \n \n companyname\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n \n \n create_date\n \n as \n \n create_date\n \n, \n cast(null as FLOAT) as \n \n creditlimit\n \n , \n cast(null as FLOAT) as \n \n currency_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n dic\n \n , \n cast(null as TEXT) as \n \n email\n \n , \n cast(null as TEXT) as \n \n email_bill_payment_vouchers\n \n , \n cast(null as TEXT) as \n \n email_cash_sales\n \n , \n cast(null as TEXT) as \n \n email_credit_notes\n \n , \n cast(null as TEXT) as \n \n email_invoices\n \n , \n cast(null as TEXT) as \n \n email_item_fulfilments\n \n , \n cast(null as TEXT) as \n \n email_purchase_orders\n \n , \n cast(null as TEXT) as \n \n email_quotes\n \n , \n cast(null as TEXT) as \n \n email_sales_orders\n \n , \n cast(null as TEXT) as \n \n email_statements\n \n , \n cast(null as TEXT) as \n \n employee_number\n \n , \n cast(null as TEXT) as \n \n exemption_certificate_no\n \n , \n cast(null as FLOAT) as \n \n expense_account_id\n \n , \n cast(null as TEXT) as \n \n fax\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n home_phone\n \n , \n cast(null as TEXT) as \n \n hris_id\n \n , \n cast(null as TEXT) as \n \n ico\n \n , \n cast(null as TEXT) as \n \n id_number_in_the_country_of_r\n \n , \n cast(null as FLOAT) as \n \n id_type_in_the_country_of_r_id\n \n , \n cast(null as FLOAT) as \n \n in_transit_balance\n \n , \n cast(null as TEXT) as \n \n incoterm\n \n , \n cast(null as FLOAT) as \n \n industry_id\n \n , \n cast(null as TEXT) as \n \n invoice_via_procurement_syste\n \n , \n cast(null as TEXT) as \n \n invoicing_details\n \n , \n cast(null as TEXT) as \n \n is1099eligible\n \n , \n cast(null as TEXT) as \n \n is_partner\n \n , \n cast(null as TEXT) as \n \n is_person\n \n , \n cast(null as TEXT) as \n \n isemailhtml\n \n , \n cast(null as TEXT) as \n \n isemailpdf\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as FLOAT) as \n \n labor_cost\n \n , \n cast(null as TIMESTAMP) as \n \n last_modified_date\n \n , \n cast(null as TIMESTAMP) as \n \n last_sales_activity\n \n , \n cast(null as TEXT) as \n \n line1\n \n , \n cast(null as TEXT) as \n \n line2\n \n , \n cast(null as TEXT) as \n \n line3\n \n , \n cast(null as TEXT) as \n \n loginaccess\n \n , \n cast(null as TEXT) as \n \n lsa_link\n \n , \n cast(null as TEXT) as \n \n lsa_link_name\n \n , \n cast(null as TEXT) as \n \n mobile_phone\n \n , \n cast(null as TIMESTAMP) as \n \n msa_effective_date\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as FLOAT) as \n \n no__of_employees\n \n , \n cast(null as FLOAT) as \n \n openbalance\n \n , \n cast(null as FLOAT) as \n \n openbalance_foreign\n \n , \n cast(null as FLOAT) as \n \n payables_account_id\n \n , \n cast(null as FLOAT) as \n \n payment_terms_id\n \n , \n cast(null as TEXT) as \n \n phone\n \n , \n cast(null as FLOAT) as \n \n prepayment_balance\n \n , \n cast(null as TEXT) as \n \n printoncheckas\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as TEXT) as \n \n purchases_email\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as FLOAT) as \n \n represents_subsidiary_id\n \n , \n cast(null as TEXT) as \n \n restrict_access_to_expensify\n \n , \n cast(null as TEXT) as \n \n salesforce_id\n \n , \n cast(null as TEXT) as \n \n shipaddress\n \n , \n cast(null as TEXT) as \n \n shipping_email\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as FLOAT) as \n \n subsidiary\n \n , \n cast(null as TEXT) as \n \n tax_contact_first_name\n \n , \n cast(null as FLOAT) as \n \n tax_contact_id\n \n , \n cast(null as TEXT) as \n \n tax_contact_last_name\n \n , \n cast(null as TEXT) as \n \n tax_contact_middle_name\n \n , \n cast(null as TEXT) as \n \n tax_number\n \n , \n cast(null as TEXT) as \n \n taxidnum\n \n , \n cast(null as FLOAT) as \n \n time_approver_id\n \n , \n cast(null as TEXT) as \n \n transactions_need_approval\n \n , \n cast(null as TEXT) as \n \n uen\n \n , \n cast(null as FLOAT) as \n \n unbilled_orders\n \n , \n cast(null as FLOAT) as \n \n unbilled_orders_foreign\n \n , \n cast(null as TEXT) as \n \n url\n \n , \n cast(null as TEXT) as \n \n vat_registration_no\n \n , \n cast(null as TEXT) as \n \n vendor_extid\n \n , \n \n \n vendor_id\n \n as \n \n vendor_id\n \n, \n \n \n vendor_type_id\n \n as \n \n vendor_type_id\n \n, \n cast(null as TEXT) as \n \n zipcode\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n vendor_id,\n companyname as company_name,\n create_date as create_date_at,\n vendor_type_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your vendors_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\""}, "model.netsuite_source.stg_netsuite__classes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_classes_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__classes_tmp", "model.netsuite_source.stg_netsuite__classes_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__classes"], "unique_id": "model.netsuite_source.stg_netsuite__classes", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__classes_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__classes_tmp')),\n staging_columns=get_classes_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n class_id,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('classes_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__classes.sql", "original_file_path": "models/netsuite/stg_netsuite__classes.sql", "name": "stg_netsuite__classes", "alias": "stg_netsuite__classes", "checksum": {"name": "sha256", "checksum": "edf56a2971642640474b042c3ec91efc7aa294b9fb3861a1bd747b61af23205b"}, "tags": [], "refs": [["stg_netsuite__classes_tmp"], ["stg_netsuite__classes_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all classes set up in Netsuite.", "columns": {"class_id": {"name": "class_id", "description": "The unique identifier of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__classes.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.5292091, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n class_id,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\""}, "model.netsuite_source.stg_netsuite__subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_subsidiaries_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp", "model.netsuite_source.stg_netsuite__subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__subsidiaries_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__subsidiaries_tmp')),\n staging_columns=get_subsidiaries_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n subsidiary_id,\n fiscal_calendar_id,\n full_name,\n name,\n parent_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('subsidiaries_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__subsidiaries.sql", "original_file_path": "models/netsuite/stg_netsuite__subsidiaries.sql", "name": "stg_netsuite__subsidiaries", "alias": "stg_netsuite__subsidiaries", "checksum": {"name": "sha256", "checksum": "f6477b555a1708adf2e9853d11edeba88e1fe42f4638d1f377e80f7a5523a622"}, "tags": [], "refs": [["stg_netsuite__subsidiaries_tmp"], ["stg_netsuite__subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id associated with the fiscal calendar the subsidiary is on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.5388858, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n address\n \n , \n cast(null as TEXT) as \n \n address1\n \n , \n cast(null as TEXT) as \n \n address2\n \n , \n cast(null as FLOAT) as \n \n base_currency_id\n \n , \n cast(null as TEXT) as \n \n branch_id\n \n , \n cast(null as TEXT) as \n \n brn\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n edition\n \n , \n cast(null as TEXT) as \n \n federal_number\n \n , \n \n \n fiscal_calendar_id\n \n as \n \n fiscal_calendar_id\n \n, \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n is_elimination\n \n , \n cast(null as TEXT) as \n \n is_moss\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n isinactive_bool\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n cast(null as FLOAT) as \n \n moss_nexus_id\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as TEXT) as \n \n return_address\n \n , \n cast(null as TEXT) as \n \n return_address1\n \n , \n cast(null as TEXT) as \n \n return_address2\n \n , \n cast(null as TEXT) as \n \n return_city\n \n , \n cast(null as TEXT) as \n \n return_country\n \n , \n cast(null as TEXT) as \n \n return_state\n \n , \n cast(null as TEXT) as \n \n return_zipcode\n \n , \n cast(null as TEXT) as \n \n shipping_address\n \n , \n cast(null as TEXT) as \n \n shipping_address1\n \n , \n cast(null as TEXT) as \n \n shipping_address2\n \n , \n cast(null as TEXT) as \n \n shipping_city\n \n , \n cast(null as TEXT) as \n \n shipping_country\n \n , \n cast(null as TEXT) as \n \n shipping_state\n \n , \n cast(null as TEXT) as \n \n shipping_zipcode\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as TEXT) as \n \n state_tax_number\n \n , \n cast(null as FLOAT) as \n \n subnav__searchable_subsidiary\n \n , \n cast(null as TEXT) as \n \n subsidiary_extid\n \n , \n \n \n subsidiary_id\n \n as \n \n subsidiary_id\n \n, \n cast(null as FLOAT) as \n \n taxonomy_reference_id\n \n , \n cast(null as TEXT) as \n \n tran_num_prefix\n \n , \n cast(null as TEXT) as \n \n uen\n \n , \n cast(null as TEXT) as \n \n url\n \n , \n cast(null as TEXT) as \n \n zipcode\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n subsidiary_id,\n fiscal_calendar_id,\n full_name,\n name,\n parent_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\""}, "model.netsuite_source.stg_netsuite__accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounts_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounts_tmp", "model.netsuite_source.stg_netsuite__accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounts"], "unique_id": "model.netsuite_source.stg_netsuite__accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounts_tmp')),\n staging_columns=get_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n account_id,\n parent_id,\n name,\n type_name,\n accountnumber as account_number,\n general_rate_type,\n is_leftside,\n is_balancesheet,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }}\n \n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__accounts.sql", "name": "stg_netsuite__accounts", "alias": "stg_netsuite__accounts", "checksum": {"name": "sha256", "checksum": "510d294af59df7ffa89fbfad25c7b865acc90b656833abb3aacf861889f170d1"}, "tags": [], "refs": [["stg_netsuite__accounts_tmp"], ["stg_netsuite__accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounts set up in Netsuite.", "columns": {"account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the type of the account (ie. Bank, Equity, Income, Expense).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.527921, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as TEXT) as \n \n accountnumber\n \n , \n \n \n general_rate_type\n \n as \n \n general_rate_type\n \n, \n \n \n is_balancesheet\n \n as \n \n is_balancesheet\n \n, \n \n \n is_leftside\n \n as \n \n is_leftside\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n type_name\n \n as \n \n type_name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n account_id,\n parent_id,\n name,\n type_name,\n accountnumber as account_number,\n general_rate_type,\n is_leftside,\n is_balancesheet,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\""}, "model.netsuite_source.stg_netsuite__items": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_items_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__items_tmp", "model.netsuite_source.stg_netsuite__items_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__items"], "unique_id": "model.netsuite_source.stg_netsuite__items", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__items_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__items_tmp')),\n staging_columns=get_items_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n item_id,\n name,\n type_name,\n salesdescription as sales_description,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your items_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('items_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__items.sql", "original_file_path": "models/netsuite/stg_netsuite__items.sql", "name": "stg_netsuite__items", "alias": "stg_netsuite__items", "checksum": {"name": "sha256", "checksum": "fba43c296243f470c88afcb940b71f6808f5ba3f6f9e00d086463b14d4e79e73"}, "tags": [], "refs": [["stg_netsuite__items_tmp"], ["stg_netsuite__items_tmp"]], "sources": [], "metrics": [], "description": "Table detailing information about the items created in Netsuite.", "columns": {"item_id": {"name": "item_id", "description": "The unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "The items sales description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__items.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.536746, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n allow_drop_ship\n \n , \n cast(null as FLOAT) as \n \n alt_demand_source_item_id\n \n , \n cast(null as FLOAT) as \n \n asset_account_id\n \n , \n cast(null as FLOAT) as \n \n atp_lead_time\n \n , \n cast(null as TEXT) as \n \n atp_method\n \n , \n cast(null as TEXT) as \n \n available_to_partners\n \n , \n cast(null as TEXT) as \n \n avatax_taxcode\n \n , \n cast(null as FLOAT) as \n \n averagecost\n \n , \n cast(null as FLOAT) as \n \n backward_consumption_days\n \n , \n cast(null as TEXT) as \n \n build_sub_assemblies\n \n , \n cast(null as FLOAT) as \n \n class_id\n \n , \n cast(null as FLOAT) as \n \n code_of_supply_id\n \n , \n cast(null as TEXT) as \n \n commodity_code\n \n , \n cast(null as FLOAT) as \n \n consumption_unit_id\n \n , \n cast(null as FLOAT) as \n \n cost_0\n \n , \n cast(null as TEXT) as \n \n cost_category\n \n , \n cast(null as TEXT) as \n \n cost_estimate_type\n \n , \n cast(null as TEXT) as \n \n costing_method\n \n , \n cast(null as TEXT) as \n \n country_of_manufacture\n \n , \n cast(null as TEXT) as \n \n create_plan_on_event_type\n \n , \n cast(null as TIMESTAMP) as \n \n created\n \n , \n cast(null as FLOAT) as \n \n current_on_order_count\n \n , \n cast(null as FLOAT) as \n \n custreturn_variance_account_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TIMESTAMP) as \n \n date_of_last_transaction\n \n , \n cast(null as FLOAT) as \n \n default_return_cost\n \n , \n cast(null as FLOAT) as \n \n deferred_expense_account_id\n \n , \n cast(null as FLOAT) as \n \n deferred_revenue_account_id\n \n , \n cast(null as TEXT) as \n \n demand_source\n \n , \n cast(null as FLOAT) as \n \n demand_time_fence\n \n , \n cast(null as FLOAT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n deposit\n \n , \n cast(null as TEXT) as \n \n displayname\n \n , \n cast(null as TEXT) as \n \n distribution_category\n \n , \n cast(null as TEXT) as \n \n distribution_network\n \n , \n cast(null as FLOAT) as \n \n dropship_expense_account_id\n \n , \n cast(null as TEXT) as \n \n effective_bom_control_type\n \n , \n cast(null as FLOAT) as \n \n expense_account_id\n \n , \n cast(null as TEXT) as \n \n featureddescription\n \n , \n cast(null as TEXT) as \n \n featureditem\n \n , \n cast(null as FLOAT) as \n \n fixed_lot_size\n \n , \n cast(null as FLOAT) as \n \n forward_consumption_days\n \n , \n cast(null as TEXT) as \n \n fraud_risk\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as FLOAT) as \n \n fx_adjustment_account_id\n \n , \n cast(null as FLOAT) as \n \n gain_loss_account_id\n \n , \n cast(null as FLOAT) as \n \n handling_cost\n \n , \n cast(null as TEXT) as \n \n hazmat\n \n , \n cast(null as TEXT) as \n \n hazmat_hazard_class\n \n , \n cast(null as TEXT) as \n \n hazmat_id\n \n , \n cast(null as TEXT) as \n \n hazmat_item_units\n \n , \n cast(null as FLOAT) as \n \n hazmat_item_units_qty\n \n , \n cast(null as TEXT) as \n \n hazmat_packing_group\n \n , \n cast(null as TEXT) as \n \n hazmat_shipping_name\n \n , \n cast(null as TEXT) as \n \n include_child_subsidiaries\n \n , \n cast(null as FLOAT) as \n \n income_account_id\n \n , \n cast(null as FLOAT) as \n \n interco_expense_account_id\n \n , \n cast(null as FLOAT) as \n \n interco_income_account_id\n \n , \n cast(null as FLOAT) as \n \n invt_count_classification\n \n , \n cast(null as FLOAT) as \n \n invt_count_interval\n \n , \n cast(null as TEXT) as \n \n is_cont_rev_handling\n \n , \n cast(null as TEXT) as \n \n is_enforce_min_qty_internally\n \n , \n cast(null as TEXT) as \n \n is_hold_rev_rec\n \n , \n cast(null as TEXT) as \n \n is_moss\n \n , \n cast(null as TEXT) as \n \n is_phantom\n \n , \n cast(null as TEXT) as \n \n is_special_order_item\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n isonline\n \n , \n cast(null as TEXT) as \n \n istaxable\n \n , \n cast(null as FLOAT) as \n \n item_defined_cost\n \n , \n cast(null as TEXT) as \n \n item_extid\n \n , \n \n \n item_id\n \n as \n \n item_id\n \n, \n cast(null as FLOAT) as \n \n item_image\n \n , \n cast(null as TEXT) as \n \n item_revenue_category\n \n , \n cast(null as FLOAT) as \n \n item_term_id\n \n , \n cast(null as TIMESTAMP) as \n \n last_cogs_correction\n \n , \n cast(null as TIMESTAMP) as \n \n last_invt_count_date\n \n , \n cast(null as FLOAT) as \n \n last_purchase_price\n \n , \n cast(null as FLOAT) as \n \n location_id\n \n , \n cast(null as TEXT) as \n \n lot_numbered_item\n \n , \n cast(null as TEXT) as \n \n lot_sizing_method\n \n , \n cast(null as TEXT) as \n \n manufacturer\n \n , \n cast(null as TEXT) as \n \n manufacturing_charge_item\n \n , \n cast(null as TEXT) as \n \n match_bill_to_receipt\n \n , \n cast(null as TEXT) as \n \n matrix_type\n \n , \n cast(null as FLOAT) as \n \n maximum_quantity\n \n , \n cast(null as FLOAT) as \n \n minimum_quantity\n \n , \n cast(null as TIMESTAMP) as \n \n modified\n \n , \n cast(null as TEXT) as \n \n mpn\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n nature_of_transaction_codes_id\n \n , \n cast(null as TIMESTAMP) as \n \n next_invt_count_date\n \n , \n cast(null as FLOAT) as \n \n ng_asset_type_id\n \n , \n cast(null as FLOAT) as \n \n ns_lead_time\n \n , \n cast(null as TEXT) as \n \n offersupport\n \n , \n cast(null as TEXT) as \n \n onspecial\n \n , \n cast(null as TEXT) as \n \n overhead_type\n \n , \n cast(null as FLOAT) as \n \n parent_id\n \n , \n cast(null as FLOAT) as \n \n payment_method_id\n \n , \n cast(null as FLOAT) as \n \n periodic_lot_size_days\n \n , \n cast(null as TEXT) as \n \n periodic_lot_size_type\n \n , \n cast(null as FLOAT) as \n \n pref_purchase_tax_id\n \n , \n cast(null as FLOAT) as \n \n pref_sale_tax_id\n \n , \n cast(null as FLOAT) as \n \n pref_stock_level\n \n , \n cast(null as TEXT) as \n \n prices_include_tax\n \n , \n cast(null as FLOAT) as \n \n pricing_group_id\n \n , \n cast(null as TEXT) as \n \n print_sub_items\n \n , \n cast(null as FLOAT) as \n \n prod_price_var_account_id\n \n , \n cast(null as FLOAT) as \n \n prod_qty_var_account_id\n \n , \n cast(null as TEXT) as \n \n prompt_payment_discount_item\n \n , \n cast(null as FLOAT) as \n \n purchase_price_var_account_id\n \n , \n cast(null as FLOAT) as \n \n purchase_unit_id\n \n , \n cast(null as TEXT) as \n \n purchasedescription\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as FLOAT) as \n \n quantityavailable\n \n , \n cast(null as FLOAT) as \n \n quantitybackordered\n \n , \n cast(null as FLOAT) as \n \n quantityonhand\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as FLOAT) as \n \n reorder_multiple\n \n , \n cast(null as FLOAT) as \n \n reorderpoint\n \n , \n cast(null as TEXT) as \n \n replenishment_method\n \n , \n cast(null as TEXT) as \n \n resalable\n \n , \n cast(null as FLOAT) as \n \n reschedule_in_days\n \n , \n cast(null as FLOAT) as \n \n reschedule_out_days\n \n , \n cast(null as FLOAT) as \n \n rev_rec_forecast_rule_id\n \n , \n cast(null as FLOAT) as \n \n rev_rec_rule_id\n \n , \n cast(null as TEXT) as \n \n revenue_allocation_group\n \n , \n cast(null as TEXT) as \n \n round_up_as_component\n \n , \n cast(null as FLOAT) as \n \n safety_stock_days\n \n , \n cast(null as FLOAT) as \n \n safety_stock_level\n \n , \n cast(null as FLOAT) as \n \n sale_unit_id\n \n , \n cast(null as TEXT) as \n \n salesdescription\n \n , \n cast(null as TEXT) as \n \n salesforce_id\n \n , \n cast(null as TEXT) as \n \n salesprice\n \n , \n cast(null as FLOAT) as \n \n scrap_account_id\n \n , \n cast(null as TEXT) as \n \n serialized_item\n \n , \n cast(null as FLOAT) as \n \n shippingcost\n \n , \n cast(null as TEXT) as \n \n special_work_order_item\n \n , \n cast(null as TEXT) as \n \n specialsdescription\n \n , \n cast(null as FLOAT) as \n \n stock_unit_id\n \n , \n cast(null as TEXT) as \n \n storedescription\n \n , \n cast(null as TEXT) as \n \n storedetaileddescription\n \n , \n cast(null as TEXT) as \n \n storedisplayname\n \n , \n cast(null as TEXT) as \n \n subtype\n \n , \n cast(null as TEXT) as \n \n supplementary_unit__abberviat\n \n , \n cast(null as FLOAT) as \n \n supplementary_unit_id\n \n , \n cast(null as FLOAT) as \n \n supply_time_fence\n \n , \n cast(null as TEXT) as \n \n supply_type\n \n , \n cast(null as FLOAT) as \n \n tax_item_id\n \n , \n cast(null as FLOAT) as \n \n totalvalue\n \n , \n cast(null as FLOAT) as \n \n transferprice\n \n , \n \n \n type_name\n \n as \n \n type_name\n \n, \n cast(null as FLOAT) as \n \n type_of_goods_id\n \n , \n cast(null as TEXT) as \n \n udf1\n \n , \n cast(null as TEXT) as \n \n udf2\n \n , \n cast(null as TEXT) as \n \n un_number\n \n , \n cast(null as FLOAT) as \n \n unbuild_variance_account_id\n \n , \n cast(null as FLOAT) as \n \n units_type_id\n \n , \n cast(null as TEXT) as \n \n upc_code\n \n , \n cast(null as TEXT) as \n \n use_component_yield\n \n , \n cast(null as FLOAT) as \n \n vendor_id\n \n , \n cast(null as TEXT) as \n \n vendorname\n \n , \n cast(null as FLOAT) as \n \n vendreturn_variance_account_id\n \n , \n cast(null as TEXT) as \n \n vsoe_deferral\n \n , \n cast(null as TEXT) as \n \n vsoe_delivered\n \n , \n cast(null as TEXT) as \n \n vsoe_discount\n \n , \n cast(null as FLOAT) as \n \n vsoe_price\n \n , \n cast(null as FLOAT) as \n \n weight\n \n , \n cast(null as FLOAT) as \n \n weight_in_user_defined_unit\n \n , \n cast(null as FLOAT) as \n \n weight_unit_index\n \n , \n cast(null as FLOAT) as \n \n wip_account_id\n \n , \n cast(null as FLOAT) as \n \n wip_cost_variance_account_id\n \n , \n cast(null as FLOAT) as \n \n work_order_lead_time\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n item_id,\n name,\n type_name,\n salesdescription as sales_description,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your items_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\""}, "model.netsuite_source.stg_netsuite__locations": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_locations_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__locations_tmp", "model.netsuite_source.stg_netsuite__locations_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__locations"], "unique_id": "model.netsuite_source.stg_netsuite__locations", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__locations_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__locations_tmp')),\n staging_columns=get_locations_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n location_id,\n name,\n full_name,\n city,\n country,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('locations_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__locations.sql", "original_file_path": "models/netsuite/stg_netsuite__locations.sql", "name": "stg_netsuite__locations", "alias": "stg_netsuite__locations", "checksum": {"name": "sha256", "checksum": "0e5129658fedf16df7b26cf25ad2351302ce70723e60b4b4b9d12a1e252c9254"}, "tags": [], "refs": [["stg_netsuite__locations_tmp"], ["stg_netsuite__locations_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"location_id": {"name": "location_id", "description": "The unique identifier of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__locations.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.537781, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n location_id,\n name,\n full_name,\n city,\n country,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\""}, "model.netsuite_source.stg_netsuite__departments": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_departments_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__departments_tmp", "model.netsuite_source.stg_netsuite__departments_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__departments"], "unique_id": "model.netsuite_source.stg_netsuite__departments", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__departments_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__departments_tmp')),\n staging_columns=get_departments_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n department_id,\n name,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('departments_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__departments.sql", "original_file_path": "models/netsuite/stg_netsuite__departments.sql", "name": "stg_netsuite__departments", "alias": "stg_netsuite__departments", "checksum": {"name": "sha256", "checksum": "48851e18603bddeadb3b3992c83d3c779dada4b760fba2a2da68fe2bc9b431db"}, "tags": [], "refs": [["stg_netsuite__departments_tmp"], ["stg_netsuite__departments_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all departments set up in Netsuite.", "columns": {"department_id": {"name": "department_id", "description": "The unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__departments.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.533878, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n department_id,\n name,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\""}, "model.netsuite_source.stg_netsuite__currencies": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__currencies_tmp", "model.netsuite_source.stg_netsuite__currencies_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__currencies"], "unique_id": "model.netsuite_source.stg_netsuite__currencies", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__currencies_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__currencies_tmp')),\n staging_columns=get_currencies_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n currency_id,\n name,\n symbol,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__currencies.sql", "original_file_path": "models/netsuite/stg_netsuite__currencies.sql", "name": "stg_netsuite__currencies", "alias": "stg_netsuite__currencies", "checksum": {"name": "sha256", "checksum": "64b53f34b5bf46bcf43e5753e5eb67143e96eaffad215604e424f4769791e793"}, "tags": [], "refs": [["stg_netsuite__currencies_tmp"], ["stg_netsuite__currencies_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all currency information.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__currencies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.531543, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n currency_extid\n \n , \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n is_inactive\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n precision_0\n \n , \n \n \n symbol\n \n as \n \n symbol\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n currency_id,\n name,\n symbol,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\""}, "model.netsuite_source.stg_netsuite__vendor_types": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendor_types_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types_tmp", "model.netsuite_source.stg_netsuite__vendor_types_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendor_types"], "unique_id": "model.netsuite_source.stg_netsuite__vendor_types", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__vendor_types_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__vendor_types_tmp')),\n staging_columns=get_vendor_types_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n vendor_type_id,\n name,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__vendor_types.sql", "original_file_path": "models/netsuite/stg_netsuite__vendor_types.sql", "name": "stg_netsuite__vendor_types", "alias": "stg_netsuite__vendor_types", "checksum": {"name": "sha256", "checksum": "6d96a09d56ad4edb4011a0ce09eee13c465195ce03bec4902450ab57e9d2f74d"}, "tags": [], "refs": [["stg_netsuite__vendor_types_tmp"], ["stg_netsuite__vendor_types_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all the various types of vendors.", "columns": {"vendor_type_id": {"name": "vendor_type_id", "description": "The unique identifier of the vendor type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendor_types.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.5430698, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n parent_id\n \n , \n cast(null as TEXT) as \n \n vendor_type_extid\n \n , \n \n \n vendor_type_id\n \n as \n \n vendor_type_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n vendor_type_id,\n name,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\""}, "model.netsuite_source.stg_netsuite__accounting_periods": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounting_periods_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp", "model.netsuite_source.stg_netsuite__accounting_periods_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_periods"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounting_periods_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounting_periods_tmp')),\n staging_columns=get_accounting_periods_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n accounting_period_id,\n name,\n full_name,\n fiscal_calendar_id,\n year_id,\n starting as starting_at,\n ending as ending_at,\n quarter,\n year_0,\n is_adjustment,\n closed as is_closed,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounting_periods.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_periods.sql", "name": "stg_netsuite__accounting_periods", "alias": "stg_netsuite__accounting_periods", "checksum": {"name": "sha256", "checksum": "bd47f06946086147dacee032fd6ad9a36577fae371fa05c51336b3bac1c5f9cc"}, "tags": [], "refs": [["stg_netsuite__accounting_periods_tmp"], ["stg_netsuite__accounting_periods_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_0": {"name": "year_0", "description": "Value indicating whether the accounting period is in it's initial year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Value indicating whether the accounting period is an adjustment (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_periods.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.526471, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TEXT) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n cast(null as TEXT) as \n \n closed_accounts_payable\n \n , \n cast(null as TEXT) as \n \n closed_accounts_receivable\n \n , \n cast(null as TEXT) as \n \n closed_all\n \n , \n cast(null as TIMESTAMP) as \n \n closed_on\n \n , \n cast(null as TEXT) as \n \n closed_payroll\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n \n \n ending\n \n as \n \n ending\n \n, \n \n \n fiscal_calendar_id\n \n as \n \n fiscal_calendar_id\n \n, \n cast(null as TEXT) as \n \n fivetran_index\n \n , \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n is_adjustment\n \n as \n \n is_adjustment\n \n, \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n locked_accounts_payable\n \n , \n cast(null as TEXT) as \n \n locked_accounts_receivable\n \n , \n cast(null as TEXT) as \n \n locked_all\n \n , \n cast(null as TEXT) as \n \n locked_payroll\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n parent_id\n \n , \n \n \n quarter\n \n as \n \n quarter\n \n, \n \n \n starting\n \n as \n \n starting\n \n, \n \n \n year_0\n \n as \n \n year_0\n \n, \n \n \n year_id\n \n as \n \n year_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n accounting_period_id,\n name,\n full_name,\n fiscal_calendar_id,\n year_id,\n starting as starting_at,\n ending as ending_at,\n quarter,\n year_0,\n is_adjustment,\n closed as is_closed,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\""}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_periods_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounting_periods') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "name": "stg_netsuite__accounting_periods_tmp", "alias": "stg_netsuite__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "af85ada4c304fe9e0c3fdaf8dca681113d692711ab665fa20a48bf20a3f53513"}, "tags": [], "refs": [], "sources": [["netsuite", "accounting_periods"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.445806, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods_tmp\""}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_books_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounting_books') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "name": "stg_netsuite__accounting_books_tmp", "alias": "stg_netsuite__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "2a71eefcec7c5db5922ea1217879f5e7856b348418cd1698c81dd7ca78e95fbe"}, "tags": [], "refs": [], "sources": [["netsuite", "accounting_books"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.449404, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books_tmp\""}, "model.netsuite_source.stg_netsuite__customers_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.customers"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__customers_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_customers') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__customers_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "name": "stg_netsuite__customers_tmp", "alias": "stg_netsuite__customers_tmp", "checksum": {"name": "sha256", "checksum": "dd42aefc427f9f532fc0d79d50a1db8f9e6ea5f7038c43e2d8ea08ca6986fd2b"}, "tags": [], "refs": [], "sources": [["netsuite", "customers"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.453512, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers_tmp\""}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transaction_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transaction_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "name": "stg_netsuite__transaction_lines_tmp", "alias": "stg_netsuite__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "1e8e8e85dcbf177ac5a8539ed3ca4ab87c6b66bd8e98f8fac81bf8c92ecc4178"}, "tags": [], "refs": [], "sources": [["netsuite", "transaction_lines"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.457002, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines_tmp\""}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__income_accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_income_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "name": "stg_netsuite__income_accounts_tmp", "alias": "stg_netsuite__income_accounts_tmp", "checksum": {"name": "sha256", "checksum": "db2a368685ddd59347ffb164ea9204f378d33a39a4eebbffe35a22d59d387925"}, "tags": [], "refs": [], "sources": [["netsuite", "income_accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.460456, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts_tmp\""}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "name": "stg_netsuite__accounts_tmp", "alias": "stg_netsuite__accounts_tmp", "checksum": {"name": "sha256", "checksum": "bb440ea013b9eb4fd2654be4f267bf3c08b4a4fbdb88e666c2721e79157bf54c"}, "tags": [], "refs": [], "sources": [["netsuite", "accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.463993, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts_tmp\""}, "model.netsuite_source.stg_netsuite__departments_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.departments"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__departments_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_departments') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__departments_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "name": "stg_netsuite__departments_tmp", "alias": "stg_netsuite__departments_tmp", "checksum": {"name": "sha256", "checksum": "4d20b8f9c501e6642f4ed19fe0d6003244f3132bb8f127e6cd04749a2161a1d5"}, "tags": [], "refs": [], "sources": [["netsuite", "departments"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.46752, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments_tmp\""}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.currencies"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__currencies_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_currencies') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__currencies_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "name": "stg_netsuite__currencies_tmp", "alias": "stg_netsuite__currencies_tmp", "checksum": {"name": "sha256", "checksum": "299203cc57a2fe306df440758d025485e593599f6390c02ce418cc17f6cbf085"}, "tags": [], "refs": [], "sources": [["netsuite", "currencies"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.470999, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies_tmp\""}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendor_types_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendor_types') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "name": "stg_netsuite__vendor_types_tmp", "alias": "stg_netsuite__vendor_types_tmp", "checksum": {"name": "sha256", "checksum": "9418a3d15515e6876d45e9647eef973ee64e92a8ebd36de9ef48b4213362fbb8"}, "tags": [], "refs": [], "sources": [["netsuite", "vendor_types"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.4752178, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types_tmp\""}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendors"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendors_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendors') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendors_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "name": "stg_netsuite__vendors_tmp", "alias": "stg_netsuite__vendors_tmp", "checksum": {"name": "sha256", "checksum": "8e59bcb209c1fbcc2e4d3d45fbfa58520b4664fc1ca095cdc257b866d56bf48f"}, "tags": [], "refs": [], "sources": [["netsuite", "vendors"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.478713, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors_tmp\""}, "model.netsuite_source.stg_netsuite__locations_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.locations"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__locations_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_locations') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__locations_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "name": "stg_netsuite__locations_tmp", "alias": "stg_netsuite__locations_tmp", "checksum": {"name": "sha256", "checksum": "ef49c17ad5f2ebc7ef36e8327bf47863dd5e5cae56eb79239babc1db36a64083"}, "tags": [], "refs": [], "sources": [["netsuite", "locations"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.482155, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations_tmp\""}, "model.netsuite_source.stg_netsuite__items_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.items"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__items_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__items_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_items') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__items_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__items_tmp.sql", "name": "stg_netsuite__items_tmp", "alias": "stg_netsuite__items_tmp", "checksum": {"name": "sha256", "checksum": "439132075eae5e14389f7542772d7ca936ea1489e7cdac59de46e8cb7173eb0a"}, "tags": [], "refs": [], "sources": [["netsuite", "items"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__items_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.4856372, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items_tmp\""}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "name": "stg_netsuite__subsidiaries_tmp", "alias": "stg_netsuite__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "a6ac0f509e1ac21ecc3f89a4d5c0eed5c703a57e8fc4af43e01bdcf75ea2e679"}, "tags": [], "refs": [], "sources": [["netsuite", "subsidiaries"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.48912, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transactions"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transactions_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transactions') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__transactions_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "name": "stg_netsuite__transactions_tmp", "alias": "stg_netsuite__transactions_tmp", "checksum": {"name": "sha256", "checksum": "3784b104dd5b534cf77958a0db3b7a596311f53fe6cbc065385ded88577cfdd0"}, "tags": [], "refs": [], "sources": [["netsuite", "transactions"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.4926028, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions_tmp\""}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__consolidated_exchange_rates_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_consolidated_exchange_rates') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "alias": "stg_netsuite__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "adef1eae799060e22040088aae3f36771a563821178b7986be7863221df9283e"}, "tags": [], "refs": [], "sources": [["netsuite", "consolidated_exchange_rates"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.496865, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates_tmp\""}, "model.netsuite_source.stg_netsuite__classes_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.classes"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__classes_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_classes') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__classes_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "name": "stg_netsuite__classes_tmp", "alias": "stg_netsuite__classes_tmp", "checksum": {"name": "sha256", "checksum": "d0e5d095963df0342aa32dab6b3385cee09e2ee9a404972e692675a5e82c9fb0"}, "tags": [], "refs": [], "sources": [["netsuite", "classes"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.500339, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes_tmp\""}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__expense_accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_expense_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "name": "stg_netsuite__expense_accounts_tmp", "alias": "stg_netsuite__expense_accounts_tmp", "checksum": {"name": "sha256", "checksum": "a47ced403e84ab6ca539aa177139c53e021b0c56d15dd9dfc83dcb0ebe7cd797"}, "tags": [], "refs": [], "sources": [["netsuite", "expense_accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.503907, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts_tmp\""}, "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__accounting_books_accounting_book_id", "alias": "unique_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.548395, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is not null\ngroup by accounting_book_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_books_accounting_book_id", "alias": "not_null_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.549525, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "alias": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.550501, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "fiscal_calendar_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "alias": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.551467, "compiled_code": "\n \n \n\n\n\nselect fiscal_calendar_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere fiscal_calendar_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "fiscal_calendar_id", "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["accounting_period_id", "fiscal_calendar_id"], "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "original_file_path": "models/stg_netsuite.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id", "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d"}, "created_at": 1666643120.5525372, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n accounting_period_id, fiscal_calendar_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\n group by accounting_period_id, fiscal_calendar_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__accounts_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__accounts_account_id", "alias": "unique_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.559617, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts"}, "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounts_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounts_account_id", "alias": "not_null_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.560595, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts"}, "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__classes_class_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__classes_class_id", "alias": "unique_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.561553, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is not null\ngroup by class_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes"}, "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__classes_class_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__classes_class_id", "alias": "not_null_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.562646, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes"}, "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee"}, "created_at": 1666643120.5636008, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is not null\ngroup by consolidated_exchange_rate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates"}, "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86"}, "created_at": 1666643120.5645509, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates"}, "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__currencies_currency_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__currencies_currency_id", "alias": "unique_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.565504, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is not null\ngroup by currency_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies"}, "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__currencies_currency_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__currencies_currency_id", "alias": "not_null_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5665789, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies"}, "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__customers_customer_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__customers_customer_id", "alias": "unique_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.567538, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers"}, "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__customers_customer_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__customers_customer_id", "alias": "not_null_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.568484, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers"}, "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__departments_department_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__departments_department_id", "alias": "unique_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.569429, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is not null\ngroup by department_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments"}, "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__departments_department_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__departments_department_id", "alias": "not_null_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.570716, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments"}, "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "expense_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__expense_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__expense_accounts_expense_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__expense_accounts_expense_account_id", "alias": "unique_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__expense_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__expense_accounts_expense_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.571645, "compiled_code": "\n \n \n\nselect\n expense_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is not null\ngroup by expense_account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts"}, "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "expense_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__expense_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__expense_accounts_expense_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__expense_accounts_expense_account_id", "alias": "not_null_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__expense_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.572574, "compiled_code": "\n \n \n\n\n\nselect expense_account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts"}, "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "income_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__income_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__income_accounts_income_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__income_accounts_income_account_id", "alias": "unique_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__income_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__income_accounts_income_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.573521, "compiled_code": "\n \n \n\nselect\n income_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is not null\ngroup by income_account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts"}, "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "income_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__income_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__income_accounts_income_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__income_accounts_income_account_id", "alias": "not_null_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__income_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__income_accounts_income_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.574594, "compiled_code": "\n \n \n\n\n\nselect income_account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts"}, "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__items_item_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__items_item_id", "alias": "unique_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.57554, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items"}, "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__items_item_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__items_item_id", "alias": "not_null_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.57648, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items"}, "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__locations_location_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__locations_location_id", "alias": "unique_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5774221, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is not null\ngroup by location_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations"}, "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__locations_location_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__locations_location_id", "alias": "not_null_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.578488, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations"}, "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__subsidiaries_subsidiary_id", "alias": "unique_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.579433, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is not null\ngroup by subsidiary_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "alias": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.58037, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transaction_lines_transaction_id", "alias": "not_null_stg_netsuite__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.58132, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "alias": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5823889, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "original_file_path": "models/stg_netsuite.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad"}, "created_at": 1666643120.583315, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__transactions_transaction_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__transactions_transaction_id", "alias": "unique_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.586227, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is not null\ngroup by transaction_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions"}, "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transactions_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transactions_transaction_id", "alias": "not_null_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5871959, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions"}, "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendor_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__vendor_types_vendor_type_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__vendor_types_vendor_type_id", "alias": "unique_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendor_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendor_types_vendor_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.58817, "compiled_code": "\n \n \n\nselect\n vendor_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is not null\ngroup by vendor_type_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types"}, "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendor_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendor_types_vendor_type_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__vendor_types_vendor_type_id", "alias": "not_null_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendor_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.589264, "compiled_code": "\n \n \n\n\n\nselect vendor_type_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types"}, "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__vendors_vendor_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__vendors_vendor_id", "alias": "unique_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5902069, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors"}, "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendors_vendor_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__vendors_vendor_id", "alias": "not_null_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.591155, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors"}, "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__account_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__account_types_account_type_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__account_types_account_type_id", "alias": "unique_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__account_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__account_types_account_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.631642, "compiled_code": "\n \n \n\nselect\n account_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is not null\ngroup by account_type_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types"}, "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__account_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__account_types_account_type_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__account_types_account_type_id", "alias": "not_null_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__account_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__account_types_account_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.632709, "compiled_code": "\n \n \n\n\n\nselect account_type_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types"}, "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_book_subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "alias": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.633686, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_book_subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127"}, "created_at": 1666643120.6347709, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries"}, "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_books_accounting_book_id", "alias": "unique_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6357381, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is not null\ngroup by accounting_book_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "alias": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6366909, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books"}, "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_period_fiscal_cal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "alias": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6376379, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_period_fiscal_cal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415"}, "created_at": 1666643120.638711, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal"}, "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "alias": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.639665, "compiled_code": "\n \n \n\nselect\n accounting_period_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is not null\ngroup by accounting_period_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "alias": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.640599, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods"}, "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounts_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounts_account_id", "alias": "unique_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.641537, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts"}, "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounts_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounts_account_id", "alias": "not_null_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.642744, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts"}, "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__classes_class_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__classes_class_id", "alias": "unique_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6437, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is not null\ngroup by class_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes"}, "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__classes_class_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__classes_class_id", "alias": "not_null_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.644639, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes"}, "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1"}, "created_at": 1666643120.645581, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is not null\ngroup by consolidated_exchange_rate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates"}, "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511"}, "created_at": 1666643120.6466691, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates"}, "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__currencies_currency_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__currencies_currency_id", "alias": "unique_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.647615, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is not null\ngroup by currency_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies"}, "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__currencies_currency_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__currencies_currency_id", "alias": "not_null_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6485498, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies"}, "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__customers_customer_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__customers_customer_id", "alias": "unique_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.649485, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers"}, "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__customers_customer_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__customers_customer_id", "alias": "not_null_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.650569, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers"}, "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__departments_department_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__departments_department_id", "alias": "unique_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.65152, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is not null\ngroup by department_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments"}, "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__departments_department_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__departments_department_id", "alias": "not_null_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.652448, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments"}, "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "entity_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__entities')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__entities_entity_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__entities_entity_id", "alias": "unique_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__entities"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__entities_entity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.653356, "compiled_code": "\n \n \n\nselect\n entity_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is not null\ngroup by entity_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities"}, "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "entity_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__entities')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__entities_entity_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__entities_entity_id", "alias": "not_null_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__entities"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__entities_entity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.654381, "compiled_code": "\n \n \n\n\n\nselect entity_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities"}, "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__items_item_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__items_item_id", "alias": "unique_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.655319, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items"}, "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__items_item_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__items_item_id", "alias": "not_null_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.656257, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items"}, "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "job_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__jobs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__jobs_job_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__jobs_job_id", "alias": "unique_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__jobs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__jobs_job_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.657194, "compiled_code": "\n \n \n\nselect\n job_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is not null\ngroup by job_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs"}, "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__jobs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__jobs_job_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__jobs_job_id", "alias": "not_null_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__jobs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__jobs_job_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.658258, "compiled_code": "\n \n \n\n\n\nselect job_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs"}, "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__locations_location_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__locations_location_id", "alias": "unique_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6591942, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is not null\ngroup by location_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations"}, "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__locations_location_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__locations_location_id", "alias": "not_null_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.66013, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations"}, "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "alias": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6610718, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is not null\ngroup by subsidiary_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "alias": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6621351, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id", "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc"}, "created_at": 1666643120.663083, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id", "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54"}, "created_at": 1666643120.6640372, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6"}, "created_at": 1666643120.664969, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "alias": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.667897, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_lines_transaction_id", "alias": "not_null_stg_netsuite2__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.668861, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145"}, "created_at": 1666643120.6699798, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__transactions_transaction_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__transactions_transaction_id", "alias": "unique_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6727538, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is not null\ngroup by transaction_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions"}, "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transactions_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transactions_transaction_id", "alias": "not_null_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.673729, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions"}, "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_category_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendor_categories')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendor_categories_vendor_category_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "alias": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendor_categories"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6746938, "compiled_code": "\n \n \n\nselect\n vendor_category_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is not null\ngroup by vendor_category_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories"}, "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_category_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendor_categories')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendor_categories_vendor_category_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "alias": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendor_categories"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.675644, "compiled_code": "\n \n \n\n\n\nselect vendor_category_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories"}, "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendors_vendor_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__vendors_vendor_id", "alias": "unique_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.676728, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors"}, "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendors_vendor_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__vendors_vendor_id", "alias": "not_null_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.677678, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors"}}, "sources": {"source.netsuite_source.netsuite2.account_type": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "account_type"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.account_type", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "account_type", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_type_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the various account types within Netsuite.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balancesheet": {"name": "balancesheet", "description": "Boolean indicating if the account type is a balance sheet account. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "left": {"name": "left", "description": "Boolean indicating if the account type is leftside. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longname": {"name": "longname", "description": "The name of the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\"", "created_at": 1666643120.751615}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book_subsidiaries"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_book_subsidiaries", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_sub_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the various account books and the respective subsidiaries.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\"", "created_at": 1666643120.751731}, "source.netsuite_source.netsuite2.accounting_book": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_book", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_book", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "basebook": {"name": "basebook", "description": "Reference to the base book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effectiveperiod": {"name": "effectiveperiod", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isadjustmentonly": {"name": "isadjustmentonly", "description": "Boolean indicating if the accounting book is an adjustment only. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isconsolidated": {"name": "isconsolidated", "description": "Boolean indicating if the accounting book is a consolidated entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contingentrevenuehandling": {"name": "contingentrevenuehandling", "description": "Boolean indicating if the accounting book is contingent revenue handling. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isprimary": {"name": "isprimary", "description": "Boolean indicating if the accounting book is a primary entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "twosteprevenueallocation": {"name": "twosteprevenueallocation", "description": "Boolean indicating if the accounting book is a two step revenue allocation entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unbilledreceivablegrouping": {"name": "unbilledreceivablegrouping", "description": "Boolean indicating if the accounting book is an unbilled receivable grouping. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\"", "created_at": 1666643120.7518148}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period_fiscal_calendars"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_period_fiscal_calendars", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_fiscal_cal_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the accounting fiscal calendar periods.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingperiod": {"name": "accountingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\"", "created_at": 1666643120.751887}, "source.netsuite_source.netsuite2.accounting_period": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_period", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_period", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "periodname": {"name": "periodname", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "startdate": {"name": "startdate", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "enddate": {"name": "enddate", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closedondate": {"name": "closedondate", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isquarter": {"name": "isquarter", "description": "Boolean indicating if the accounting period is the initial quarter. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isyear": {"name": "isyear", "description": "Boolean indicating if the accounting period is the initial period. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isadjust": {"name": "isadjust", "description": "Boolean indicating if the accounting period is an adjustment. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isposting": {"name": "isposting", "description": "Boolean indicating if the accounting period is posting. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Boolean indicating if the accounting period is closed. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "alllocked": {"name": "alllocked", "description": "Boolean indicating if all the accounting periods are locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "arlocked": {"name": "arlocked", "description": "Boolean indicating if the ar accounting period is locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "aplocked": {"name": "aplocked", "description": "Boolean indicating if the ap accounting period is locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\"", "created_at": 1666643120.751968}, "source.netsuite_source.netsuite2.account": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "account"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.account", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "account", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounts set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external account,", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "acctnumber": {"name": "acctnumber", "description": "Netsuite generated account number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accttype": {"name": "accttype", "description": "Reference to the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferralacct": {"name": "deferralacct", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cashflowrate": {"name": "cashflowrate", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "generalrate": {"name": "generalrate", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "includechildren": {"name": "includechildren", "description": "Boolean indicating if the account includes sub accounts. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the account is inactive. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "issummary": {"name": "issummary", "description": "Boolean indicating if the account is a summary account. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\"", "created_at": 1666643120.75205}, "source.netsuite_source.netsuite2.classification": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "classification"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.classification", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "classification", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_classification_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all classes set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the class is active. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\"", "created_at": 1666643120.7521229}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "consolidated_exchange_rate"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "consolidated_exchange_rate", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_consolidated_exchange_rate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"id": {"name": "id", "description": "unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postingperiod": {"name": "postingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fromcurrency": {"name": "fromcurrency", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fromsubsidiary": {"name": "fromsubsidiary", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tocurrency": {"name": "tocurrency", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tosubsidiary": {"name": "tosubsidiary", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currentrate": {"name": "currentrate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "averagerate": {"name": "averagerate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historicalrate": {"name": "historicalrate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\"", "created_at": 1666643120.752196}, "source.netsuite_source.netsuite2.currency": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "currency"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.currency", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "currency", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_currency_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all currency information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\"", "created_at": 1666643120.7522671}, "source.netsuite_source.netsuite2.customer": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "customer"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.customer", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "customer", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all customer information.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Boolean indicating if the customer is an individual person. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "firstname": {"name": "firstname", "description": "First name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lastname": {"name": "lastname", "description": "Last name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Customers email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivablesaccount": {"name": "receivablesaccount", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "firstorderdate": {"name": "firstorderdate", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\"", "created_at": 1666643120.7523541}, "source.netsuite_source.netsuite2.department": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "department"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.department", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "department", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all departments set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the department is active. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\"", "created_at": 1666643120.7524312}, "source.netsuite_source.netsuite2.entity": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.entity", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "entity", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entities_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all entities in Netsuite.", "columns": {"id": {"name": "id", "description": "Th \"The entity id of the entity used for the record.\"e unique identifier of the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact": {"name": "contact", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee": {"name": "employee", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entitytitle": {"name": "entitytitle", "description": "The entity name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Value indicating whether the entity is a person (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "project": {"name": "project", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor": {"name": "vendor", "description": "The unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\"", "created_at": 1666643120.752507}, "source.netsuite_source.netsuite2.entity_address": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity_address"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.entity_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "entity_address", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entity_address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing addresses and the various entities which they map.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\"", "created_at": 1666643120.752583}, "source.netsuite_source.netsuite2.item": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "item"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.item", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "item", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing information about the items created in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "itemtype": {"name": "itemtype", "description": "Item type name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "assetaccount": {"name": "assetaccount", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expenseaccount": {"name": "expenseaccount", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "gainlossaccount": {"name": "gainlossaccount", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "incomeaccount": {"name": "incomeaccount", "description": "Reference to the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoexpenseaccount": {"name": "intercoexpenseaccount", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoincomeaccount": {"name": "intercoincomeaccount", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferralaccount": {"name": "deferralaccount", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferredrevenueaccount": {"name": "deferredrevenueaccount", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\"", "created_at": 1666643120.7526689}, "source.netsuite_source.netsuite2.job": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "job"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.job", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "job", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_job_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all jobs.", "columns": {"id": {"name": "id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "Reference the the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Default billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\"", "created_at": 1666643120.7527401}, "source.netsuite_source.netsuite2.location_main_address": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "location_main_address"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.location_main_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "location_main_address", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_main_address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the location main addresses.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\"", "created_at": 1666643120.752856}, "source.netsuite_source.netsuite2.location": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "location"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.location", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "location", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\"", "created_at": 1666643120.752929}, "source.netsuite_source.netsuite2.subsidiary": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "subsidiary"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.subsidiary", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "subsidiary", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_subsidiary_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\"", "created_at": 1666643120.75301}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_accounting_line"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction_accounting_line", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_tran_acct_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction": {"name": "transaction", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transactionline": {"name": "transactionline", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "netamount": {"name": "netamount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Reference to the accounting book of the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account": {"name": "account", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting": {"name": "posting", "description": "Boolean indicating if the entry is posting. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "debit": {"name": "debit", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amountpaid": {"name": "amountpaid", "description": "Total amount paid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amountunpaid": {"name": "amountunpaid", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\"", "created_at": 1666643120.753087}, "source.netsuite_source.netsuite2.transaction_line": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_line"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction_line", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction_line", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction": {"name": "transaction", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linesequencenumber": {"name": "linesequencenumber", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item": {"name": "item", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isclosed": {"name": "isclosed", "description": "Boolean indicating if the transaction line is closed. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isbillable": {"name": "isbillable", "description": "Boolean indicating if the transaction line is billable. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "iscogs": {"name": "iscogs", "description": "Boolean indicating if the transaction line is a cost of goods sold entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cleared": {"name": "cleared", "description": "Boolean indicating if the transaction line is cleared. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "commitmentfirm": {"name": "commitmentfirm", "description": "Boolean indicating if the transaction line is a commitment firm. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainline": {"name": "mainline", "description": "Boolean indicating if the transaction line is a main line entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxline": {"name": "taxline", "description": "Boolean indicating if the transaction line is a tax line. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\"", "created_at": 1666643120.7531679}, "source.netsuite_source.netsuite2.transaction": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transactionnumber": {"name": "transactionnumber", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "createddate": {"name": "createddate", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duedate": {"name": "duedate", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closedate": {"name": "closedate", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postingperiod": {"name": "postingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting": {"name": "posting", "description": "Boolean indicating if the transaction is a posting event. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoadj": {"name": "intercoadj", "description": "Boolean indicating if the transaction is an intercompany adjustment. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isreversal": {"name": "isreversal", "description": "Boolean indicating if the transaction is a reversal entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\"", "created_at": 1666643120.753249}, "source.netsuite_source.netsuite2.vendor_category": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor_category"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.vendor_category", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "vendor_category", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_category_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing categories and how they map to vendors.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\"", "created_at": 1666643120.7533178}, "source.netsuite_source.netsuite2.vendor": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.vendor", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "vendor", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all vendor information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "datecreated": {"name": "datecreated", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\"", "created_at": 1666643120.7533891}, "source.netsuite_source.netsuite.accounting_books": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_books"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounting_books", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounting_books", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_books_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\"", "created_at": 1666643120.7534568}, "source.netsuite_source.netsuite.accounting_periods": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_periods"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounting_periods", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounting_periods", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_periods_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting": {"name": "starting", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending": {"name": "ending", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_0": {"name": "year_0", "description": "Value indicating whether the accounting period is in it's initial year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Value indicating whether the accounting period is an adjustment (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\"", "created_at": 1666643120.753533}, "source.netsuite_source.netsuite.accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table that provides a complete listing of every account in the accounting system.", "columns": {"account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the type of the account (ie. Bank, Equity, Income, Expense).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingnumber": {"name": "accountingnumber", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\"", "created_at": 1666643120.75361}, "source.netsuite_source.netsuite.classes": {"fqn": ["netsuite_source", "netsuite", "netsuite", "classes"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.classes", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "classes", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_classes_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all classes set up in Netsuite.", "columns": {"class_id": {"name": "class_id", "description": "The unique identifier of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\"", "created_at": 1666643120.753678}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"fqn": ["netsuite_source", "netsuite", "netsuite", "consolidated_exchange_rates"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "consolidated_exchange_rates", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_consolidated_exchange_rates_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The accounting book the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "THe subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\"", "created_at": 1666643120.753751}, "source.netsuite_source.netsuite.currencies": {"fqn": ["netsuite_source", "netsuite", "netsuite", "currencies"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.currencies", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "currencies", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_currencies_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "The names and symbols for all currencies set up in Netsuite.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\"", "created_at": 1666643120.753823}, "source.netsuite_source.netsuite.customers": {"fqn": ["netsuite_source", "netsuite", "netsuite", "customers"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.customers", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "customers", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_customers_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_extid": {"name": "customer_extid", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order": {"name": "date_first_order", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\"", "created_at": 1666643120.753897}, "source.netsuite_source.netsuite.departments": {"fqn": ["netsuite_source", "netsuite", "netsuite", "departments"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.departments", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "departments", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_departments_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all departments set up in Netsuite.", "columns": {"department_id": {"name": "department_id", "description": "The unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\"", "created_at": 1666643120.753966}, "source.netsuite_source.netsuite.expense_accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "expense_accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.expense_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "expense_accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_expense_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all expense accounts.", "columns": {"expense_account_id": {"name": "expense_account_id", "description": "The unique identifier of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\"", "created_at": 1666643120.754037}, "source.netsuite_source.netsuite.income_accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "income_accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.income_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "income_accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_income_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all income accounts.", "columns": {"income_account_id": {"name": "income_account_id", "description": "The unique identifier of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\"", "created_at": 1666643120.754127}, "source.netsuite_source.netsuite.items": {"fqn": ["netsuite_source", "netsuite", "netsuite", "items"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.items", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "items", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_items_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing information about the items created in Netsuite.", "columns": {"item_id": {"name": "item_id", "description": "The unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salesdescription": {"name": "salesdescription", "description": "The items sales description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\"", "created_at": 1666643120.754199}, "source.netsuite_source.netsuite.locations": {"fqn": ["netsuite_source", "netsuite", "netsuite", "locations"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.locations", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "locations", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_locations_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"location_id": {"name": "location_id", "description": "The unique identifier of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\"", "created_at": 1666643120.754271}, "source.netsuite_source.netsuite.subsidiaries": {"fqn": ["netsuite_source", "netsuite", "netsuite", "subsidiaries"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "subsidiaries", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_subsidiaries_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id associated with the fiscal calendar the subsidiary is on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\"", "created_at": 1666643120.754345}, "source.netsuite_source.netsuite.transaction_lines": {"fqn": ["netsuite_source", "netsuite", "netsuite", "transaction_lines"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.transaction_lines", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "transaction_lines", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transaction_lines_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The subsidiary id of the subsidiary which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The item id of the item which is included in the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "non_posting_line": {"name": "non_posting_line", "description": "Value indicating whether the transaction line is a non posting line (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The class id of the class which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The location id of the location which the transaction line took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\"", "created_at": 1666643120.754424}, "source.netsuite_source.netsuite.transactions": {"fqn": ["netsuite_source", "netsuite", "netsuite", "transactions"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.transactions", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "transactions", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transactions_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_advanced_intercompany": {"name": "is_advanced_intercompany", "description": "Value indicating whether the transaction is an advanced intercompany journal entry (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\"", "created_at": 1666643120.754498}, "source.netsuite_source.netsuite.vendor_types": {"fqn": ["netsuite_source", "netsuite", "netsuite", "vendor_types"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.vendor_types", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "vendor_types", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendor_types_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all the various types of vendors.", "columns": {"vendor_type_id": {"name": "vendor_type_id", "description": "The unique identifier of the vendor type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\"", "created_at": 1666643120.7545621}, "source.netsuite_source.netsuite.vendors": {"fqn": ["netsuite_source", "netsuite", "netsuite", "vendors"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.vendors", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "vendors", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendors_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The vendor's company name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\"", "created_at": 1666643120.7546299}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9249861, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.92522, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9253309, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.925445, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9255512, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.926689, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.927383, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.932843, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.933393, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.933702, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.934019, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9344761, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.934838, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.93501, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.935361, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.935761, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.936618, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.936817, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9371352, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.93741, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.937836, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9380631, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.938661, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.938868, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.938984, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9395058, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.940275, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.940566, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.941233, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.944447, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.944675, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.945212, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9456692, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.94675, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.946947, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.947089, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9472299, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.947368, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9478002, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.948094, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.948394, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.948865, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.949143, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9525208, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.952692, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9529128, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.953629, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.953792, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.953963, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.955347, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.956706, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9605062, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.96079, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.96096, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.961046, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.961189, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.961302, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.961508, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.962382, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.962574, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.962821, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.963253, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.969179, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.971262, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.971791, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.972099, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.972546, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9729202, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.974475, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.975007, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.975657, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9758878, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.976594, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.980829, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.982466, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.982709, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.983447, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.983714, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.984354, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9850628, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.985941, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.986172, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.986353, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9866052, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.986784, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.987039, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9872289, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.987495, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.987679, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.987829, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.988108, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.992953, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9980328, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.999242, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.000437, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.001388, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.00405, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0046458, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.004836, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.005267, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0056949, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.008266, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.008652, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0088792, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.01042, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.010849, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.011014, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0111969, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0114508, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.014852, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0194829, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.020378, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.020627, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021238, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021482, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021624, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021769, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021884, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.022047, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.022163, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.022652, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.02284, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.024089, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.024576, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0248, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.025357, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.025616, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.025901, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0263581, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0266082, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0270321, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0274189, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.027742, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.02836, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0298638, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0305102, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0308092, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.032738, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.033979, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.03476, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0350049, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.035396, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0354729, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.035878, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0360541, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.03648, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.036618, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.03698, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0370932, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0374951, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.037656, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0379462, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0380192, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.038347, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.038482, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.03883, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.039037, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.039693, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.040085, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0404701, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.040628, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0409658, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0410979, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.041409, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.041573, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0418859, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.042044, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.042366, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04247, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.042807, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04294, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.043249, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.043351, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0442848, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.044437, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.044658, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.044807, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.044964, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.045108, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04526, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04543, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.045588, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0457358, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.045891, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.046029, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0461829, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.046323, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0466628, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04679, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.047091, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0471869, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0475678, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0478249, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.047968, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.048508, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.048668, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.048942, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.049265, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04939, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0498078, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.050048, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.050377, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.050504, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.050915, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.051098, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0512588, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0514371, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.05195, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0521019, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.052236, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.052335, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.052491, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.052564, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.05272, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0528781, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.053365, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.053561, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0537128, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.054102, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0570931, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.057256, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.057468, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0577521, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0579882, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.058298, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.058476, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.058679, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0588531, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0590038, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0591948, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.059467, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0597088, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.060271, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.060574, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.060721, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0609221, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.061433, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0618649, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.063584, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.063709, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0638819, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.063999, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.064351, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0645509, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.064657, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0648909, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.065087, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0653179, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.065514, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.065747, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.066447, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.066721, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.066978, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0672169, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.068396, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.069207, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.069386, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.069598, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.069777, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.070056, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.070558, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.072078, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0723488, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.072542, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0726988, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.072882, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.073131, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0733418, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0736482, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.073843, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.074007, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0757492, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.076001, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.076326, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.076517, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0768661, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.07719, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.077847, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.078124, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.078946, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0805519, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.081047, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.081522, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.081944, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0820181, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.082645, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.082884, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0831811, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.083476, "supported_languages": null}, "macro.dbt_utils.xdb_deprecation_warning_without_replacement": {"unique_id": "macro.dbt_utils.xdb_deprecation_warning_without_replacement", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "original_file_path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "name": "xdb_deprecation_warning_without_replacement", "macro_sql": "{% macro xdb_deprecation_warning_without_replacement(macro, package, model) %}\n {%- set error_message = \"Warning: the `\" ~ macro ~\"` macro is deprecated and will be removed in a future version of the package, once equivalent functionality is implemented in dbt Core. The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(error_message) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.083908, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.084331, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n split_part(\n split_part(\n replace(\n replace(\n replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.084787, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.085332, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n replace(\n replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ position(\"'/'\", stripped_url) }}, 0),\n {{ position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n split_part(\n right(\n stripped_url,\n length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ safe_cast(\n parsed_path,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.086029, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0864289, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = split_part(split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.086748, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0878851, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.088922, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.089921, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0910022, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0918431, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0921862, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.092854, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, group_by_columns) %}\n\n{% set threshold = dateadd(datepart, interval * -1, current_timestamp_backcompat()) %}\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n max({{field}}) as most_recent\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.093481, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.094015, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.094487, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.095176, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0956511, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.096266, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.096645, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.097172, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0977228, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0984042, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.099072, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.099689, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.100018, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1005719, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n {{ column_list }}\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.10097, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1016572, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.102478, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.103418, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ type_timestamp() }})= cast({{ dateadd(datepart, interval, previous_column_name) }} as {{ type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.104278, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1050508, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.10592, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.106503, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1067939, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.110038, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1118789, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1122491, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.11242, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1129348, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.113284, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.113485, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.113808, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.113983, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.11451, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.11539, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.116124, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1167161, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1169531, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1173089, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.117696, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1180391, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1187682, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.119696, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.120567, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1209888, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1211782, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.12169, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.122415, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.123262, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.123738, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.124025, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.124761, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('*') }}\n {%- endif -%}\n\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.125749, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1270888, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.128744, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.131777, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ string_literal(relation) }} as {{ type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.135157, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.135566, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.135818, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.136607, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.136825, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.137028, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.137218, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.137384, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.137558, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.138009, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a variable scoped to the dbt_utils package called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.138253, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.138697, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.139242, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.139644, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1399791, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1416361, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.141998, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1427882, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.143295, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.144434, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.145896, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.146972, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.147823, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.148345, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1490822, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.150528, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1509728, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1514182, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1516101, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.152066, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1526668, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1531808, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ hash(concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.153816, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1542668, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.154405, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.154539, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.155618, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.155982, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.156551, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.157362, "supported_languages": null}, "macro.netsuite_source.get_expense_accounts_columns": {"unique_id": "macro.netsuite_source.get_expense_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_expense_accounts_columns.sql", "original_file_path": "macros/get_expense_accounts_columns.sql", "name": "get_expense_accounts_columns", "macro_sql": "{% macro get_expense_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"current_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"desription\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_including_child_subs\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1593049, "supported_languages": null}, "macro.netsuite_source.get_locationmainaddress_columns": {"unique_id": "macro.netsuite_source.get_locationmainaddress_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locationmainaddress_columns.sql", "original_file_path": "macros/get_locationmainaddress_columns.sql", "name": "get_locationmainaddress_columns", "macro_sql": "{% macro get_locationmainaddress_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"addr1\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr2\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr3\", \"datatype\": dbt.type_string()},\n {\"name\": \"addressee\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrtext\", \"datatype\": dbt.type_string()},\n {\"name\": \"attention\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dropdownstate\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"nkey\", \"datatype\": dbt.type_int()},\n {\"name\": \"override\", \"datatype\": dbt.type_string()},\n {\"name\": \"recordowner\", \"datatype\": dbt.type_int()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.161442, "supported_languages": null}, "macro.netsuite_source.get_accounts_columns": {"unique_id": "macro.netsuite_source.get_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "name": "get_accounts_columns", "macro_sql": "{% macro get_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"general_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_balancesheet\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_leftside\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"type_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.16312, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounts_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "name": "get_netsuite2_accounts_columns", "macro_sql": "{% macro get_netsuite2_accounts_columns() %}\n\n{% set columns = [\n\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"acctnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"accttype\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"deferralacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"cashflowrate\", \"datatype\": dbt.type_string()},\n {\"name\": \"generalrate\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"includechildren\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"issummary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.16496, "supported_languages": null}, "macro.netsuite_source.get_classes_columns": {"unique_id": "macro.netsuite_source.get_classes_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "name": "get_classes_columns", "macro_sql": "{% macro get_classes_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.165792, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_classes_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_classes_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "name": "get_netsuite2_classes_columns", "macro_sql": "{% macro get_netsuite2_classes_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.166595, "supported_languages": null}, "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns": {"unique_id": "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "original_file_path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "name": "get_accountingperiodfiscalcalendars_columns", "macro_sql": "{% macro get_accountingperiodfiscalcalendars_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fiscalcalendar\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.16752, "supported_languages": null}, "macro.netsuite_source.get_accountingbooksubsidiaries_columns": {"unique_id": "macro.netsuite_source.get_accountingbooksubsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accountingbooksubsidiaries_columns.sql", "original_file_path": "macros/get_accountingbooksubsidiaries_columns.sql", "name": "get_accountingbooksubsidiaries_columns", "macro_sql": "{% macro get_accountingbooksubsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.16845, "supported_languages": null}, "macro.netsuite_source.get_items_columns": {"unique_id": "macro.netsuite_source.get_items_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "name": "get_items_columns", "macro_sql": "{% macro get_items_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_drop_ship\", \"datatype\": dbt.type_string()},\n {\"name\": \"alt_demand_source_item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"atp_lead_time\", \"datatype\": dbt.type_float()},\n {\"name\": \"atp_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_to_partners\", \"datatype\": dbt.type_string()},\n {\"name\": \"avatax_taxcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"averagecost\", \"datatype\": dbt.type_float()},\n {\"name\": \"backward_consumption_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"build_sub_assemblies\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"code_of_supply_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"commodity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"consumption_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_0\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_estimate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"costing_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_manufacture\", \"datatype\": dbt.type_string()},\n {\"name\": \"create_plan_on_event_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"created\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"current_on_order_count\", \"datatype\": dbt.type_float()},\n {\"name\": \"custreturn_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_of_last_transaction\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_return_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"deferred_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"deferred_revenue_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"demand_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"demand_time_fence\", \"datatype\": dbt.type_float()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_string()},\n {\"name\": \"displayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"distribution_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"distribution_network\", \"datatype\": dbt.type_string()},\n {\"name\": \"dropship_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"effective_bom_control_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"featureddescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"featureditem\", \"datatype\": dbt.type_string()},\n {\"name\": \"fixed_lot_size\", \"datatype\": dbt.type_float()},\n {\"name\": \"forward_consumption_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"fraud_risk\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fx_adjustment_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"gain_loss_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"handling_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"hazmat\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_hazard_class\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_item_units\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_item_units_qty\", \"datatype\": dbt.type_float()},\n {\"name\": \"hazmat_packing_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_shipping_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"include_child_subsidiaries\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"interco_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"interco_income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"invt_count_classification\", \"datatype\": dbt.type_float()},\n {\"name\": \"invt_count_interval\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_cont_rev_handling\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_enforce_min_qty_internally\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_hold_rev_rec\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_moss\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_phantom\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_special_order_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isonline\", \"datatype\": dbt.type_string()},\n {\"name\": \"istaxable\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_defined_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_image\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_revenue_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_term_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"last_cogs_correction\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_invt_count_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_purchase_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"lot_numbered_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"lot_sizing_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturing_charge_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_bill_to_receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrix_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"maximum_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"minimum_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"mpn\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"nature_of_transaction_codes_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"next_invt_count_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ng_asset_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"ns_lead_time\", \"datatype\": dbt.type_float()},\n {\"name\": \"offersupport\", \"datatype\": dbt.type_string()},\n {\"name\": \"onspecial\", \"datatype\": dbt.type_string()},\n {\"name\": \"overhead_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"periodic_lot_size_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"periodic_lot_size_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pref_purchase_tax_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"pref_sale_tax_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"pref_stock_level\", \"datatype\": dbt.type_float()},\n {\"name\": \"prices_include_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"pricing_group_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"print_sub_items\", \"datatype\": dbt.type_string()},\n {\"name\": \"prod_price_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"prod_qty_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"prompt_payment_discount_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_price_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchasedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantityavailable\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantitybackordered\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantityonhand\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"reorder_multiple\", \"datatype\": dbt.type_float()},\n {\"name\": \"reorderpoint\", \"datatype\": dbt.type_float()},\n {\"name\": \"replenishment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"resalable\", \"datatype\": dbt.type_string()},\n {\"name\": \"reschedule_in_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"reschedule_out_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"rev_rec_forecast_rule_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"rev_rec_rule_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"revenue_allocation_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"round_up_as_component\", \"datatype\": dbt.type_string()},\n {\"name\": \"safety_stock_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"safety_stock_level\", \"datatype\": dbt.type_float()},\n {\"name\": \"sale_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"salesdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesforce_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesprice\", \"datatype\": dbt.type_string()},\n {\"name\": \"scrap_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"serialized_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"shippingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"special_work_order_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"specialsdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"storedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedetaileddescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplementary_unit__abberviat\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplementary_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"supply_time_fence\", \"datatype\": dbt.type_float()},\n {\"name\": \"supply_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"totalvalue\", \"datatype\": dbt.type_float()},\n {\"name\": \"transferprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"type_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type_of_goods_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"udf1\", \"datatype\": dbt.type_string()},\n {\"name\": \"udf2\", \"datatype\": dbt.type_string()},\n {\"name\": \"un_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbuild_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"units_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"upc_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"use_component_yield\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendorname\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendreturn_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vsoe_deferral\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_delivered\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_discount\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_in_user_defined_unit\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit_index\", \"datatype\": dbt.type_float()},\n {\"name\": \"wip_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"wip_cost_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"work_order_lead_time\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('items_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.209292, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_items_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_items_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "name": "get_netsuite2_items_columns", "macro_sql": "{% macro get_netsuite2_items_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"alternatedemandsourceitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"amortizationperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"amortizationtemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"assetaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"atpmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"autoexpandkitforrevenuemgmt\", \"datatype\": dbt.type_string()},\n {\"name\": \"averagecost\", \"datatype\": dbt.type_float()},\n {\"name\": \"backwardconsumptiondays\", \"datatype\": dbt.type_int()},\n {\"name\": \"billexchratevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"billingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"billpricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"billqtyvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"buildentireassembly\", \"datatype\": dbt.type_string()},\n {\"name\": \"buildtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"consumptionunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"copydescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"costestimate\", \"datatype\": dbt.type_float()},\n {\"name\": \"costestimatetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"costingmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"costingmethoddisplay\", \"datatype\": dbt.type_string()},\n {\"name\": \"countryofmanufacture\", \"datatype\": dbt.type_string()},\n {\"name\": \"createddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"createexpenseplanson\", \"datatype\": dbt.type_int()},\n {\"name\": \"createjob\", \"datatype\": dbt.type_string()},\n {\"name\": \"createrevenueplanson\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deferralaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"deferredrevenueaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"deferrevrec\", \"datatype\": dbt.type_string()},\n {\"name\": \"demandmodifier\", \"datatype\": dbt.type_float()},\n {\"name\": \"demandsource\", \"datatype\": dbt.type_string()},\n {\"name\": \"demandtimefence\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"directrevenueposting\", \"datatype\": dbt.type_string()},\n {\"name\": \"displayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"dropshipexpenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"enforceminqtyinternally\", \"datatype\": dbt.type_string()},\n {\"name\": \"excludefromsitemap\", \"datatype\": dbt.type_string()},\n {\"name\": \"expenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"expenseamortizationrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fixedlotsize\", \"datatype\": dbt.type_float()},\n {\"name\": \"forwardconsumptiondays\", \"datatype\": dbt.type_int()},\n {\"name\": \"froogleproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"gainlossaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"generateaccruals\", \"datatype\": dbt.type_string()},\n {\"name\": \"handlingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includechildren\", \"datatype\": dbt.type_string()},\n {\"name\": \"incomeaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercodefrevaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercoexpenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercoincomeaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"isdropshipitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isfulfillable\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"islotitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isonline\", \"datatype\": dbt.type_string()},\n {\"name\": \"isphantom\", \"datatype\": dbt.type_string()},\n {\"name\": \"isserialitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isspecialorderitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isspecialworkorderitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"itemid\", \"datatype\": dbt.type_string()},\n {\"name\": \"itemrevenuecategory\", \"datatype\": dbt.type_int()},\n {\"name\": \"itemtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastpurchaseprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"leadtime\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"manufacturer\", \"datatype\": dbt.type_string()},\n {\"name\": \"matchbilltoreceipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrixitemnametemplate\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrixtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"maximumquantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"minimumquantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"mpn\", \"datatype\": dbt.type_string()},\n {\"name\": \"nextagcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"nextagproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"overallquantitypricingtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodiclotsizedays\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodiclotsizetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferredlocation\", \"datatype\": dbt.type_int()},\n {\"name\": \"pricinggroup\", \"datatype\": dbt.type_int()},\n {\"name\": \"printitems\", \"datatype\": dbt.type_string()},\n {\"name\": \"prodpricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"prodqtyvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"projectexpensetype\", \"datatype\": dbt.type_int()},\n {\"name\": \"projecttemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchasedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchasepricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchaseunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantitypricingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"relateditemsdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"rescheduleindays\", \"datatype\": dbt.type_int()},\n {\"name\": \"rescheduleoutdays\", \"datatype\": dbt.type_int()},\n {\"name\": \"residual\", \"datatype\": dbt.type_float()},\n {\"name\": \"revenueallocationgroup\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenuerecognitionrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"revrecforecastrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"revreclassfxaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"roundupascomponent\", \"datatype\": dbt.type_string()},\n {\"name\": \"safetystocklevel\", \"datatype\": dbt.type_float()},\n {\"name\": \"saleunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"scrapacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"searchkeywords\", \"datatype\": dbt.type_string()},\n {\"name\": \"seasonaldemand\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipindividually\", \"datatype\": dbt.type_string()},\n {\"name\": \"shippackage\", \"datatype\": dbt.type_int()},\n {\"name\": \"shippingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"shoppingdotcomcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"shoppingproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"shopzillacategoryid\", \"datatype\": dbt.type_int()},\n {\"name\": \"shopzillaproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"sitemappriority\", \"datatype\": dbt.type_string()},\n {\"name\": \"stockdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"stockunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"storedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplayimage\", \"datatype\": dbt.type_int()},\n {\"name\": \"storedisplayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplaythumbnail\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplylotsizingmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplyreplenishmentmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplytimefence\", \"datatype\": dbt.type_int()},\n {\"name\": \"supplytype\", \"datatype\": dbt.type_string()},\n {\"name\": \"totalquantityonhand\", \"datatype\": dbt.type_float()},\n {\"name\": \"totalvalue\", \"datatype\": dbt.type_float()},\n {\"name\": \"transferprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbuildvarianceaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"unitstype\", \"datatype\": dbt.type_int()},\n {\"name\": \"upccode\", \"datatype\": dbt.type_string()},\n {\"name\": \"usebins\", \"datatype\": dbt.type_string()},\n {\"name\": \"usemarginalrates\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendorname\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendreturnvarianceaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"vsoedelivered\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoepermitdiscount\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoesopgroup\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weightunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"weightunits\", \"datatype\": dbt.type_string()},\n {\"name\": \"wipacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"wipvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"yahooproductfeed\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('items_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2228758, "supported_languages": null}, "macro.netsuite_source.get_transaction_lines_columns": {"unique_id": "macro.netsuite_source.get_transaction_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "name": "get_transaction_lines_columns", "macro_sql": "{% macro get_transaction_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"company_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"non_posting_line\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_line_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.22501, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_lines_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transaction_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "name": "get_netsuite2_transaction_lines_columns", "macro_sql": "{% macro get_netsuite2_transaction_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"linesequencenumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"entity\", \"datatype\": dbt.type_int()},\n {\"name\": \"item\", \"datatype\": dbt.type_int()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"isclosed\", \"datatype\": dbt.type_string()},\n {\"name\": \"isbillable\", \"datatype\": dbt.type_string()},\n {\"name\": \"iscogs\", \"datatype\": dbt.type_string()},\n {\"name\": \"cleared\", \"datatype\": dbt.type_string()},\n {\"name\": \"commitmentfirm\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainline\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxline\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.226866, "supported_languages": null}, "macro.netsuite_source.get_vendors_columns": {"unique_id": "macro.netsuite_source.get_vendors_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "name": "get_vendors_columns", "macro_sql": "{% macro get_vendors_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"accounts_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_revenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"auto_renewals\", \"datatype\": dbt.type_string()},\n {\"name\": \"auto_send_statements\", \"datatype\": dbt.type_string()},\n {\"name\": \"billaddress\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"create_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creditlimit\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dic\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_bill_payment_vouchers\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_cash_sales\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_credit_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_invoices\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_item_fulfilments\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_purchase_orders\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_quotes\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_sales_orders\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_statements\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exemption_certificate_no\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"hris_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ico\", \"datatype\": dbt.type_string()},\n {\"name\": \"id_number_in_the_country_of_r\", \"datatype\": dbt.type_string()},\n {\"name\": \"id_type_in_the_country_of_r_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"in_transit_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"incoterm\", \"datatype\": dbt.type_string()},\n {\"name\": \"industry_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"invoice_via_procurement_syste\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoicing_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"is1099eligible\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_partner\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_person\", \"datatype\": dbt.type_string()},\n {\"name\": \"isemailhtml\", \"datatype\": dbt.type_string()},\n {\"name\": \"isemailpdf\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"labor_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_sales_activity\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"line1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line3\", \"datatype\": dbt.type_string()},\n {\"name\": \"loginaccess\", \"datatype\": dbt.type_string()},\n {\"name\": \"lsa_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"lsa_link_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"msa_effective_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"no__of_employees\", \"datatype\": dbt.type_float()},\n {\"name\": \"openbalance\", \"datatype\": dbt.type_float()},\n {\"name\": \"openbalance_foreign\", \"datatype\": dbt.type_float()},\n {\"name\": \"payables_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"payment_terms_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"prepayment_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"printoncheckas\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchases_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"represents_subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"restrict_access_to_expensify\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesforce_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipaddress\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_contact_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_contact_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_contact_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_contact_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxidnum\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_approver_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transactions_need_approval\", \"datatype\": dbt.type_string()},\n {\"name\": \"uen\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilled_orders\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbilled_orders_foreign\", \"datatype\": dbt.type_float()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"vat_registration_no\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendor_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('vendors_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2431161, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_vendors_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_vendors_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "name": "get_netsuite2_vendors_columns", "macro_sql": "{% macro get_netsuite2_vendors_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"altemail\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"altphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balanceprimary\", \"datatype\": dbt.type_float()},\n {\"name\": \"billingclass\", \"datatype\": dbt.type_int()},\n {\"name\": \"category\", \"datatype\": dbt.type_int()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"contactlist\", \"datatype\": dbt.type_string()},\n {\"name\": \"creditlimit\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultbankaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultvendorpaymentaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"emailpreference\", \"datatype\": dbt.type_string()},\n {\"name\": \"emailtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"expenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"faxtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"giveaccess\", \"datatype\": dbt.type_string()},\n {\"name\": \"homephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"incoterm\", \"datatype\": dbt.type_int()},\n {\"name\": \"isautogeneratedrepresentingentity\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isjobresourcevend\", \"datatype\": dbt.type_string()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"laborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"legalname\", \"datatype\": dbt.type_string()},\n {\"name\": \"middlename\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobilephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"payablesaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"printoncheckas\", \"datatype\": dbt.type_string()},\n {\"name\": \"printtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"representingsubsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"rolesforsearch\", \"datatype\": dbt.type_string()},\n {\"name\": \"salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiaryedition\", \"datatype\": dbt.type_string()},\n {\"name\": \"terms\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilledorders\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbilledordersprimary\", \"datatype\": dbt.type_float()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"workcalendar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('vendors_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.24892, "supported_languages": null}, "macro.netsuite_source.get_transactionaccountingline_columns": {"unique_id": "macro.netsuite_source.get_transactionaccountingline_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactionaccountingline_columns.sql", "original_file_path": "macros/get_transactionaccountingline_columns.sql", "name": "get_transactionaccountingline_columns", "macro_sql": "{% macro get_transactionaccountingline_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account\", \"datatype\": dbt.type_int()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountlinked\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountunpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"debit\", \"datatype\": dbt.type_float()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"netamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"overheadparentitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"paymentamountunused\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountused\", \"datatype\": dbt.type_float()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionline\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.25121, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_accounting_lines_columns.sql", "original_file_path": "macros/get_transaction_accounting_lines_columns.sql", "name": "get_netsuite2_transaction_accounting_lines_columns", "macro_sql": "{% macro get_netsuite2_transaction_accounting_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account\", \"datatype\": dbt.type_int()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountunpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"debit\", \"datatype\": dbt.type_float()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"netamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountunused\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountused\", \"datatype\": dbt.type_float()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionline\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.253164, "supported_languages": null}, "macro.netsuite_source.get_vendorcategory_columns": {"unique_id": "macro.netsuite_source.get_vendorcategory_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendorcategory_columns.sql", "original_file_path": "macros/get_vendorcategory_columns.sql", "name": "get_vendorcategory_columns", "macro_sql": "{% macro get_vendorcategory_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"istaxagency\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.254291, "supported_languages": null}, "macro.netsuite_source.get_accounttype_columns": {"unique_id": "macro.netsuite_source.get_accounttype_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounttype_columns.sql", "original_file_path": "macros/get_accounttype_columns.sql", "name": "get_accounttype_columns", "macro_sql": "{% macro get_accounttype_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balancesheet\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultcashflowratetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"defaultgeneralratetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"eliminationalgo\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"includeinrevaldefault\", \"datatype\": dbt.type_string()},\n {\"name\": \"internalid\", \"datatype\": dbt.type_int()},\n {\"name\": \"left\", \"datatype\": dbt.type_string(), \"quote\": True},\n {\"name\": \"longname\", \"datatype\": dbt.type_string()},\n {\"name\": \"seqnum\", \"datatype\": dbt.type_int()},\n {\"name\": \"usercanchangerevaloption\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2559512, "supported_languages": null}, "macro.netsuite_source.get_accounting_books_columns": {"unique_id": "macro.netsuite_source.get_accounting_books_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "name": "get_accounting_books_columns", "macro_sql": "{% macro get_accounting_books_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_book_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"accounting_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accounting_book_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"base_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_created\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"form_template_component_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"form_template_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_adjustment_only\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_arrangement_level_reclass\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_consolidated\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_contingent_revenue_handling\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_include_child_subsidiaries\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_two_step_revenue_allocation\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilled_receivable_grouping\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2586, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_books_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounting_books_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "name": "get_netsuite2_accounting_books_columns", "macro_sql": "{% macro get_netsuite2_accounting_books_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"basebook\", \"datatype\": dbt.type_int()},\n {\"name\": \"contingentrevenuehandling\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effectiveperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isadjustmentonly\", \"datatype\": dbt.type_string()},\n {\"name\": \"isconsolidated\", \"datatype\": dbt.type_string()},\n {\"name\": \"isprimary\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiariesstring\", \"datatype\": dbt.type_string()},\n {\"name\": \"twosteprevenueallocation\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilledreceivablegrouping\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.260113, "supported_languages": null}, "macro.netsuite_source.get_departments_columns": {"unique_id": "macro.netsuite_source.get_departments_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "name": "get_departments_columns", "macro_sql": "{% macro get_departments_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.261068, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_departments_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_departments_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "name": "get_netsuite2_departments_columns", "macro_sql": "{% macro get_netsuite2_departments_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2619572, "supported_languages": null}, "macro.netsuite_source.get_transactions_columns": {"unique_id": "macro.netsuite_source.get_transactions_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "name": "get_transactions_columns", "macro_sql": "{% macro get_transactions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"is_advanced_intercompany\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_intercompany\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"trandate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.263666, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transactions_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transactions_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "name": "get_netsuite2_transactions_columns", "macro_sql": "{% macro get_netsuite2_transactions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"trandate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"createddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"closedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"entity\", \"datatype\": dbt.type_int()},\n {\"name\": \"postingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"intercoadj\", \"datatype\": dbt.type_string()},\n {\"name\": \"isreversal\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.265377, "supported_languages": null}, "macro.netsuite_source.get_entity_columns": {"unique_id": "macro.netsuite_source.get_entity_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_entity_columns.sql", "original_file_path": "macros/get_entity_columns.sql", "name": "get_entity_columns", "macro_sql": "{% macro get_entity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"altemail\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"altphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee\", \"datatype\": dbt.type_int()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"genericresource\", \"datatype\": dbt.type_int()},\n {\"name\": \"homephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"laborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"middlename\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobilephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"othername\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"partner\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"project\", \"datatype\": dbt.type_int()},\n {\"name\": \"projecttemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"toplevelparent\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.269762, "supported_languages": null}, "macro.netsuite_source.get_accounting_periods_columns": {"unique_id": "macro.netsuite_source.get_accounting_periods_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "name": "get_accounting_periods_columns", "macro_sql": "{% macro get_accounting_periods_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"closed\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_accounts_payable\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_accounts_receivable\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_all\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"closed_payroll\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ending\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fiscal_calendar_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"fivetran_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_adjustment\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_accounts_payable\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_accounts_receivable\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_all\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_payroll\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"quarter\", \"datatype\": dbt.type_string()},\n {\"name\": \"starting\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"year_0\", \"datatype\": dbt.type_string()},\n {\"name\": \"year_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.273397, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_periods_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounting_periods_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "name": "get_netsuite2_accounting_periods_columns", "macro_sql": "{% macro get_netsuite2_accounting_periods_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"alllocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"allownonglchanges\", \"datatype\": dbt.type_string()},\n {\"name\": \"aplocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"arlocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed\", \"datatype\": dbt.type_string()},\n {\"name\": \"closedondate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"enddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isadjust\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isposting\", \"datatype\": dbt.type_string()},\n {\"name\": \"isquarter\", \"datatype\": dbt.type_string()},\n {\"name\": \"isyear\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodname\", \"datatype\": dbt.type_string()},\n {\"name\": \"startdate\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.27524, "supported_languages": null}, "macro.netsuite_source.get_consolidated_exchange_rates_columns": {"unique_id": "macro.netsuite_source.get_consolidated_exchange_rates_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "name": "get_consolidated_exchange_rates_columns", "macro_sql": "{% macro get_consolidated_exchange_rates_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"consolidated_exchange_rate_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"current_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"current_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"historical_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"historical_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"to_subsidiary_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.27727, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "name": "get_netsuite2_consolidated_exchange_rates_columns", "macro_sql": "{% macro get_netsuite2_consolidated_exchange_rates_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"averagerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"currentrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"fromcurrency\", \"datatype\": dbt.type_int()},\n {\"name\": \"fromsubsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"historicalrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"postingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"tocurrency\", \"datatype\": dbt.type_int()},\n {\"name\": \"tosubsidiary\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.278403, "supported_languages": null}, "macro.netsuite_source.get_income_accounts_columns": {"unique_id": "macro.netsuite_source.get_income_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_income_accounts_columns.sql", "original_file_path": "macros/get_income_accounts_columns.sql", "name": "get_income_accounts_columns", "macro_sql": "{% macro get_income_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"current_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"desription\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_including_child_subs\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.280326, "supported_languages": null}, "macro.netsuite_source.get_customers_columns": {"unique_id": "macro.netsuite_source.get_customers_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "name": "get_customers_columns", "macro_sql": "{% macro get_customers_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_first_order\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.28193, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_customers_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_customers_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "name": "get_netsuite2_customers_columns", "macro_sql": "{% macro get_netsuite2_customers_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"receivablesaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"firstorderdate\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.283502, "supported_languages": null}, "macro.netsuite_source.get_locations_columns": {"unique_id": "macro.netsuite_source.get_locations_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "name": "get_locations_columns", "macro_sql": "{% macro get_locations_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.284718, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_locations_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_locations_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "name": "get_netsuite2_locations_columns", "macro_sql": "{% macro get_netsuite2_locations_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2856052, "supported_languages": null}, "macro.netsuite_source.get_entityaddress_columns": {"unique_id": "macro.netsuite_source.get_entityaddress_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_entityaddress_columns.sql", "original_file_path": "macros/get_entityaddress_columns.sql", "name": "get_entityaddress_columns", "macro_sql": "{% macro get_entityaddress_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"addr1\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr2\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr3\", \"datatype\": dbt.type_string()},\n {\"name\": \"addressee\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrtext\", \"datatype\": dbt.type_string()},\n {\"name\": \"attention\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dropdownstate\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"nkey\", \"datatype\": dbt.type_int()},\n {\"name\": \"override\", \"datatype\": dbt.type_string()},\n {\"name\": \"recordowner\", \"datatype\": dbt.type_int()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.287709, "supported_languages": null}, "macro.netsuite_source.get_vendor_types_columns": {"unique_id": "macro.netsuite_source.get_vendor_types_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendor_types_columns.sql", "original_file_path": "macros/get_vendor_types_columns.sql", "name": "get_vendor_types_columns", "macro_sql": "{% macro get_vendor_types_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendor_type_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_type_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2887292, "supported_languages": null}, "macro.netsuite_source.get_subsidiaries_columns": {"unique_id": "macro.netsuite_source.get_subsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "name": "get_subsidiaries_columns", "macro_sql": "{% macro get_subsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address\", \"datatype\": dbt.type_string()},\n {\"name\": \"address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"base_currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"branch_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"brn\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"edition\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fiscal_calendar_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_elimination\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_moss\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive_bool\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"moss_nexus_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"return_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_zipcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_zipcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"state_tax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"subnav__searchable_subsidiary\", \"datatype\": dbt.type_float()},\n {\"name\": \"subsidiary_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxonomy_reference_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"tran_num_prefix\", \"datatype\": dbt.type_string()},\n {\"name\": \"uen\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.295371, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_subsidiaries_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_subsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "name": "get_netsuite2_subsidiaries_columns", "macro_sql": "{% macro get_netsuite2_subsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"fiscalcalendar\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.296545, "supported_languages": null}, "macro.netsuite_source.get_job_columns": {"unique_id": "macro.netsuite_source.get_job_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_job_columns.sql", "original_file_path": "macros/get_job_columns.sql", "name": "get_job_columns", "macro_sql": "{% macro get_job_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"actualtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"allowallresourcesfortasks\", \"datatype\": dbt.type_string()},\n {\"name\": \"allowexpenses\", \"datatype\": dbt.type_string()},\n {\"name\": \"allowtime\", \"datatype\": dbt.type_string()},\n {\"name\": \"alternatecontact\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"billingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"calculatedenddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"calculatedenddatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"category\", \"datatype\": dbt.type_int()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"contactlist\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"currencyprecision\", \"datatype\": dbt.type_int()},\n {\"name\": \"custentity1\", \"datatype\": dbt.type_string()},\n {\"name\": \"custentity4\", \"datatype\": dbt.type_string()},\n {\"name\": \"custentity5\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"enddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitystatus\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimatedcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedgrossprofit\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedgrossprofitpercent\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborcostbaseline\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborrevenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedrevenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtimeoverride\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtimeoverridebaseline\", \"datatype\": dbt.type_float()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"files\", \"datatype\": dbt.type_string()},\n {\"name\": \"forecastchargerunondemand\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includecrmtasksintotals\", \"datatype\": dbt.type_string()},\n {\"name\": \"isexempttime\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isproductivetime\", \"datatype\": dbt.type_string()},\n {\"name\": \"isutilizedtime\", \"datatype\": dbt.type_string()},\n {\"name\": \"jobbillingtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"jobitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"jobprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"jobtype\", \"datatype\": dbt.type_int()},\n {\"name\": \"lastbaselinedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"limittimetoassignees\", \"datatype\": dbt.type_string()},\n {\"name\": \"materializetime\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"percentcomplete\", \"datatype\": dbt.type_float()},\n {\"name\": \"percenttimecomplete\", \"datatype\": dbt.type_float()},\n {\"name\": \"primarycontact\", \"datatype\": dbt.type_string()},\n {\"name\": \"projectedenddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"projectedenddatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"projectmanager\", \"datatype\": dbt.type_int()},\n {\"name\": \"startdate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"startdatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"timeapproval\", \"datatype\": dbt.type_int()},\n {\"name\": \"timeremaining\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.305096, "supported_languages": null}, "macro.netsuite_source.get_currencies_columns": {"unique_id": "macro.netsuite_source.get_currencies_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "name": "get_currencies_columns", "macro_sql": "{% macro get_currencies_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"is_inactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"precision_0\", \"datatype\": dbt.type_float()},\n {\"name\": \"symbol\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.306714, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_currencies_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_currencies_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "name": "get_netsuite2_currencies_columns", "macro_sql": "{% macro get_netsuite2_currencies_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currencyprecision\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"displaysymbol\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxrateupdatetimezone\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includeinfxrateupdates\", \"datatype\": dbt.type_string()},\n {\"name\": \"isbasecurrency\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"overridecurrencyformat\", \"datatype\": dbt.type_string()},\n {\"name\": \"symbol\", \"datatype\": dbt.type_string()},\n {\"name\": \"symbolplacement\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.308226, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3086982, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3096352, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3098052, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3099709, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.310134, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3102772, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.310441, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.310946, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.311646, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3127801, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3130398, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3132968, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.313545, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.313795, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3140721, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3144178, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.314846, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3149529, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.315056, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3151622, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3156219, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3162858, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.316979, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.31752, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3176541, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.317784, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.31791, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.318041, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.320811, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.320971, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.321128, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.321279, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.323027, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.323921, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3240619, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.324338, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.324626, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.324759, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.324886, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3250098, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.325558, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.326139, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3266912, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.326895, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.327113, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.327436, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.328322, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.332335, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.332698, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.333153, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.334729, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.335271, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.335886, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.336041, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3361878, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.336352, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.336502, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3366442, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.33736, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3383338, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3390741, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3392372, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3393972, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.339556, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.33971, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3398862, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.340214, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.340317, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3404858, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.341182, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.342565, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.345067, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.346565, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3469062, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3470058, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.347101, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.347542, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.347981, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "netsuite_source.account_periods_table": {"unique_id": "netsuite_source.account_periods_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_periods_table", "block_contents": "Table detailing all accounting periods, including monthly, quarterly and yearly."}, "netsuite_source.accounting_books_table": {"unique_id": "netsuite_source.accounting_books_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_books_table", "block_contents": "Table detailing all accounting books set up in Netsuite."}, "netsuite_source.accounts_table": {"unique_id": "netsuite_source.accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounts_table", "block_contents": "Table detailing all accounts set up in Netsuite."}, "netsuite_source.classes_table": {"unique_id": "netsuite_source.classes_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "classes_table", "block_contents": "Table detailing all classes set up in Netsuite."}, "netsuite_source.consolidated_exchange_rates_table": {"unique_id": "netsuite_source.consolidated_exchange_rates_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "consolidated_exchange_rates_table", "block_contents": "Table detailing average, historical and current exchange rates for all accounting periods."}, "netsuite_source.customers_table": {"unique_id": "netsuite_source.customers_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customers_table", "block_contents": "Table detailing all customer information."}, "netsuite_source.currencies_table": {"unique_id": "netsuite_source.currencies_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currencies_table", "block_contents": "Table detailing all currency information."}, "netsuite_source.departments_table": {"unique_id": "netsuite_source.departments_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "departments_table", "block_contents": "Table detailing all departments set up in Netsuite."}, "netsuite_source.expense_accounts_table": {"unique_id": "netsuite_source.expense_accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expense_accounts_table", "block_contents": "Table detailing all expense accounts."}, "netsuite_source.income_accounts_table": {"unique_id": "netsuite_source.income_accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "income_accounts_table", "block_contents": "Table detailing all income accounts."}, "netsuite_source.items_table": {"unique_id": "netsuite_source.items_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "items_table", "block_contents": "Table detailing information about the items created in Netsuite."}, "netsuite_source.locations_table": {"unique_id": "netsuite_source.locations_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "locations_table", "block_contents": "Table detailing all locations, including store, warehouse and office locations."}, "netsuite_source.subsidiaries_table": {"unique_id": "netsuite_source.subsidiaries_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "subsidiaries_table", "block_contents": "Table detailing all subsidiaries."}, "netsuite_source.transaction_lines_table": {"unique_id": "netsuite_source.transaction_lines_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "netsuite_source.transaction_table": {"unique_id": "netsuite_source.transaction_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_table", "block_contents": "A table detailing all transactions."}, "netsuite_source.vendor_types_table": {"unique_id": "netsuite_source.vendor_types_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_types_table", "block_contents": "A table detailing all the various types of vendors."}, "netsuite_source.vendor_table": {"unique_id": "netsuite_source.vendor_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "A table detailing all vendor information."}, "netsuite_source.entities_table": {"unique_id": "netsuite_source.entities_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entities_table", "block_contents": "Table detailing all entities in Netsuite."}, "netsuite_source.jobs_table": {"unique_id": "netsuite_source.jobs_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "jobs_table", "block_contents": "Table detailing all jobs."}, "netsuite_source.transaction_accounting_lines_table": {"unique_id": "netsuite_source.transaction_accounting_lines_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_accounting_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "netsuite_source.vendor_categories_table": {"unique_id": "netsuite_source.vendor_categories_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_categories_table", "block_contents": "A table containing categories and how they map to vendors."}, "netsuite_source.accounting_book_subsidiaries_table": {"unique_id": "netsuite_source.accounting_book_subsidiaries_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_book_subsidiaries_table", "block_contents": "A table containing the various account books and the respective subsidiaries."}, "netsuite_source.accounting_period_fiscal_calendars_table": {"unique_id": "netsuite_source.accounting_period_fiscal_calendars_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_period_fiscal_calendars_table", "block_contents": "A table containing the accounting fiscal calendar periods."}, "netsuite_source.account_types_table": {"unique_id": "netsuite_source.account_types_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_types_table", "block_contents": "A table containing the various account types within Netsuite."}, "netsuite_source.entity_address_table": {"unique_id": "netsuite_source.entity_address_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entity_address_table", "block_contents": "A table containing addresses and the various entities which they map."}, "netsuite_source.location_main_address_table": {"unique_id": "netsuite_source.location_main_address_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "location_main_address_table", "block_contents": "A table containing the location main addresses."}, "netsuite_source._fivetran_id": {"unique_id": "netsuite_source._fivetran_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "netsuite_source._fivetran_synced": {"unique_id": "netsuite_source._fivetran_synced", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "netsuite_source._fivetran_deleted": {"unique_id": "netsuite_source._fivetran_deleted", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Timestamp of when a record was deleted."}, "netsuite_source.vendor_id": {"unique_id": "netsuite_source.vendor_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_id", "block_contents": "The unique identifier of the vendor."}, "netsuite_source.company_name": {"unique_id": "netsuite_source.company_name", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "company_name", "block_contents": "Name of the company."}, "netsuite_source.create_date_at": {"unique_id": "netsuite_source.create_date_at", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "create_date_at", "block_contents": "Timestamp of the record creation."}, "netsuite_source.vendor_category_id": {"unique_id": "netsuite_source.vendor_category_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_category_id", "block_contents": "Unique identifier of the vendor category."}, "netsuite_source.accounting_period_id": {"unique_id": "netsuite_source.accounting_period_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_period_id", "block_contents": "The accounting period id of the accounting period which the transaction took place in."}, "netsuite_source.created_at": {"unique_id": "netsuite_source.created_at", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of when the record was created."}, "netsuite_source.currency_id": {"unique_id": "netsuite_source.currency_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "The currency id of the currency used within the record."}, "netsuite_source.entity_id": {"unique_id": "netsuite_source.entity_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entity_id", "block_contents": "The entity id of the entity used for the record."}, "netsuite_source.transaction_id": {"unique_id": "netsuite_source.transaction_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "The transaction id of referenced for the record."}, "netsuite_source.department_id": {"unique_id": "netsuite_source.department_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "The unique identifier of the department used for the record."}, "netsuite_source.subsidiary_id": {"unique_id": "netsuite_source.subsidiary_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "subsidiary_id", "block_contents": "The unique identifier of the subsidiary used for the record."}, "netsuite_source.location_id": {"unique_id": "netsuite_source.location_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "location_id", "block_contents": "The unique identifier of the location used for the record."}, "netsuite_source.class_id": {"unique_id": "netsuite_source.class_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "The unique identifier of the class used for the record."}, "netsuite_source.item_id": {"unique_id": "netsuite_source.item_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "The unique identifier of the item used within the record."}, "netsuite_source.fiscal_calendar_id": {"unique_id": "netsuite_source.fiscal_calendar_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "fiscal_calendar_id", "block_contents": "Reference to the fiscal calendar used for the record."}, "netsuite_source.main_address_id": {"unique_id": "netsuite_source.main_address_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "main_address_id", "block_contents": "Reference to the main address used for the record."}, "netsuite_source.addr1": {"unique_id": "netsuite_source.addr1", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr1", "block_contents": "The associated address 1."}, "netsuite_source.addr2": {"unique_id": "netsuite_source.addr2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr2", "block_contents": "The associated address 2."}, "netsuite_source.addr3": {"unique_id": "netsuite_source.addr3", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr3", "block_contents": "The associated address 3."}, "netsuite_source.addressee": {"unique_id": "netsuite_source.addressee", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addressee", "block_contents": "The individual associated with the address"}, "netsuite_source.full_address": {"unique_id": "netsuite_source.full_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "full_address", "block_contents": "The full address associated."}, "netsuite_source.city": {"unique_id": "netsuite_source.city", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "city", "block_contents": "The associated city."}, "netsuite_source.country": {"unique_id": "netsuite_source.country", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "country", "block_contents": "The associated country."}, "netsuite_source.state": {"unique_id": "netsuite_source.state", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "state", "block_contents": "The associated state."}, "netsuite_source.nkey": {"unique_id": "netsuite_source.nkey", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "nkey", "block_contents": "The associated Netsuite key."}, "netsuite_source.zipcode": {"unique_id": "netsuite_source.zipcode", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "zipcode", "block_contents": "The associated zipcode."}, "netsuite_source.customer_id": {"unique_id": "netsuite_source.customer_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Unique identifier of the customer."}, "netsuite_source.accounting_book_id": {"unique_id": "netsuite_source.accounting_book_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_book_id", "block_contents": "Unique identifier of the accounting book."}, "netsuite_source.account_type_id": {"unique_id": "netsuite_source.account_type_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type_id", "block_contents": "Unique identifier of thea account type."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": [], "seed.netsuite_source_integration_tests.netsuite_vendors_data": [], "seed.netsuite_source_integration_tests.netsuite2_classification_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_source_integration_tests.netsuite2_entities_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_source_integration_tests.netsuite_customers_data": [], "seed.netsuite_source_integration_tests.netsuite_locations_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_data": [], "seed.netsuite_source_integration_tests.netsuite_items_data": [], "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_source_integration_tests.netsuite_classes_data": [], "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_source_integration_tests.netsuite_departments_data": [], "seed.netsuite_source_integration_tests.netsuite2_customer_data": [], "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_department_data": [], "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite_currencies_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_source_integration_tests.netsuite_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_source_integration_tests.netsuite2_job_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_data": [], "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_source_integration_tests.netsuite2_item_data": [], "seed.netsuite_source_integration_tests.netsuite_transactions_data": [], "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["model.netsuite_source.stg_netsuite2__transactions_tmp", "model.netsuite_source.stg_netsuite2__transactions_tmp"], "model.netsuite_source.stg_netsuite2__jobs": ["model.netsuite_source.stg_netsuite2__jobs_tmp", "model.netsuite_source.stg_netsuite2__jobs_tmp"], "model.netsuite_source.stg_netsuite2__vendors": ["model.netsuite_source.stg_netsuite2__vendors_tmp", "model.netsuite_source.stg_netsuite2__vendors_tmp"], "model.netsuite_source.stg_netsuite2__classes": ["model.netsuite_source.stg_netsuite2__classes_tmp", "model.netsuite_source.stg_netsuite2__classes_tmp"], "model.netsuite_source.stg_netsuite2__account_types": ["model.netsuite_source.stg_netsuite2__account_types_tmp", "model.netsuite_source.stg_netsuite2__account_types_tmp"], "model.netsuite_source.stg_netsuite2__entities": ["model.netsuite_source.stg_netsuite2__entities_tmp", "model.netsuite_source.stg_netsuite2__entities_tmp"], "model.netsuite_source.stg_netsuite2__accounting_periods": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"], "model.netsuite_source.stg_netsuite2__customers": ["model.netsuite_source.stg_netsuite2__customers_tmp", "model.netsuite_source.stg_netsuite2__customers_tmp"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"], "model.netsuite_source.stg_netsuite2__accounts": ["model.netsuite_source.stg_netsuite2__accounts_tmp", "model.netsuite_source.stg_netsuite2__accounts_tmp"], "model.netsuite_source.stg_netsuite2__transaction_lines": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"], "model.netsuite_source.stg_netsuite2__subsidiaries": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"], "model.netsuite_source.stg_netsuite2__entity_address": ["model.netsuite_source.stg_netsuite2__entity_address_tmp", "model.netsuite_source.stg_netsuite2__entity_address_tmp"], "model.netsuite_source.stg_netsuite2__location_main_address": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp", "model.netsuite_source.stg_netsuite2__location_main_address_tmp"], "model.netsuite_source.stg_netsuite2__vendor_categories": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"], "model.netsuite_source.stg_netsuite2__departments": ["model.netsuite_source.stg_netsuite2__departments_tmp", "model.netsuite_source.stg_netsuite2__departments_tmp"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"], "model.netsuite_source.stg_netsuite2__accounting_books": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp", "model.netsuite_source.stg_netsuite2__accounting_books_tmp"], "model.netsuite_source.stg_netsuite2__items": ["model.netsuite_source.stg_netsuite2__items_tmp", "model.netsuite_source.stg_netsuite2__items_tmp"], "model.netsuite_source.stg_netsuite2__currencies": ["model.netsuite_source.stg_netsuite2__currencies_tmp", "model.netsuite_source.stg_netsuite2__currencies_tmp"], "model.netsuite_source.stg_netsuite2__locations": ["model.netsuite_source.stg_netsuite2__locations_tmp", "model.netsuite_source.stg_netsuite2__locations_tmp"], "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": ["source.netsuite_source.netsuite2.subsidiary"], "model.netsuite_source.stg_netsuite2__transactions_tmp": ["source.netsuite_source.netsuite2.transaction"], "model.netsuite_source.stg_netsuite2__entity_address_tmp": ["source.netsuite_source.netsuite2.entity_address"], "model.netsuite_source.stg_netsuite2__account_types_tmp": ["source.netsuite_source.netsuite2.account_type"], "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": ["source.netsuite_source.netsuite2.accounting_period"], "model.netsuite_source.stg_netsuite2__jobs_tmp": ["source.netsuite_source.netsuite2.job"], "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": ["source.netsuite_source.netsuite2.transaction_line"], "model.netsuite_source.stg_netsuite2__accounts_tmp": ["source.netsuite_source.netsuite2.account"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["source.netsuite_source.netsuite2.customer"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["source.netsuite_source.netsuite2.entity"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["source.netsuite_source.netsuite2.currency"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["source.netsuite_source.netsuite2.vendor"], "model.netsuite_source.stg_netsuite2__items_tmp": ["source.netsuite_source.netsuite2.item"], "model.netsuite_source.stg_netsuite2__accounting_books_tmp": ["source.netsuite_source.netsuite2.accounting_book"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"], "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": ["source.netsuite_source.netsuite2.vendor_category"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": ["source.netsuite_source.netsuite2.transaction_accounting_line"], "model.netsuite_source.stg_netsuite2__location_main_address_tmp": ["source.netsuite_source.netsuite2.location_main_address"], "model.netsuite_source.stg_netsuite2__locations_tmp": ["source.netsuite_source.netsuite2.location"], "model.netsuite_source.stg_netsuite2__departments_tmp": ["source.netsuite_source.netsuite2.department"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["source.netsuite_source.netsuite2.classification"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"], "model.netsuite_source.stg_netsuite__transactions": ["model.netsuite_source.stg_netsuite__transactions_tmp", "model.netsuite_source.stg_netsuite__transactions_tmp"], "model.netsuite_source.stg_netsuite__customers": ["model.netsuite_source.stg_netsuite__customers_tmp", "model.netsuite_source.stg_netsuite__customers_tmp"], "model.netsuite_source.stg_netsuite__accounting_books": ["model.netsuite_source.stg_netsuite__accounting_books_tmp", "model.netsuite_source.stg_netsuite__accounting_books_tmp"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"], "model.netsuite_source.stg_netsuite__transaction_lines": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp", "model.netsuite_source.stg_netsuite__transaction_lines_tmp"], "model.netsuite_source.stg_netsuite__income_accounts": ["model.netsuite_source.stg_netsuite__income_accounts_tmp", "model.netsuite_source.stg_netsuite__income_accounts_tmp"], "model.netsuite_source.stg_netsuite__expense_accounts": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp", "model.netsuite_source.stg_netsuite__expense_accounts_tmp"], "model.netsuite_source.stg_netsuite__vendors": ["model.netsuite_source.stg_netsuite__vendors_tmp", "model.netsuite_source.stg_netsuite__vendors_tmp"], "model.netsuite_source.stg_netsuite__classes": ["model.netsuite_source.stg_netsuite__classes_tmp", "model.netsuite_source.stg_netsuite__classes_tmp"], "model.netsuite_source.stg_netsuite__subsidiaries": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp", "model.netsuite_source.stg_netsuite__subsidiaries_tmp"], "model.netsuite_source.stg_netsuite__accounts": ["model.netsuite_source.stg_netsuite__accounts_tmp", "model.netsuite_source.stg_netsuite__accounts_tmp"], "model.netsuite_source.stg_netsuite__items": ["model.netsuite_source.stg_netsuite__items_tmp", "model.netsuite_source.stg_netsuite__items_tmp"], "model.netsuite_source.stg_netsuite__locations": ["model.netsuite_source.stg_netsuite__locations_tmp", "model.netsuite_source.stg_netsuite__locations_tmp"], "model.netsuite_source.stg_netsuite__departments": ["model.netsuite_source.stg_netsuite__departments_tmp", "model.netsuite_source.stg_netsuite__departments_tmp"], "model.netsuite_source.stg_netsuite__currencies": ["model.netsuite_source.stg_netsuite__currencies_tmp", "model.netsuite_source.stg_netsuite__currencies_tmp"], "model.netsuite_source.stg_netsuite__vendor_types": ["model.netsuite_source.stg_netsuite__vendor_types_tmp", "model.netsuite_source.stg_netsuite__vendor_types_tmp"], "model.netsuite_source.stg_netsuite__accounting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp", "model.netsuite_source.stg_netsuite__accounting_periods_tmp"], "model.netsuite_source.stg_netsuite__accounting_periods_tmp": ["source.netsuite_source.netsuite.accounting_periods"], "model.netsuite_source.stg_netsuite__accounting_books_tmp": ["source.netsuite_source.netsuite.accounting_books"], "model.netsuite_source.stg_netsuite__customers_tmp": ["source.netsuite_source.netsuite.customers"], "model.netsuite_source.stg_netsuite__transaction_lines_tmp": ["source.netsuite_source.netsuite.transaction_lines"], "model.netsuite_source.stg_netsuite__income_accounts_tmp": ["source.netsuite_source.netsuite.income_accounts"], "model.netsuite_source.stg_netsuite__accounts_tmp": ["source.netsuite_source.netsuite.accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["source.netsuite_source.netsuite.departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["source.netsuite_source.netsuite.currencies"], "model.netsuite_source.stg_netsuite__vendor_types_tmp": ["source.netsuite_source.netsuite.vendor_types"], "model.netsuite_source.stg_netsuite__vendors_tmp": ["source.netsuite_source.netsuite.vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["source.netsuite_source.netsuite.locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["source.netsuite_source.netsuite.items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["source.netsuite_source.netsuite.subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["source.netsuite_source.netsuite.transactions"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": ["source.netsuite_source.netsuite.consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__classes_tmp": ["source.netsuite_source.netsuite.classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["source.netsuite_source.netsuite.expense_accounts"], "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": ["model.netsuite_source.stg_netsuite__accounting_books"], "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": ["model.netsuite_source.stg_netsuite__accounting_books"], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": ["model.netsuite_source.stg_netsuite__accounts"], "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": ["model.netsuite_source.stg_netsuite__accounts"], "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": ["model.netsuite_source.stg_netsuite__classes"], "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": ["model.netsuite_source.stg_netsuite__classes"], "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": ["model.netsuite_source.stg_netsuite__currencies"], "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": ["model.netsuite_source.stg_netsuite__currencies"], "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": ["model.netsuite_source.stg_netsuite__customers"], "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": ["model.netsuite_source.stg_netsuite__customers"], "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": ["model.netsuite_source.stg_netsuite__departments"], "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": ["model.netsuite_source.stg_netsuite__departments"], "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": ["model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": ["model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": ["model.netsuite_source.stg_netsuite__income_accounts"], "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": ["model.netsuite_source.stg_netsuite__income_accounts"], "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": ["model.netsuite_source.stg_netsuite__items"], "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": ["model.netsuite_source.stg_netsuite__items"], "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": ["model.netsuite_source.stg_netsuite__locations"], "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": ["model.netsuite_source.stg_netsuite__locations"], "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": ["model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": ["model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": ["model.netsuite_source.stg_netsuite__transactions"], "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": ["model.netsuite_source.stg_netsuite__transactions"], "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": ["model.netsuite_source.stg_netsuite__vendor_types"], "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": ["model.netsuite_source.stg_netsuite__vendor_types"], "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": ["model.netsuite_source.stg_netsuite__vendors"], "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": ["model.netsuite_source.stg_netsuite__vendors"], "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": ["model.netsuite_source.stg_netsuite2__account_types"], "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": ["model.netsuite_source.stg_netsuite2__account_types"], "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": ["model.netsuite_source.stg_netsuite2__accounting_books"], "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": ["model.netsuite_source.stg_netsuite2__accounting_books"], "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": ["model.netsuite_source.stg_netsuite2__accounting_periods"], "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": ["model.netsuite_source.stg_netsuite2__accounting_periods"], "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": ["model.netsuite_source.stg_netsuite2__accounts"], "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": ["model.netsuite_source.stg_netsuite2__accounts"], "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": ["model.netsuite_source.stg_netsuite2__classes"], "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": ["model.netsuite_source.stg_netsuite2__classes"], "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": ["model.netsuite_source.stg_netsuite2__currencies"], "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": ["model.netsuite_source.stg_netsuite2__currencies"], "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": ["model.netsuite_source.stg_netsuite2__customers"], "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": ["model.netsuite_source.stg_netsuite2__customers"], "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": ["model.netsuite_source.stg_netsuite2__departments"], "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": ["model.netsuite_source.stg_netsuite2__departments"], "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": ["model.netsuite_source.stg_netsuite2__entities"], "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": ["model.netsuite_source.stg_netsuite2__entities"], "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": ["model.netsuite_source.stg_netsuite2__items"], "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": ["model.netsuite_source.stg_netsuite2__items"], "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": ["model.netsuite_source.stg_netsuite2__jobs"], "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": ["model.netsuite_source.stg_netsuite2__jobs"], "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": ["model.netsuite_source.stg_netsuite2__locations"], "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": ["model.netsuite_source.stg_netsuite2__locations"], "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": ["model.netsuite_source.stg_netsuite2__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": ["model.netsuite_source.stg_netsuite2__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": ["model.netsuite_source.stg_netsuite2__transactions"], "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": ["model.netsuite_source.stg_netsuite2__transactions"], "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": ["model.netsuite_source.stg_netsuite2__vendor_categories"], "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": ["model.netsuite_source.stg_netsuite2__vendor_categories"], "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": ["model.netsuite_source.stg_netsuite2__vendors"], "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": ["model.netsuite_source.stg_netsuite2__vendors"], "source.netsuite_source.netsuite2.account_type": [], "source.netsuite_source.netsuite2.accounting_book_subsidiaries": [], "source.netsuite_source.netsuite2.accounting_book": [], "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": [], "source.netsuite_source.netsuite2.accounting_period": [], "source.netsuite_source.netsuite2.account": [], "source.netsuite_source.netsuite2.classification": [], "source.netsuite_source.netsuite2.consolidated_exchange_rate": [], "source.netsuite_source.netsuite2.currency": [], "source.netsuite_source.netsuite2.customer": [], "source.netsuite_source.netsuite2.department": [], "source.netsuite_source.netsuite2.entity": [], "source.netsuite_source.netsuite2.entity_address": [], "source.netsuite_source.netsuite2.item": [], "source.netsuite_source.netsuite2.job": [], "source.netsuite_source.netsuite2.location_main_address": [], "source.netsuite_source.netsuite2.location": [], "source.netsuite_source.netsuite2.subsidiary": [], "source.netsuite_source.netsuite2.transaction_accounting_line": [], "source.netsuite_source.netsuite2.transaction_line": [], "source.netsuite_source.netsuite2.transaction": [], "source.netsuite_source.netsuite2.vendor_category": [], "source.netsuite_source.netsuite2.vendor": [], "source.netsuite_source.netsuite.accounting_books": [], "source.netsuite_source.netsuite.accounting_periods": [], "source.netsuite_source.netsuite.accounts": [], "source.netsuite_source.netsuite.classes": [], "source.netsuite_source.netsuite.consolidated_exchange_rates": [], "source.netsuite_source.netsuite.currencies": [], "source.netsuite_source.netsuite.customers": [], "source.netsuite_source.netsuite.departments": [], "source.netsuite_source.netsuite.expense_accounts": [], "source.netsuite_source.netsuite.income_accounts": [], "source.netsuite_source.netsuite.items": [], "source.netsuite_source.netsuite.locations": [], "source.netsuite_source.netsuite.subsidiaries": [], "source.netsuite_source.netsuite.transaction_lines": [], "source.netsuite_source.netsuite.transactions": [], "source.netsuite_source.netsuite.vendor_types": [], "source.netsuite_source.netsuite.vendors": []}, "child_map": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": [], "seed.netsuite_source_integration_tests.netsuite_vendors_data": [], "seed.netsuite_source_integration_tests.netsuite2_classification_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_source_integration_tests.netsuite2_entities_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_source_integration_tests.netsuite_customers_data": [], "seed.netsuite_source_integration_tests.netsuite_locations_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_data": [], "seed.netsuite_source_integration_tests.netsuite_items_data": [], "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_source_integration_tests.netsuite_classes_data": [], "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_source_integration_tests.netsuite_departments_data": [], "seed.netsuite_source_integration_tests.netsuite2_customer_data": [], "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_department_data": [], "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite_currencies_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_source_integration_tests.netsuite_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_source_integration_tests.netsuite2_job_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_data": [], "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_source_integration_tests.netsuite2_item_data": [], "seed.netsuite_source_integration_tests.netsuite_transactions_data": [], "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4"], "model.netsuite_source.stg_netsuite2__jobs": ["test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c"], "model.netsuite_source.stg_netsuite2__vendors": ["test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d"], "model.netsuite_source.stg_netsuite2__classes": ["test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98"], "model.netsuite_source.stg_netsuite2__account_types": ["test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f"], "model.netsuite_source.stg_netsuite2__entities": ["test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50"], "model.netsuite_source.stg_netsuite2__accounting_periods": ["test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": ["test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348"], "model.netsuite_source.stg_netsuite2__customers": ["test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": ["test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396"], "model.netsuite_source.stg_netsuite2__accounts": ["test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17"], "model.netsuite_source.stg_netsuite2__transaction_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1"], "model.netsuite_source.stg_netsuite2__subsidiaries": ["test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229"], "model.netsuite_source.stg_netsuite2__entity_address": [], "model.netsuite_source.stg_netsuite2__location_main_address": [], "model.netsuite_source.stg_netsuite2__vendor_categories": ["test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6"], "model.netsuite_source.stg_netsuite2__departments": ["test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": ["test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a"], "model.netsuite_source.stg_netsuite2__accounting_books": ["test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230"], "model.netsuite_source.stg_netsuite2__items": ["test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee"], "model.netsuite_source.stg_netsuite2__currencies": ["test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78"], "model.netsuite_source.stg_netsuite2__locations": ["test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149"], "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite_source.stg_netsuite2__transactions_tmp": ["model.netsuite_source.stg_netsuite2__transactions", "model.netsuite_source.stg_netsuite2__transactions"], "model.netsuite_source.stg_netsuite2__entity_address_tmp": ["model.netsuite_source.stg_netsuite2__entity_address", "model.netsuite_source.stg_netsuite2__entity_address"], "model.netsuite_source.stg_netsuite2__account_types_tmp": ["model.netsuite_source.stg_netsuite2__account_types", "model.netsuite_source.stg_netsuite2__account_types"], "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": ["model.netsuite_source.stg_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__accounting_periods"], "model.netsuite_source.stg_netsuite2__jobs_tmp": ["model.netsuite_source.stg_netsuite2__jobs", "model.netsuite_source.stg_netsuite2__jobs"], "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": ["model.netsuite_source.stg_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transaction_lines"], "model.netsuite_source.stg_netsuite2__accounts_tmp": ["model.netsuite_source.stg_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__accounts"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["model.netsuite_source.stg_netsuite2__customers", "model.netsuite_source.stg_netsuite2__customers"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["model.netsuite_source.stg_netsuite2__entities", "model.netsuite_source.stg_netsuite2__entities"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__currencies"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["model.netsuite_source.stg_netsuite2__vendors", "model.netsuite_source.stg_netsuite2__vendors"], "model.netsuite_source.stg_netsuite2__items_tmp": ["model.netsuite_source.stg_netsuite2__items", "model.netsuite_source.stg_netsuite2__items"], "model.netsuite_source.stg_netsuite2__accounting_books_tmp": ["model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__accounting_books"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": ["model.netsuite_source.stg_netsuite2__vendor_categories", "model.netsuite_source.stg_netsuite2__vendor_categories"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "model.netsuite_source.stg_netsuite2__location_main_address_tmp": ["model.netsuite_source.stg_netsuite2__location_main_address", "model.netsuite_source.stg_netsuite2__location_main_address"], "model.netsuite_source.stg_netsuite2__locations_tmp": ["model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__locations"], "model.netsuite_source.stg_netsuite2__departments_tmp": ["model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__departments"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__classes"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__transactions": ["test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79"], "model.netsuite_source.stg_netsuite__customers": ["test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9"], "model.netsuite_source.stg_netsuite__accounting_books": ["test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": ["test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54"], "model.netsuite_source.stg_netsuite__transaction_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c"], "model.netsuite_source.stg_netsuite__income_accounts": ["test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07"], "model.netsuite_source.stg_netsuite__expense_accounts": ["test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff"], "model.netsuite_source.stg_netsuite__vendors": ["test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39"], "model.netsuite_source.stg_netsuite__classes": ["test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b"], "model.netsuite_source.stg_netsuite__subsidiaries": ["test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0"], "model.netsuite_source.stg_netsuite__accounts": ["test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281"], "model.netsuite_source.stg_netsuite__items": ["test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654"], "model.netsuite_source.stg_netsuite__locations": ["test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2"], "model.netsuite_source.stg_netsuite__departments": ["test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1"], "model.netsuite_source.stg_netsuite__currencies": ["test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c"], "model.netsuite_source.stg_netsuite__vendor_types": ["test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69"], "model.netsuite_source.stg_netsuite__accounting_periods": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563"], "model.netsuite_source.stg_netsuite__accounting_periods_tmp": ["model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounting_periods"], "model.netsuite_source.stg_netsuite__accounting_books_tmp": ["model.netsuite_source.stg_netsuite__accounting_books", "model.netsuite_source.stg_netsuite__accounting_books"], "model.netsuite_source.stg_netsuite__customers_tmp": ["model.netsuite_source.stg_netsuite__customers", "model.netsuite_source.stg_netsuite__customers"], "model.netsuite_source.stg_netsuite__transaction_lines_tmp": ["model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transaction_lines"], "model.netsuite_source.stg_netsuite__income_accounts_tmp": ["model.netsuite_source.stg_netsuite__income_accounts", "model.netsuite_source.stg_netsuite__income_accounts"], "model.netsuite_source.stg_netsuite__accounts_tmp": ["model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["model.netsuite_source.stg_netsuite__currencies", "model.netsuite_source.stg_netsuite__currencies"], "model.netsuite_source.stg_netsuite__vendor_types_tmp": ["model.netsuite_source.stg_netsuite__vendor_types", "model.netsuite_source.stg_netsuite__vendor_types"], "model.netsuite_source.stg_netsuite__vendors_tmp": ["model.netsuite_source.stg_netsuite__vendors", "model.netsuite_source.stg_netsuite__vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["model.netsuite_source.stg_netsuite__items", "model.netsuite_source.stg_netsuite__items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__transactions"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__classes_tmp": ["model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["model.netsuite_source.stg_netsuite__expense_accounts", "model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": [], "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": [], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": [], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": [], "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": [], "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": [], "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": [], "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": [], "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": [], "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": [], "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": [], "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": [], "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": [], "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": [], "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": [], "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": [], "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": [], "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": [], "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": [], "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": [], "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": [], "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": [], "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": [], "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": [], "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": [], "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": [], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": [], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": [], "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": [], "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": [], "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": [], "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": [], "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": [], "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": [], "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": [], "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": [], "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": [], "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": [], "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": [], "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": [], "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": [], "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": [], "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": [], "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": [], "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": [], "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": [], "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": [], "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": [], "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": [], "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": [], "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": [], "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": [], "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": [], "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": [], "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": [], "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": [], "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": [], "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": [], "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": [], "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": [], "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": [], "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": [], "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": [], "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": [], "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": [], "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": [], "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": [], "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": [], "source.netsuite_source.netsuite2.account_type": ["model.netsuite_source.stg_netsuite2__account_types_tmp"], "source.netsuite_source.netsuite2.accounting_book_subsidiaries": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"], "source.netsuite_source.netsuite2.accounting_book": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp"], "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"], "source.netsuite_source.netsuite2.accounting_period": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp"], "source.netsuite_source.netsuite2.account": ["model.netsuite_source.stg_netsuite2__accounts_tmp"], "source.netsuite_source.netsuite2.classification": ["model.netsuite_source.stg_netsuite2__classes_tmp"], "source.netsuite_source.netsuite2.consolidated_exchange_rate": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"], "source.netsuite_source.netsuite2.currency": ["model.netsuite_source.stg_netsuite2__currencies_tmp"], "source.netsuite_source.netsuite2.customer": ["model.netsuite_source.stg_netsuite2__customers_tmp"], "source.netsuite_source.netsuite2.department": ["model.netsuite_source.stg_netsuite2__departments_tmp"], "source.netsuite_source.netsuite2.entity": ["model.netsuite_source.stg_netsuite2__entities_tmp"], "source.netsuite_source.netsuite2.entity_address": ["model.netsuite_source.stg_netsuite2__entity_address_tmp"], "source.netsuite_source.netsuite2.item": ["model.netsuite_source.stg_netsuite2__items_tmp"], "source.netsuite_source.netsuite2.job": ["model.netsuite_source.stg_netsuite2__jobs_tmp"], "source.netsuite_source.netsuite2.location_main_address": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp"], "source.netsuite_source.netsuite2.location": ["model.netsuite_source.stg_netsuite2__locations_tmp"], "source.netsuite_source.netsuite2.subsidiary": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp"], "source.netsuite_source.netsuite2.transaction_accounting_line": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"], "source.netsuite_source.netsuite2.transaction_line": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp"], "source.netsuite_source.netsuite2.transaction": ["model.netsuite_source.stg_netsuite2__transactions_tmp"], "source.netsuite_source.netsuite2.vendor_category": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp"], "source.netsuite_source.netsuite2.vendor": ["model.netsuite_source.stg_netsuite2__vendors_tmp"], "source.netsuite_source.netsuite.accounting_books": ["model.netsuite_source.stg_netsuite__accounting_books_tmp"], "source.netsuite_source.netsuite.accounting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp"], "source.netsuite_source.netsuite.accounts": ["model.netsuite_source.stg_netsuite__accounts_tmp"], "source.netsuite_source.netsuite.classes": ["model.netsuite_source.stg_netsuite__classes_tmp"], "source.netsuite_source.netsuite.consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"], "source.netsuite_source.netsuite.currencies": ["model.netsuite_source.stg_netsuite__currencies_tmp"], "source.netsuite_source.netsuite.customers": ["model.netsuite_source.stg_netsuite__customers_tmp"], "source.netsuite_source.netsuite.departments": ["model.netsuite_source.stg_netsuite__departments_tmp"], "source.netsuite_source.netsuite.expense_accounts": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp"], "source.netsuite_source.netsuite.income_accounts": ["model.netsuite_source.stg_netsuite__income_accounts_tmp"], "source.netsuite_source.netsuite.items": ["model.netsuite_source.stg_netsuite__items_tmp"], "source.netsuite_source.netsuite.locations": ["model.netsuite_source.stg_netsuite__locations_tmp"], "source.netsuite_source.netsuite.subsidiaries": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp"], "source.netsuite_source.netsuite.transaction_lines": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp"], "source.netsuite_source.netsuite.transactions": ["model.netsuite_source.stg_netsuite__transactions_tmp"], "source.netsuite_source.netsuite.vendor_types": ["model.netsuite_source.stg_netsuite__vendor_types_tmp"], "source.netsuite_source.netsuite.vendors": ["model.netsuite_source.stg_netsuite__vendors_tmp"]}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 14e4662..041d541 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.0.4", "generated_at": "2022-07-26T22:56:16.127968Z", "invocation_id": "50807ff8-9fa8-41d4-91a0-2cb3e52fde86", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.267045Z", "completed_at": "2022-07-26T22:56:12.272871Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.277460Z", "completed_at": "2022-07-26T22:56:12.277470Z"}], "thread_id": "Thread-1", "execution_time": 0.017271041870117188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.273223Z", "completed_at": "2022-07-26T22:56:12.284546Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.285610Z", "completed_at": "2022-07-26T22:56:12.285617Z"}], "thread_id": "Thread-2", "execution_time": 0.014282941818237305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.273441Z", "completed_at": "2022-07-26T22:56:12.284647Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.285760Z", "completed_at": "2022-07-26T22:56:12.285771Z"}], "thread_id": "Thread-3", "execution_time": 0.014236927032470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.273538Z", "completed_at": "2022-07-26T22:56:12.285060Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.286059Z", "completed_at": "2022-07-26T22:56:12.286064Z"}], "thread_id": "Thread-4", "execution_time": 0.017232894897460938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.285936Z", "completed_at": "2022-07-26T22:56:12.290945Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.291794Z", "completed_at": "2022-07-26T22:56:12.291801Z"}], "thread_id": "Thread-1", "execution_time": 0.009989261627197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.291712Z", "completed_at": "2022-07-26T22:56:12.300434Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.301125Z", "completed_at": "2022-07-26T22:56:12.301130Z"}], "thread_id": "Thread-2", "execution_time": 0.013988018035888672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.291879Z", "completed_at": "2022-07-26T22:56:12.300514Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.301213Z", "completed_at": "2022-07-26T22:56:12.301217Z"}], "thread_id": "Thread-3", "execution_time": 0.013921022415161133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.291954Z", "completed_at": "2022-07-26T22:56:12.300680Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.304599Z", "completed_at": "2022-07-26T22:56:12.304604Z"}], "thread_id": "Thread-4", "execution_time": 0.013928890228271484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.300950Z", "completed_at": "2022-07-26T22:56:12.305503Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.306670Z", "completed_at": "2022-07-26T22:56:12.306674Z"}], "thread_id": "Thread-1", "execution_time": 0.006797075271606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.306902Z", "completed_at": "2022-07-26T22:56:12.315984Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.316761Z", "completed_at": "2022-07-26T22:56:12.316768Z"}], "thread_id": "Thread-2", "execution_time": 0.013803958892822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.307140Z", "completed_at": "2022-07-26T22:56:12.316208Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.319624Z", "completed_at": "2022-07-26T22:56:12.319629Z"}], "thread_id": "Thread-3", "execution_time": 0.0138397216796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.307220Z", "completed_at": "2022-07-26T22:56:12.316483Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.319942Z", "completed_at": "2022-07-26T22:56:12.319946Z"}], "thread_id": "Thread-4", "execution_time": 0.014155149459838867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.316410Z", "completed_at": "2022-07-26T22:56:12.320403Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.321530Z", "completed_at": "2022-07-26T22:56:12.321535Z"}], "thread_id": "Thread-1", "execution_time": 0.006285190582275391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.321837Z", "completed_at": "2022-07-26T22:56:12.330491Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.331011Z", "completed_at": "2022-07-26T22:56:12.331016Z"}], "thread_id": "Thread-2", "execution_time": 0.01247715950012207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.322150Z", "completed_at": "2022-07-26T22:56:12.330773Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.333446Z", "completed_at": "2022-07-26T22:56:12.333450Z"}], "thread_id": "Thread-3", "execution_time": 0.01266789436340332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.324839Z", "completed_at": "2022-07-26T22:56:12.330938Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.333554Z", "completed_at": "2022-07-26T22:56:12.333557Z"}], "thread_id": "Thread-4", "execution_time": 0.012493133544921875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.330873Z", "completed_at": "2022-07-26T22:56:12.333841Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.334869Z", "completed_at": "2022-07-26T22:56:12.334872Z"}], "thread_id": "Thread-1", "execution_time": 0.007249116897583008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.335177Z", "completed_at": "2022-07-26T22:56:12.342016Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.342557Z", "completed_at": "2022-07-26T22:56:12.342562Z"}], "thread_id": "Thread-2", "execution_time": 0.010589838027954102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.337854Z", "completed_at": "2022-07-26T22:56:12.342431Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.344904Z", "completed_at": "2022-07-26T22:56:12.344907Z"}], "thread_id": "Thread-4", "execution_time": 0.010316133499145508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.337784Z", "completed_at": "2022-07-26T22:56:12.342496Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.344992Z", "completed_at": "2022-07-26T22:56:12.344995Z"}], "thread_id": "Thread-3", "execution_time": 0.010576963424682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.342367Z", "completed_at": "2022-07-26T22:56:12.345158Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.346199Z", "completed_at": "2022-07-26T22:56:12.346203Z"}], "thread_id": "Thread-1", "execution_time": 0.008701801300048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.346535Z", "completed_at": "2022-07-26T22:56:12.354160Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.354609Z", "completed_at": "2022-07-26T22:56:12.354614Z"}], "thread_id": "Thread-2", "execution_time": 0.011209964752197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.349901Z", "completed_at": "2022-07-26T22:56:12.354668Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.357287Z", "completed_at": "2022-07-26T22:56:12.357291Z"}], "thread_id": "Thread-3", "execution_time": 0.011259317398071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.349828Z", "completed_at": "2022-07-26T22:56:12.354718Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.357415Z", "completed_at": "2022-07-26T22:56:12.357418Z"}], "thread_id": "Thread-4", "execution_time": 0.011578083038330078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.354521Z", "completed_at": "2022-07-26T22:56:12.357349Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.358163Z", "completed_at": "2022-07-26T22:56:12.358166Z"}], "thread_id": "Thread-1", "execution_time": 0.008638858795166016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.358308Z", "completed_at": "2022-07-26T22:56:12.361496Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.366351Z", "completed_at": "2022-07-26T22:56:12.366357Z"}], "thread_id": "Thread-2", "execution_time": 0.01101994514465332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.361209Z", "completed_at": "2022-07-26T22:56:12.366431Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.369026Z", "completed_at": "2022-07-26T22:56:12.369031Z"}], "thread_id": "Thread-3", "execution_time": 0.010960102081298828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.361445Z", "completed_at": "2022-07-26T22:56:12.368366Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.369096Z", "completed_at": "2022-07-26T22:56:12.369100Z"}], "thread_id": "Thread-4", "execution_time": 0.01081085205078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.366226Z", "completed_at": "2022-07-26T22:56:12.368929Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.369697Z", "completed_at": "2022-07-26T22:56:12.369700Z"}], "thread_id": "Thread-1", "execution_time": 0.008887052536010742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.370058Z", "completed_at": "2022-07-26T22:56:12.376882Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.379355Z", "completed_at": "2022-07-26T22:56:12.379360Z"}], "thread_id": "Thread-2", "execution_time": 0.010552167892456055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.372835Z", "completed_at": "2022-07-26T22:56:12.379179Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.379807Z", "completed_at": "2022-07-26T22:56:12.379811Z"}], "thread_id": "Thread-3", "execution_time": 0.010023117065429688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.372902Z", "completed_at": "2022-07-26T22:56:12.379241Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.379877Z", "completed_at": "2022-07-26T22:56:12.379880Z"}], "thread_id": "Thread-4", "execution_time": 0.010029077529907227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.376794Z", "completed_at": "2022-07-26T22:56:12.379573Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.380508Z", "completed_at": "2022-07-26T22:56:12.380512Z"}], "thread_id": "Thread-1", "execution_time": 0.008466005325317383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.381739Z", "completed_at": "2022-07-26T22:56:12.412072Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.414955Z", "completed_at": "2022-07-26T22:56:12.414963Z"}], "thread_id": "Thread-2", "execution_time": 0.03479409217834473, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.384705Z", "completed_at": "2022-07-26T22:56:12.414774Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.415482Z", "completed_at": "2022-07-26T22:56:12.415486Z"}], "thread_id": "Thread-3", "execution_time": 0.03466534614562988, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.384779Z", "completed_at": "2022-07-26T22:56:12.414831Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.415653Z", "completed_at": "2022-07-26T22:56:12.415657Z"}], "thread_id": "Thread-4", "execution_time": 0.034764766693115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.411208Z", "completed_at": "2022-07-26T22:56:12.415125Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.416101Z", "completed_at": "2022-07-26T22:56:12.416104Z"}], "thread_id": "Thread-1", "execution_time": 0.034737348556518555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.417437Z", "completed_at": "2022-07-26T22:56:12.424243Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.426440Z", "completed_at": "2022-07-26T22:56:12.426446Z"}], "thread_id": "Thread-2", "execution_time": 0.010470867156982422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.419860Z", "completed_at": "2022-07-26T22:56:12.426289Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.426944Z", "completed_at": "2022-07-26T22:56:12.426947Z"}], "thread_id": "Thread-3", "execution_time": 0.010438203811645508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.422287Z", "completed_at": "2022-07-26T22:56:12.426362Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.427012Z", "completed_at": "2022-07-26T22:56:12.427014Z"}], "thread_id": "Thread-1", "execution_time": 0.009951114654541016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.420028Z", "completed_at": "2022-07-26T22:56:12.426506Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.427263Z", "completed_at": "2022-07-26T22:56:12.427266Z"}], "thread_id": "Thread-4", "execution_time": 0.010544061660766602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.428615Z", "completed_at": "2022-07-26T22:56:12.430117Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.433010Z", "completed_at": "2022-07-26T22:56:12.433015Z"}], "thread_id": "Thread-2", "execution_time": 0.0057528018951416016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.429945Z", "completed_at": "2022-07-26T22:56:12.432859Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.433497Z", "completed_at": "2022-07-26T22:56:12.433500Z"}], "thread_id": "Thread-3", "execution_time": 0.005512237548828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.430014Z", "completed_at": "2022-07-26T22:56:12.432938Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.433561Z", "completed_at": "2022-07-26T22:56:12.433564Z"}], "thread_id": "Thread-1", "execution_time": 0.0055119991302490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.430180Z", "completed_at": "2022-07-26T22:56:12.433081Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.433753Z", "completed_at": "2022-07-26T22:56:12.433756Z"}], "thread_id": "Thread-4", "execution_time": 0.005555868148803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.435034Z", "completed_at": "2022-07-26T22:56:12.436444Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.440134Z", "completed_at": "2022-07-26T22:56:12.440138Z"}], "thread_id": "Thread-2", "execution_time": 0.006385087966918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.436308Z", "completed_at": "2022-07-26T22:56:12.439992Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.440622Z", "completed_at": "2022-07-26T22:56:12.440625Z"}], "thread_id": "Thread-3", "execution_time": 0.006192207336425781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.436375Z", "completed_at": "2022-07-26T22:56:12.440065Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.440688Z", "completed_at": "2022-07-26T22:56:12.440691Z"}], "thread_id": "Thread-1", "execution_time": 0.0061969757080078125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.436517Z", "completed_at": "2022-07-26T22:56:12.440200Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.440877Z", "completed_at": "2022-07-26T22:56:12.440879Z"}], "thread_id": "Thread-4", "execution_time": 0.0062389373779296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.442049Z", "completed_at": "2022-07-26T22:56:12.443358Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.446091Z", "completed_at": "2022-07-26T22:56:12.446096Z"}], "thread_id": "Thread-2", "execution_time": 0.005228757858276367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.443236Z", "completed_at": "2022-07-26T22:56:12.445943Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.446556Z", "completed_at": "2022-07-26T22:56:12.446559Z"}], "thread_id": "Thread-3", "execution_time": 0.005157947540283203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.443299Z", "completed_at": "2022-07-26T22:56:12.446027Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.446621Z", "completed_at": "2022-07-26T22:56:12.446623Z"}], "thread_id": "Thread-1", "execution_time": 0.005116939544677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.443418Z", "completed_at": "2022-07-26T22:56:12.446157Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.446761Z", "completed_at": "2022-07-26T22:56:12.446763Z"}], "thread_id": "Thread-4", "execution_time": 0.005163669586181641, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.447993Z", "completed_at": "2022-07-26T22:56:12.449311Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.452719Z", "completed_at": "2022-07-26T22:56:12.452723Z"}], "thread_id": "Thread-2", "execution_time": 0.005923032760620117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.449188Z", "completed_at": "2022-07-26T22:56:12.452576Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.453226Z", "completed_at": "2022-07-26T22:56:12.453228Z"}], "thread_id": "Thread-3", "execution_time": 0.005869150161743164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.449251Z", "completed_at": "2022-07-26T22:56:12.452653Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.453296Z", "completed_at": "2022-07-26T22:56:12.453298Z"}], "thread_id": "Thread-1", "execution_time": 0.005827665328979492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.449374Z", "completed_at": "2022-07-26T22:56:12.452784Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.453432Z", "completed_at": "2022-07-26T22:56:12.453434Z"}], "thread_id": "Thread-4", "execution_time": 0.005880117416381836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.454636Z", "completed_at": "2022-07-26T22:56:12.456035Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.458724Z", "completed_at": "2022-07-26T22:56:12.458728Z"}], "thread_id": "Thread-2", "execution_time": 0.005259990692138672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.455904Z", "completed_at": "2022-07-26T22:56:12.458598Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.459189Z", "completed_at": "2022-07-26T22:56:12.459192Z"}], "thread_id": "Thread-3", "execution_time": 0.0051991939544677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.455974Z", "completed_at": "2022-07-26T22:56:12.458663Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.459254Z", "completed_at": "2022-07-26T22:56:12.459257Z"}], "thread_id": "Thread-1", "execution_time": 0.0051572322845458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.456125Z", "completed_at": "2022-07-26T22:56:12.458787Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.459395Z", "completed_at": "2022-07-26T22:56:12.459397Z"}], "thread_id": "Thread-4", "execution_time": 0.005215167999267578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.460658Z", "completed_at": "2022-07-26T22:56:12.463234Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.466096Z", "completed_at": "2022-07-26T22:56:12.466101Z"}], "thread_id": "Thread-2", "execution_time": 0.006700038909912109, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.463080Z", "completed_at": "2022-07-26T22:56:12.465945Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.466637Z", "completed_at": "2022-07-26T22:56:12.466639Z"}], "thread_id": "Thread-3", "execution_time": 0.006682872772216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.463164Z", "completed_at": "2022-07-26T22:56:12.466028Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.466700Z", "completed_at": "2022-07-26T22:56:12.466702Z"}], "thread_id": "Thread-1", "execution_time": 0.006615161895751953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.463300Z", "completed_at": "2022-07-26T22:56:12.466168Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.466840Z", "completed_at": "2022-07-26T22:56:12.466842Z"}], "thread_id": "Thread-4", "execution_time": 0.006601095199584961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.468114Z", "completed_at": "2022-07-26T22:56:12.469582Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.473229Z", "completed_at": "2022-07-26T22:56:12.473234Z"}], "thread_id": "Thread-2", "execution_time": 0.006326913833618164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.469455Z", "completed_at": "2022-07-26T22:56:12.473101Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.473685Z", "completed_at": "2022-07-26T22:56:12.473688Z"}], "thread_id": "Thread-3", "execution_time": 0.006192207336425781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.469520Z", "completed_at": "2022-07-26T22:56:12.473167Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.473748Z", "completed_at": "2022-07-26T22:56:12.473751Z"}], "thread_id": "Thread-1", "execution_time": 0.006175041198730469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.469655Z", "completed_at": "2022-07-26T22:56:12.473293Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.473884Z", "completed_at": "2022-07-26T22:56:12.473886Z"}], "thread_id": "Thread-4", "execution_time": 0.006218910217285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.475072Z", "completed_at": "2022-07-26T22:56:12.476413Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.479202Z", "completed_at": "2022-07-26T22:56:12.479205Z"}], "thread_id": "Thread-2", "execution_time": 0.0052721500396728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.476269Z", "completed_at": "2022-07-26T22:56:12.479065Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.479667Z", "completed_at": "2022-07-26T22:56:12.479670Z"}], "thread_id": "Thread-3", "execution_time": 0.005213022232055664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.476333Z", "completed_at": "2022-07-26T22:56:12.479142Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.479730Z", "completed_at": "2022-07-26T22:56:12.479732Z"}], "thread_id": "Thread-1", "execution_time": 0.0051898956298828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.476501Z", "completed_at": "2022-07-26T22:56:12.479265Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.479864Z", "completed_at": "2022-07-26T22:56:12.479867Z"}], "thread_id": "Thread-4", "execution_time": 0.005240201950073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.481040Z", "completed_at": "2022-07-26T22:56:12.482349Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.485904Z", "completed_at": "2022-07-26T22:56:12.485908Z"}], "thread_id": "Thread-2", "execution_time": 0.006014108657836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.482230Z", "completed_at": "2022-07-26T22:56:12.485765Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.486390Z", "completed_at": "2022-07-26T22:56:12.486392Z"}], "thread_id": "Thread-3", "execution_time": 0.005980014801025391, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.482290Z", "completed_at": "2022-07-26T22:56:12.485838Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.486457Z", "completed_at": "2022-07-26T22:56:12.486459Z"}], "thread_id": "Thread-1", "execution_time": 0.005959033966064453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.482428Z", "completed_at": "2022-07-26T22:56:12.485970Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.486594Z", "completed_at": "2022-07-26T22:56:12.486596Z"}], "thread_id": "Thread-4", "execution_time": 0.006029844284057617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.487829Z", "completed_at": "2022-07-26T22:56:12.489318Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.498335Z", "completed_at": "2022-07-26T22:56:12.498341Z"}], "thread_id": "Thread-2", "execution_time": 0.011741161346435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.489191Z", "completed_at": "2022-07-26T22:56:12.498182Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.498867Z", "completed_at": "2022-07-26T22:56:12.498870Z"}], "thread_id": "Thread-3", "execution_time": 0.011734962463378906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.489254Z", "completed_at": "2022-07-26T22:56:12.498263Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.498936Z", "completed_at": "2022-07-26T22:56:12.498939Z"}], "thread_id": "Thread-1", "execution_time": 0.011719226837158203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.500272Z", "completed_at": "2022-07-26T22:56:12.787752Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.789468Z", "completed_at": "2022-07-26T22:56:12.789472Z"}], "thread_id": "Thread-2", "execution_time": 0.3153867721557617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.489387Z", "completed_at": "2022-07-26T22:56:12.787181Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.788980Z", "completed_at": "2022-07-26T22:56:12.788988Z"}], "thread_id": "Thread-4", "execution_time": 0.3271477222442627, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.504141Z", "completed_at": "2022-07-26T22:56:12.790337Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.790495Z", "completed_at": "2022-07-26T22:56:12.790498Z"}], "thread_id": "Thread-3", "execution_time": 0.3201937675476074, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.504246Z", "completed_at": "2022-07-26T22:56:12.830735Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:12.834998Z", "completed_at": "2022-07-26T22:56:12.835007Z"}], "thread_id": "Thread-1", "execution_time": 0.3627967834472656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.820905Z", "completed_at": "2022-07-26T22:56:13.080803Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.080976Z", "completed_at": "2022-07-26T22:56:13.080983Z"}], "thread_id": "Thread-2", "execution_time": 0.30061793327331543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.822014Z", "completed_at": "2022-07-26T22:56:13.122418Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.125092Z", "completed_at": "2022-07-26T22:56:13.125100Z"}], "thread_id": "Thread-4", "execution_time": 0.33643531799316406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.863559Z", "completed_at": "2022-07-26T22:56:13.135111Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.135337Z", "completed_at": "2022-07-26T22:56:13.135342Z"}], "thread_id": "Thread-1", "execution_time": 0.3223271369934082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:12.830970Z", "completed_at": "2022-07-26T22:56:13.133798Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.134794Z", "completed_at": "2022-07-26T22:56:13.134801Z"}], "thread_id": "Thread-3", "execution_time": 0.35972094535827637, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.125858Z", "completed_at": "2022-07-26T22:56:13.409132Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.409311Z", "completed_at": "2022-07-26T22:56:13.409318Z"}], "thread_id": "Thread-2", "execution_time": 0.3093118667602539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.186887Z", "completed_at": "2022-07-26T22:56:13.489803Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.490140Z", "completed_at": "2022-07-26T22:56:13.490147Z"}], "thread_id": "Thread-1", "execution_time": 0.33374619483947754, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.152798Z", "completed_at": "2022-07-26T22:56:13.506302Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.506610Z", "completed_at": "2022-07-26T22:56:13.506612Z"}], "thread_id": "Thread-4", "execution_time": 0.38207292556762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.187003Z", "completed_at": "2022-07-26T22:56:13.506208Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.506536Z", "completed_at": "2022-07-26T22:56:13.506541Z"}], "thread_id": "Thread-3", "execution_time": 0.3483250141143799, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.434762Z", "completed_at": "2022-07-26T22:56:13.699427Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.699728Z", "completed_at": "2022-07-26T22:56:13.699736Z"}], "thread_id": "Thread-2", "execution_time": 0.29064011573791504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.536070Z", "completed_at": "2022-07-26T22:56:13.978505Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:13.978664Z", "completed_at": "2022-07-26T22:56:13.978669Z"}], "thread_id": "Thread-3", "execution_time": 0.46999692916870117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.535963Z", "completed_at": "2022-07-26T22:56:14.002299Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.002481Z", "completed_at": "2022-07-26T22:56:14.002485Z"}], "thread_id": "Thread-4", "execution_time": 0.49664807319641113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.520590Z", "completed_at": "2022-07-26T22:56:14.002623Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.002758Z", "completed_at": "2022-07-26T22:56:14.002761Z"}], "thread_id": "Thread-1", "execution_time": 0.5120909214019775, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:13.725907Z", "completed_at": "2022-07-26T22:56:14.048352Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.048516Z", "completed_at": "2022-07-26T22:56:14.048522Z"}], "thread_id": "Thread-2", "execution_time": 0.34763193130493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.006036Z", "completed_at": "2022-07-26T22:56:14.296393Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.296650Z", "completed_at": "2022-07-26T22:56:14.296660Z"}], "thread_id": "Thread-3", "execution_time": 0.321727991104126, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.073640Z", "completed_at": "2022-07-26T22:56:14.378233Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.378417Z", "completed_at": "2022-07-26T22:56:14.378423Z"}], "thread_id": "Thread-2", "execution_time": 0.33043408393859863, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.037153Z", "completed_at": "2022-07-26T22:56:14.378829Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.382435Z", "completed_at": "2022-07-26T22:56:14.382438Z"}], "thread_id": "Thread-1", "execution_time": 0.37636303901672363, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.033044Z", "completed_at": "2022-07-26T22:56:14.385863Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.385989Z", "completed_at": "2022-07-26T22:56:14.385992Z"}], "thread_id": "Thread-4", "execution_time": 0.38196301460266113, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.364926Z", "completed_at": "2022-07-26T22:56:14.650558Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.650713Z", "completed_at": "2022-07-26T22:56:14.650719Z"}], "thread_id": "Thread-3", "execution_time": 0.3880038261413574, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.404215Z", "completed_at": "2022-07-26T22:56:14.735144Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.735323Z", "completed_at": "2022-07-26T22:56:14.735329Z"}], "thread_id": "Thread-2", "execution_time": 0.357349157333374, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.409842Z", "completed_at": "2022-07-26T22:56:14.748204Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.748337Z", "completed_at": "2022-07-26T22:56:14.748340Z"}], "thread_id": "Thread-1", "execution_time": 0.3846752643585205, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.415012Z", "completed_at": "2022-07-26T22:56:14.740102Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:14.740515Z", "completed_at": "2022-07-26T22:56:14.740518Z"}], "thread_id": "Thread-4", "execution_time": 0.37975502014160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.723602Z", "completed_at": "2022-07-26T22:56:15.010773Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.010994Z", "completed_at": "2022-07-26T22:56:15.011002Z"}], "thread_id": "Thread-3", "execution_time": 0.3166773319244385, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.761847Z", "completed_at": "2022-07-26T22:56:15.081162Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.081729Z", "completed_at": "2022-07-26T22:56:15.081737Z"}], "thread_id": "Thread-2", "execution_time": 0.3461477756500244, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.795272Z", "completed_at": "2022-07-26T22:56:15.087155Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.087430Z", "completed_at": "2022-07-26T22:56:15.087435Z"}], "thread_id": "Thread-1", "execution_time": 0.3205850124359131, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:14.795339Z", "completed_at": "2022-07-26T22:56:15.086546Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.086913Z", "completed_at": "2022-07-26T22:56:15.086919Z"}], "thread_id": "Thread-4", "execution_time": 0.32091307640075684, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.040512Z", "completed_at": "2022-07-26T22:56:15.314946Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.315112Z", "completed_at": "2022-07-26T22:56:15.315118Z"}], "thread_id": "Thread-3", "execution_time": 0.3026721477508545, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.108537Z", "completed_at": "2022-07-26T22:56:15.395178Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.395445Z", "completed_at": "2022-07-26T22:56:15.395453Z"}], "thread_id": "Thread-2", "execution_time": 0.3139619827270508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.123457Z", "completed_at": "2022-07-26T22:56:15.399681Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.399874Z", "completed_at": "2022-07-26T22:56:15.399878Z"}], "thread_id": "Thread-4", "execution_time": 0.312244176864624, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.117297Z", "completed_at": "2022-07-26T22:56:15.399154Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.399386Z", "completed_at": "2022-07-26T22:56:15.399391Z"}], "thread_id": "Thread-1", "execution_time": 0.3134760856628418, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.343385Z", "completed_at": "2022-07-26T22:56:15.676447Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.676632Z", "completed_at": "2022-07-26T22:56:15.676638Z"}], "thread_id": "Thread-3", "execution_time": 0.3738548755645752, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.422814Z", "completed_at": "2022-07-26T22:56:15.735986Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.736147Z", "completed_at": "2022-07-26T22:56:15.736153Z"}], "thread_id": "Thread-2", "execution_time": 0.342754602432251, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.430859Z", "completed_at": "2022-07-26T22:56:15.742093Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.742234Z", "completed_at": "2022-07-26T22:56:15.742237Z"}], "thread_id": "Thread-4", "execution_time": 0.3351149559020996, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.430952Z", "completed_at": "2022-07-26T22:56:15.741185Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.741792Z", "completed_at": "2022-07-26T22:56:15.741797Z"}], "thread_id": "Thread-1", "execution_time": 0.34308934211730957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.774019Z", "completed_at": "2022-07-26T22:56:15.780165Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.780331Z", "completed_at": "2022-07-26T22:56:15.780337Z"}], "thread_id": "Thread-1", "execution_time": 0.006659984588623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.780940Z", "completed_at": "2022-07-26T22:56:15.784623Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.784776Z", "completed_at": "2022-07-26T22:56:15.784782Z"}], "thread_id": "Thread-1", "execution_time": 0.004238128662109375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.785343Z", "completed_at": "2022-07-26T22:56:15.787757Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.787908Z", "completed_at": "2022-07-26T22:56:15.787914Z"}], "thread_id": "Thread-1", "execution_time": 0.0029020309448242188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.788450Z", "completed_at": "2022-07-26T22:56:15.790943Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.791091Z", "completed_at": "2022-07-26T22:56:15.791096Z"}], "thread_id": "Thread-1", "execution_time": 0.0029599666595458984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.791664Z", "completed_at": "2022-07-26T22:56:15.793923Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.794060Z", "completed_at": "2022-07-26T22:56:15.794064Z"}], "thread_id": "Thread-1", "execution_time": 0.002721071243286133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.794578Z", "completed_at": "2022-07-26T22:56:15.797734Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.797882Z", "completed_at": "2022-07-26T22:56:15.797886Z"}], "thread_id": "Thread-1", "execution_time": 0.0036199092864990234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.798534Z", "completed_at": "2022-07-26T22:56:15.801208Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.801354Z", "completed_at": "2022-07-26T22:56:15.801360Z"}], "thread_id": "Thread-1", "execution_time": 0.0032291412353515625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.802021Z", "completed_at": "2022-07-26T22:56:15.804470Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.804640Z", "completed_at": "2022-07-26T22:56:15.804646Z"}], "thread_id": "Thread-1", "execution_time": 0.003129720687866211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.805367Z", "completed_at": "2022-07-26T22:56:15.807655Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.807794Z", "completed_at": "2022-07-26T22:56:15.807798Z"}], "thread_id": "Thread-1", "execution_time": 0.002789020538330078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.808439Z", "completed_at": "2022-07-26T22:56:15.811011Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.811161Z", "completed_at": "2022-07-26T22:56:15.811167Z"}], "thread_id": "Thread-1", "execution_time": 0.0031359195709228516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.811695Z", "completed_at": "2022-07-26T22:56:15.814120Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.814257Z", "completed_at": "2022-07-26T22:56:15.814261Z"}], "thread_id": "Thread-1", "execution_time": 0.0028662681579589844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.814893Z", "completed_at": "2022-07-26T22:56:15.817422Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.817602Z", "completed_at": "2022-07-26T22:56:15.817608Z"}], "thread_id": "Thread-1", "execution_time": 0.0031249523162841797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.818173Z", "completed_at": "2022-07-26T22:56:15.821662Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.821810Z", "completed_at": "2022-07-26T22:56:15.821816Z"}], "thread_id": "Thread-1", "execution_time": 0.003959178924560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.822386Z", "completed_at": "2022-07-26T22:56:15.824911Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.825049Z", "completed_at": "2022-07-26T22:56:15.825054Z"}], "thread_id": "Thread-1", "execution_time": 0.003020048141479492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.825581Z", "completed_at": "2022-07-26T22:56:15.827925Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.828060Z", "completed_at": "2022-07-26T22:56:15.828064Z"}], "thread_id": "Thread-1", "execution_time": 0.0027909278869628906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.828575Z", "completed_at": "2022-07-26T22:56:15.831070Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.831218Z", "completed_at": "2022-07-26T22:56:15.831223Z"}], "thread_id": "Thread-1", "execution_time": 0.0029761791229248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.831767Z", "completed_at": "2022-07-26T22:56:15.834148Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.834307Z", "completed_at": "2022-07-26T22:56:15.834312Z"}], "thread_id": "Thread-1", "execution_time": 0.0028612613677978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.834827Z", "completed_at": "2022-07-26T22:56:15.837155Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.837298Z", "completed_at": "2022-07-26T22:56:15.837302Z"}], "thread_id": "Thread-1", "execution_time": 0.0027878284454345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.837850Z", "completed_at": "2022-07-26T22:56:15.841158Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.841305Z", "completed_at": "2022-07-26T22:56:15.841310Z"}], "thread_id": "Thread-1", "execution_time": 0.003860950469970703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.841836Z", "completed_at": "2022-07-26T22:56:15.844247Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.844393Z", "completed_at": "2022-07-26T22:56:15.844400Z"}], "thread_id": "Thread-1", "execution_time": 0.002888202667236328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.845868Z", "completed_at": "2022-07-26T22:56:15.848660Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.848822Z", "completed_at": "2022-07-26T22:56:15.848829Z"}], "thread_id": "Thread-1", "execution_time": 0.003915071487426758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.849571Z", "completed_at": "2022-07-26T22:56:15.852161Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.852329Z", "completed_at": "2022-07-26T22:56:15.852335Z"}], "thread_id": "Thread-1", "execution_time": 0.003100156784057617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.853277Z", "completed_at": "2022-07-26T22:56:15.856606Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.856964Z", "completed_at": "2022-07-26T22:56:15.856973Z"}], "thread_id": "Thread-1", "execution_time": 0.004289865493774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.857797Z", "completed_at": "2022-07-26T22:56:15.860812Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.860990Z", "completed_at": "2022-07-26T22:56:15.860996Z"}], "thread_id": "Thread-1", "execution_time": 0.003651142120361328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.861765Z", "completed_at": "2022-07-26T22:56:15.865377Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.865697Z", "completed_at": "2022-07-26T22:56:15.865703Z"}], "thread_id": "Thread-1", "execution_time": 0.004415988922119141, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.866374Z", "completed_at": "2022-07-26T22:56:15.905299Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.905453Z", "completed_at": "2022-07-26T22:56:15.905460Z"}], "thread_id": "Thread-1", "execution_time": 0.039520978927612305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.905970Z", "completed_at": "2022-07-26T22:56:15.908496Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.908644Z", "completed_at": "2022-07-26T22:56:15.908650Z"}], "thread_id": "Thread-1", "execution_time": 0.0029990673065185547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.909197Z", "completed_at": "2022-07-26T22:56:15.911696Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.911860Z", "completed_at": "2022-07-26T22:56:15.911865Z"}], "thread_id": "Thread-1", "execution_time": 0.0030050277709960938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.912436Z", "completed_at": "2022-07-26T22:56:15.914888Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.915050Z", "completed_at": "2022-07-26T22:56:15.915054Z"}], "thread_id": "Thread-1", "execution_time": 0.002949237823486328, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.915583Z", "completed_at": "2022-07-26T22:56:15.918197Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.918352Z", "completed_at": "2022-07-26T22:56:15.918357Z"}], "thread_id": "Thread-1", "execution_time": 0.003107786178588867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.919072Z", "completed_at": "2022-07-26T22:56:15.921743Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.921897Z", "completed_at": "2022-07-26T22:56:15.921902Z"}], "thread_id": "Thread-1", "execution_time": 0.0032739639282226562, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.922440Z", "completed_at": "2022-07-26T22:56:15.926124Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.926280Z", "completed_at": "2022-07-26T22:56:15.926286Z"}], "thread_id": "Thread-1", "execution_time": 0.004180431365966797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.927044Z", "completed_at": "2022-07-26T22:56:15.929630Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.929835Z", "completed_at": "2022-07-26T22:56:15.929841Z"}], "thread_id": "Thread-1", "execution_time": 0.0032732486724853516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.930455Z", "completed_at": "2022-07-26T22:56:15.933000Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.933167Z", "completed_at": "2022-07-26T22:56:15.933173Z"}], "thread_id": "Thread-1", "execution_time": 0.003091096878051758, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.933943Z", "completed_at": "2022-07-26T22:56:15.939626Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.939806Z", "completed_at": "2022-07-26T22:56:15.939813Z"}], "thread_id": "Thread-1", "execution_time": 0.006415843963623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.940437Z", "completed_at": "2022-07-26T22:56:15.943297Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.943452Z", "completed_at": "2022-07-26T22:56:15.943459Z"}], "thread_id": "Thread-1", "execution_time": 0.0033838748931884766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.944029Z", "completed_at": "2022-07-26T22:56:15.946510Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.946649Z", "completed_at": "2022-07-26T22:56:15.946653Z"}], "thread_id": "Thread-1", "execution_time": 0.0029430389404296875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.947151Z", "completed_at": "2022-07-26T22:56:15.951247Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.951405Z", "completed_at": "2022-07-26T22:56:15.951412Z"}], "thread_id": "Thread-1", "execution_time": 0.0045888423919677734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.952001Z", "completed_at": "2022-07-26T22:56:15.954567Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.954714Z", "completed_at": "2022-07-26T22:56:15.954719Z"}], "thread_id": "Thread-1", "execution_time": 0.0030341148376464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.955223Z", "completed_at": "2022-07-26T22:56:15.957560Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.957706Z", "completed_at": "2022-07-26T22:56:15.957711Z"}], "thread_id": "Thread-1", "execution_time": 0.002803325653076172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.958214Z", "completed_at": "2022-07-26T22:56:15.960235Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.960365Z", "completed_at": "2022-07-26T22:56:15.960369Z"}], "thread_id": "Thread-1", "execution_time": 0.0024466514587402344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.960829Z", "completed_at": "2022-07-26T22:56:15.962861Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.962988Z", "completed_at": "2022-07-26T22:56:15.962992Z"}], "thread_id": "Thread-1", "execution_time": 0.0024449825286865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.963431Z", "completed_at": "2022-07-26T22:56:15.965564Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.965695Z", "completed_at": "2022-07-26T22:56:15.965699Z"}], "thread_id": "Thread-1", "execution_time": 0.0025539398193359375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.966174Z", "completed_at": "2022-07-26T22:56:15.969069Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.969200Z", "completed_at": "2022-07-26T22:56:15.969203Z"}], "thread_id": "Thread-1", "execution_time": 0.0033140182495117188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.969656Z", "completed_at": "2022-07-26T22:56:15.972123Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.972250Z", "completed_at": "2022-07-26T22:56:15.972253Z"}], "thread_id": "Thread-1", "execution_time": 0.0028820037841796875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.972702Z", "completed_at": "2022-07-26T22:56:15.974709Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.974847Z", "completed_at": "2022-07-26T22:56:15.974850Z"}], "thread_id": "Thread-1", "execution_time": 0.0024290084838867188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.975295Z", "completed_at": "2022-07-26T22:56:15.977431Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.977556Z", "completed_at": "2022-07-26T22:56:15.977560Z"}], "thread_id": "Thread-1", "execution_time": 0.0025458335876464844, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.978038Z", "completed_at": "2022-07-26T22:56:15.980138Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.980262Z", "completed_at": "2022-07-26T22:56:15.980266Z"}], "thread_id": "Thread-1", "execution_time": 0.002504110336303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.980707Z", "completed_at": "2022-07-26T22:56:15.982693Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.982819Z", "completed_at": "2022-07-26T22:56:15.982823Z"}], "thread_id": "Thread-1", "execution_time": 0.002390146255493164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.983264Z", "completed_at": "2022-07-26T22:56:15.990627Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.991199Z", "completed_at": "2022-07-26T22:56:15.991204Z"}], "thread_id": "Thread-1", "execution_time": 0.008285045623779297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.992861Z", "completed_at": "2022-07-26T22:56:15.995466Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.995705Z", "completed_at": "2022-07-26T22:56:15.995709Z"}], "thread_id": "Thread-1", "execution_time": 0.003941059112548828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.996463Z", "completed_at": "2022-07-26T22:56:15.998700Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.998836Z", "completed_at": "2022-07-26T22:56:15.998840Z"}], "thread_id": "Thread-1", "execution_time": 0.002702951431274414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.999309Z", "completed_at": "2022-07-26T22:56:16.001248Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.001375Z", "completed_at": "2022-07-26T22:56:16.001379Z"}], "thread_id": "Thread-1", "execution_time": 0.0023500919342041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.001835Z", "completed_at": "2022-07-26T22:56:16.003903Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.004042Z", "completed_at": "2022-07-26T22:56:16.004046Z"}], "thread_id": "Thread-1", "execution_time": 0.002498149871826172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.004508Z", "completed_at": "2022-07-26T22:56:16.006732Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.006868Z", "completed_at": "2022-07-26T22:56:16.006871Z"}], "thread_id": "Thread-1", "execution_time": 0.0026459693908691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.007354Z", "completed_at": "2022-07-26T22:56:16.013801Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.014442Z", "completed_at": "2022-07-26T22:56:16.014446Z"}], "thread_id": "Thread-1", "execution_time": 0.007745027542114258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.015614Z", "completed_at": "2022-07-26T22:56:16.017860Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.017981Z", "completed_at": "2022-07-26T22:56:16.017983Z"}], "thread_id": "Thread-1", "execution_time": 0.002707958221435547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.018513Z", "completed_at": "2022-07-26T22:56:16.020479Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.020615Z", "completed_at": "2022-07-26T22:56:16.020620Z"}], "thread_id": "Thread-1", "execution_time": 0.0024640560150146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.727560Z", "completed_at": "2022-07-26T22:56:15.995635Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:15.995999Z", "completed_at": "2022-07-26T22:56:15.996002Z"}], "thread_id": "Thread-3", "execution_time": 0.2963440418243408, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.021106Z", "completed_at": "2022-07-26T22:56:16.023450Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.023761Z", "completed_at": "2022-07-26T22:56:16.023765Z"}], "thread_id": "Thread-1", "execution_time": 0.003142118453979492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.024623Z", "completed_at": "2022-07-26T22:56:16.029090Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.060271Z", "completed_at": "2022-07-26T22:56:16.060282Z"}], "thread_id": "Thread-3", "execution_time": 0.047215938568115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.766033Z", "completed_at": "2022-07-26T22:56:16.015682Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.017693Z", "completed_at": "2022-07-26T22:56:16.017697Z"}], "thread_id": "Thread-2", "execution_time": 0.3061859607696533, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.026874Z", "completed_at": "2022-07-26T22:56:16.035013Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.071505Z", "completed_at": "2022-07-26T22:56:16.071510Z"}], "thread_id": "Thread-1", "execution_time": 0.0474092960357666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.073247Z", "completed_at": "2022-07-26T22:56:16.080924Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.081187Z", "completed_at": "2022-07-26T22:56:16.081192Z"}], "thread_id": "Thread-3", "execution_time": 0.009111166000366211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.073409Z", "completed_at": "2022-07-26T22:56:16.081108Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.081563Z", "completed_at": "2022-07-26T22:56:16.081565Z"}], "thread_id": "Thread-2", "execution_time": 0.009233713150024414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.076216Z", "completed_at": "2022-07-26T22:56:16.081330Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.081939Z", "completed_at": "2022-07-26T22:56:16.081942Z"}], "thread_id": "Thread-1", "execution_time": 0.009350061416625977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.082692Z", "completed_at": "2022-07-26T22:56:16.087042Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.089187Z", "completed_at": "2022-07-26T22:56:16.089192Z"}], "thread_id": "Thread-3", "execution_time": 0.0074651241302490234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.084905Z", "completed_at": "2022-07-26T22:56:16.089080Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.089559Z", "completed_at": "2022-07-26T22:56:16.089562Z"}], "thread_id": "Thread-2", "execution_time": 0.007392168045043945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.086925Z", "completed_at": "2022-07-26T22:56:16.089353Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.089943Z", "completed_at": "2022-07-26T22:56:16.089946Z"}], "thread_id": "Thread-1", "execution_time": 0.007443904876708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.090602Z", "completed_at": "2022-07-26T22:56:16.094949Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.097920Z", "completed_at": "2022-07-26T22:56:16.097924Z"}], "thread_id": "Thread-3", "execution_time": 0.008134126663208008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.092801Z", "completed_at": "2022-07-26T22:56:16.097846Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.098284Z", "completed_at": "2022-07-26T22:56:16.098287Z"}], "thread_id": "Thread-2", "execution_time": 0.008172035217285156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.094837Z", "completed_at": "2022-07-26T22:56:16.098218Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.098782Z", "completed_at": "2022-07-26T22:56:16.098785Z"}], "thread_id": "Thread-1", "execution_time": 0.008332014083862305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:15.769756Z", "completed_at": "2022-07-26T22:56:16.072286Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.073159Z", "completed_at": "2022-07-26T22:56:16.073162Z"}], "thread_id": "Thread-4", "execution_time": 0.3409709930419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.099253Z", "completed_at": "2022-07-26T22:56:16.104312Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.107374Z", "completed_at": "2022-07-26T22:56:16.107378Z"}], "thread_id": "Thread-3", "execution_time": 0.009187936782836914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.101579Z", "completed_at": "2022-07-26T22:56:16.107055Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.107920Z", "completed_at": "2022-07-26T22:56:16.107923Z"}], "thread_id": "Thread-2", "execution_time": 0.009133100509643555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.104258Z", "completed_at": "2022-07-26T22:56:16.107316Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.108050Z", "completed_at": "2022-07-26T22:56:16.108053Z"}], "thread_id": "Thread-1", "execution_time": 0.007002115249633789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.108346Z", "completed_at": "2022-07-26T22:56:16.111326Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.116189Z", "completed_at": "2022-07-26T22:56:16.116194Z"}], "thread_id": "Thread-4", "execution_time": 0.010730981826782227, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.111200Z", "completed_at": "2022-07-26T22:56:16.118111Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.118720Z", "completed_at": "2022-07-26T22:56:16.118724Z"}], "thread_id": "Thread-3", "execution_time": 0.010561943054199219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.113243Z", "completed_at": "2022-07-26T22:56:16.118466Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.119165Z", "completed_at": "2022-07-26T22:56:16.119168Z"}], "thread_id": "Thread-2", "execution_time": 0.008665800094604492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.113375Z", "completed_at": "2022-07-26T22:56:16.118666Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.119294Z", "completed_at": "2022-07-26T22:56:16.119297Z"}], "thread_id": "Thread-1", "execution_time": 0.008715152740478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.119592Z", "completed_at": "2022-07-26T22:56:16.124209Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.126318Z", "completed_at": "2022-07-26T22:56:16.126322Z"}], "thread_id": "Thread-4", "execution_time": 0.00769495964050293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.122193Z", "completed_at": "2022-07-26T22:56:16.126421Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.126843Z", "completed_at": "2022-07-26T22:56:16.126846Z"}], "thread_id": "Thread-3", "execution_time": 0.007252931594848633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-07-26T22:56:16.124302Z", "completed_at": "2022-07-26T22:56:16.126743Z"}, {"name": "execute", "started_at": "2022-07-26T22:56:16.127109Z", "completed_at": "2022-07-26T22:56:16.127112Z"}], "thread_id": "Thread-2", "execution_time": 0.005223751068115234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39"}], "elapsed_time": 4.607587099075317, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2022-10-24T20:25:46.039431Z", "invocation_id": "4195529c-716a-4b27-ac5b-72f919bfcd43", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.849646Z", "completed_at": "2022-10-24T20:25:41.860204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.860693Z", "completed_at": "2022-10-24T20:25:41.860702Z"}], "thread_id": "Thread-1", "execution_time": 0.012962102890014648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.849729Z", "completed_at": "2022-10-24T20:25:41.860303Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.860927Z", "completed_at": "2022-10-24T20:25:41.860930Z"}], "thread_id": "Thread-2", "execution_time": 0.013316869735717773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.849799Z", "completed_at": "2022-10-24T20:25:41.860435Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.861347Z", "completed_at": "2022-10-24T20:25:41.861351Z"}], "thread_id": "Thread-3", "execution_time": 0.013849973678588867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.849867Z", "completed_at": "2022-10-24T20:25:41.860547Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.861471Z", "completed_at": "2022-10-24T20:25:41.861476Z"}], "thread_id": "Thread-4", "execution_time": 0.013983964920043945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.865088Z", "completed_at": "2022-10-24T20:25:41.875481Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.875728Z", "completed_at": "2022-10-24T20:25:41.875734Z"}], "thread_id": "Thread-1", "execution_time": 0.012430191040039062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.868454Z", "completed_at": "2022-10-24T20:25:41.876615Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.879760Z", "completed_at": "2022-10-24T20:25:41.879765Z"}], "thread_id": "Thread-3", "execution_time": 0.015616178512573242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.865324Z", "completed_at": "2022-10-24T20:25:41.876675Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.879856Z", "completed_at": "2022-10-24T20:25:41.879860Z"}], "thread_id": "Thread-2", "execution_time": 0.016238927841186523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.868534Z", "completed_at": "2022-10-24T20:25:41.876721Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.879932Z", "completed_at": "2022-10-24T20:25:41.879934Z"}], "thread_id": "Thread-4", "execution_time": 0.015967845916748047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.876783Z", "completed_at": "2022-10-24T20:25:41.880840Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.882150Z", "completed_at": "2022-10-24T20:25:41.882154Z"}], "thread_id": "Thread-1", "execution_time": 0.006429910659790039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.882862Z", "completed_at": "2022-10-24T20:25:41.891279Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.893976Z", "completed_at": "2022-10-24T20:25:41.893981Z"}], "thread_id": "Thread-4", "execution_time": 0.012480020523071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.882726Z", "completed_at": "2022-10-24T20:25:41.891340Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.894063Z", "completed_at": "2022-10-24T20:25:41.894066Z"}], "thread_id": "Thread-3", "execution_time": 0.01318979263305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.882792Z", "completed_at": "2022-10-24T20:25:41.891398Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.894183Z", "completed_at": "2022-10-24T20:25:41.894187Z"}], "thread_id": "Thread-2", "execution_time": 0.013275861740112305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.891213Z", "completed_at": "2022-10-24T20:25:41.894117Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.895445Z", "completed_at": "2022-10-24T20:25:41.895448Z"}], "thread_id": "Thread-1", "execution_time": 0.005566835403442383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.896996Z", "completed_at": "2022-10-24T20:25:41.907142Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.907632Z", "completed_at": "2022-10-24T20:25:41.907637Z"}], "thread_id": "Thread-3", "execution_time": 0.012193918228149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.896925Z", "completed_at": "2022-10-24T20:25:41.907204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.907792Z", "completed_at": "2022-10-24T20:25:41.907795Z"}], "thread_id": "Thread-4", "execution_time": 0.012769937515258789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.897263Z", "completed_at": "2022-10-24T20:25:41.907385Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.908226Z", "completed_at": "2022-10-24T20:25:41.908229Z"}], "thread_id": "Thread-2", "execution_time": 0.012601137161254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.904245Z", "completed_at": "2022-10-24T20:25:41.907553Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.908558Z", "completed_at": "2022-10-24T20:25:41.908562Z"}], "thread_id": "Thread-1", "execution_time": 0.012317180633544922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.910739Z", "completed_at": "2022-10-24T20:25:41.920093Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.920617Z", "completed_at": "2022-10-24T20:25:41.920623Z"}], "thread_id": "Thread-3", "execution_time": 0.011630058288574219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.910875Z", "completed_at": "2022-10-24T20:25:41.920215Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.920786Z", "completed_at": "2022-10-24T20:25:41.920789Z"}], "thread_id": "Thread-4", "execution_time": 0.011628150939941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.913310Z", "completed_at": "2022-10-24T20:25:41.920411Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.921251Z", "completed_at": "2022-10-24T20:25:41.921255Z"}], "thread_id": "Thread-2", "execution_time": 0.01180410385131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.915577Z", "completed_at": "2022-10-24T20:25:41.920538Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.921586Z", "completed_at": "2022-10-24T20:25:41.921589Z"}], "thread_id": "Thread-1", "execution_time": 0.011966228485107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.923868Z", "completed_at": "2022-10-24T20:25:41.959145Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.959724Z", "completed_at": "2022-10-24T20:25:41.959730Z"}], "thread_id": "Thread-3", "execution_time": 0.03764915466308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.924000Z", "completed_at": "2022-10-24T20:25:41.959306Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.959943Z", "completed_at": "2022-10-24T20:25:41.959946Z"}], "thread_id": "Thread-4", "execution_time": 0.03773164749145508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.929600Z", "completed_at": "2022-10-24T20:25:41.959503Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.960396Z", "completed_at": "2022-10-24T20:25:41.960399Z"}], "thread_id": "Thread-1", "execution_time": 0.037544965744018555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.926634Z", "completed_at": "2022-10-24T20:25:41.959560Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.960474Z", "completed_at": "2022-10-24T20:25:41.960479Z"}], "thread_id": "Thread-2", "execution_time": 0.03808283805847168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.963273Z", "completed_at": "2022-10-24T20:25:41.972240Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.972764Z", "completed_at": "2022-10-24T20:25:41.972769Z"}], "thread_id": "Thread-4", "execution_time": 0.010930776596069336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.963070Z", "completed_at": "2022-10-24T20:25:41.972309Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.972830Z", "completed_at": "2022-10-24T20:25:41.972833Z"}], "thread_id": "Thread-3", "execution_time": 0.011701107025146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.965526Z", "completed_at": "2022-10-24T20:25:41.972368Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.972894Z", "completed_at": "2022-10-24T20:25:41.972897Z"}], "thread_id": "Thread-1", "execution_time": 0.011151790618896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.965595Z", "completed_at": "2022-10-24T20:25:41.972420Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.972956Z", "completed_at": "2022-10-24T20:25:41.972958Z"}], "thread_id": "Thread-2", "execution_time": 0.011172771453857422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.975768Z", "completed_at": "2022-10-24T20:25:41.985549Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.986054Z", "completed_at": "2022-10-24T20:25:41.986061Z"}], "thread_id": "Thread-4", "execution_time": 0.011828899383544922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.975830Z", "completed_at": "2022-10-24T20:25:41.985670Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.986220Z", "completed_at": "2022-10-24T20:25:41.986222Z"}], "thread_id": "Thread-3", "execution_time": 0.011955738067626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.975889Z", "completed_at": "2022-10-24T20:25:41.985816Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.986669Z", "completed_at": "2022-10-24T20:25:41.986672Z"}], "thread_id": "Thread-1", "execution_time": 0.012314796447753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.975947Z", "completed_at": "2022-10-24T20:25:41.985974Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.987013Z", "completed_at": "2022-10-24T20:25:41.987016Z"}], "thread_id": "Thread-2", "execution_time": 0.012562990188598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.989476Z", "completed_at": "2022-10-24T20:25:41.997333Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.000064Z", "completed_at": "2022-10-24T20:25:42.000070Z"}], "thread_id": "Thread-4", "execution_time": 0.012530803680419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.989626Z", "completed_at": "2022-10-24T20:25:41.999567Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.000273Z", "completed_at": "2022-10-24T20:25:42.000280Z"}], "thread_id": "Thread-3", "execution_time": 0.012545108795166016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.992035Z", "completed_at": "2022-10-24T20:25:41.999903Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.000727Z", "completed_at": "2022-10-24T20:25:42.000730Z"}], "thread_id": "Thread-1", "execution_time": 0.012603282928466797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.994201Z", "completed_at": "2022-10-24T20:25:42.000129Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.001244Z", "completed_at": "2022-10-24T20:25:42.001247Z"}], "thread_id": "Thread-2", "execution_time": 0.012871026992797852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.003128Z", "completed_at": "2022-10-24T20:25:42.011687Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.012171Z", "completed_at": "2022-10-24T20:25:42.012177Z"}], "thread_id": "Thread-4", "execution_time": 0.01090097427368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.008374Z", "completed_at": "2022-10-24T20:25:42.011814Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.012312Z", "completed_at": "2022-10-24T20:25:42.012315Z"}], "thread_id": "Thread-2", "execution_time": 0.009839057922363281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.003505Z", "completed_at": "2022-10-24T20:25:42.011966Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.012745Z", "completed_at": "2022-10-24T20:25:42.012748Z"}], "thread_id": "Thread-3", "execution_time": 0.01110696792602539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.006121Z", "completed_at": "2022-10-24T20:25:42.012104Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.013145Z", "completed_at": "2022-10-24T20:25:42.013148Z"}], "thread_id": "Thread-1", "execution_time": 0.011063098907470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.015300Z", "completed_at": "2022-10-24T20:25:42.018460Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.020801Z", "completed_at": "2022-10-24T20:25:42.020805Z"}], "thread_id": "Thread-4", "execution_time": 0.00716090202331543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.015431Z", "completed_at": "2022-10-24T20:25:42.019478Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.020926Z", "completed_at": "2022-10-24T20:25:42.020929Z"}], "thread_id": "Thread-2", "execution_time": 0.007094144821166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.017393Z", "completed_at": "2022-10-24T20:25:42.020596Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.021309Z", "completed_at": "2022-10-24T20:25:42.021313Z"}], "thread_id": "Thread-3", "execution_time": 0.0070438385009765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.018391Z", "completed_at": "2022-10-24T20:25:42.020737Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.021607Z", "completed_at": "2022-10-24T20:25:42.021609Z"}], "thread_id": "Thread-1", "execution_time": 0.007133960723876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.023607Z", "completed_at": "2022-10-24T20:25:42.026018Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.028983Z", "completed_at": "2022-10-24T20:25:42.028987Z"}], "thread_id": "Thread-4", "execution_time": 0.007041215896606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.023741Z", "completed_at": "2022-10-24T20:25:42.026990Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.029133Z", "completed_at": "2022-10-24T20:25:42.029136Z"}], "thread_id": "Thread-2", "execution_time": 0.007087230682373047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.024955Z", "completed_at": "2022-10-24T20:25:42.028785Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.029539Z", "completed_at": "2022-10-24T20:25:42.029541Z"}], "thread_id": "Thread-3", "execution_time": 0.007006168365478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.025954Z", "completed_at": "2022-10-24T20:25:42.028920Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.029845Z", "completed_at": "2022-10-24T20:25:42.029848Z"}], "thread_id": "Thread-1", "execution_time": 0.007078886032104492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.031804Z", "completed_at": "2022-10-24T20:25:42.034204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.036370Z", "completed_at": "2022-10-24T20:25:42.036374Z"}], "thread_id": "Thread-4", "execution_time": 0.0061490535736083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.031938Z", "completed_at": "2022-10-24T20:25:42.035175Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.036504Z", "completed_at": "2022-10-24T20:25:42.036506Z"}], "thread_id": "Thread-2", "execution_time": 0.006196022033691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.033155Z", "completed_at": "2022-10-24T20:25:42.036177Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.036907Z", "completed_at": "2022-10-24T20:25:42.036910Z"}], "thread_id": "Thread-3", "execution_time": 0.006316184997558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.034138Z", "completed_at": "2022-10-24T20:25:42.036306Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.037217Z", "completed_at": "2022-10-24T20:25:42.037220Z"}], "thread_id": "Thread-1", "execution_time": 0.006403923034667969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.039353Z", "completed_at": "2022-10-24T20:25:42.041685Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.044674Z", "completed_at": "2022-10-24T20:25:42.044678Z"}], "thread_id": "Thread-4", "execution_time": 0.006966114044189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.039489Z", "completed_at": "2022-10-24T20:25:42.043430Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.044803Z", "completed_at": "2022-10-24T20:25:42.044806Z"}], "thread_id": "Thread-2", "execution_time": 0.0070209503173828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.040644Z", "completed_at": "2022-10-24T20:25:42.044477Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.045265Z", "completed_at": "2022-10-24T20:25:42.045269Z"}], "thread_id": "Thread-3", "execution_time": 0.006992816925048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.041604Z", "completed_at": "2022-10-24T20:25:42.044609Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.045599Z", "completed_at": "2022-10-24T20:25:42.045602Z"}], "thread_id": "Thread-1", "execution_time": 0.0071277618408203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.047797Z", "completed_at": "2022-10-24T20:25:42.050209Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.052338Z", "completed_at": "2022-10-24T20:25:42.052342Z"}], "thread_id": "Thread-4", "execution_time": 0.006296873092651367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.047935Z", "completed_at": "2022-10-24T20:25:42.051140Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.052458Z", "completed_at": "2022-10-24T20:25:42.052460Z"}], "thread_id": "Thread-2", "execution_time": 0.0063211917877197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.049145Z", "completed_at": "2022-10-24T20:25:42.052156Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.052839Z", "completed_at": "2022-10-24T20:25:42.052842Z"}], "thread_id": "Thread-3", "execution_time": 0.006276845932006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.050146Z", "completed_at": "2022-10-24T20:25:42.052279Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.053134Z", "completed_at": "2022-10-24T20:25:42.053137Z"}], "thread_id": "Thread-1", "execution_time": 0.006213188171386719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.055061Z", "completed_at": "2022-10-24T20:25:42.058101Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.060264Z", "completed_at": "2022-10-24T20:25:42.060268Z"}], "thread_id": "Thread-4", "execution_time": 0.006725788116455078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.055187Z", "completed_at": "2022-10-24T20:25:42.059090Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.060388Z", "completed_at": "2022-10-24T20:25:42.060390Z"}], "thread_id": "Thread-2", "execution_time": 0.00675201416015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.057072Z", "completed_at": "2022-10-24T20:25:42.060081Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.060766Z", "completed_at": "2022-10-24T20:25:42.060769Z"}], "thread_id": "Thread-3", "execution_time": 0.006810903549194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.058038Z", "completed_at": "2022-10-24T20:25:42.060204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.061066Z", "completed_at": "2022-10-24T20:25:42.061069Z"}], "thread_id": "Thread-1", "execution_time": 0.0069730281829833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.063268Z", "completed_at": "2022-10-24T20:25:42.065457Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.068414Z", "completed_at": "2022-10-24T20:25:42.068420Z"}], "thread_id": "Thread-4", "execution_time": 0.006845951080322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.063390Z", "completed_at": "2022-10-24T20:25:42.066403Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.068538Z", "completed_at": "2022-10-24T20:25:42.068541Z"}], "thread_id": "Thread-2", "execution_time": 0.006745100021362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.064457Z", "completed_at": "2022-10-24T20:25:42.068225Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.068943Z", "completed_at": "2022-10-24T20:25:42.068945Z"}], "thread_id": "Thread-3", "execution_time": 0.006706953048706055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.065394Z", "completed_at": "2022-10-24T20:25:42.068354Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.069249Z", "completed_at": "2022-10-24T20:25:42.069251Z"}], "thread_id": "Thread-1", "execution_time": 0.006806612014770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.071170Z", "completed_at": "2022-10-24T20:25:42.073477Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.075701Z", "completed_at": "2022-10-24T20:25:42.075705Z"}], "thread_id": "Thread-4", "execution_time": 0.00617527961730957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.071301Z", "completed_at": "2022-10-24T20:25:42.074447Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.075892Z", "completed_at": "2022-10-24T20:25:42.075896Z"}], "thread_id": "Thread-2", "execution_time": 0.006246089935302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.072464Z", "completed_at": "2022-10-24T20:25:42.075501Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.076333Z", "completed_at": "2022-10-24T20:25:42.076336Z"}], "thread_id": "Thread-3", "execution_time": 0.006223917007446289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.073414Z", "completed_at": "2022-10-24T20:25:42.075638Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.076652Z", "completed_at": "2022-10-24T20:25:42.076655Z"}], "thread_id": "Thread-1", "execution_time": 0.006335258483886719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.078715Z", "completed_at": "2022-10-24T20:25:42.081891Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.084080Z", "completed_at": "2022-10-24T20:25:42.084084Z"}], "thread_id": "Thread-4", "execution_time": 0.00710606575012207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.078846Z", "completed_at": "2022-10-24T20:25:42.082848Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.084252Z", "completed_at": "2022-10-24T20:25:42.084256Z"}], "thread_id": "Thread-2", "execution_time": 0.007066965103149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.080105Z", "completed_at": "2022-10-24T20:25:42.083890Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.084676Z", "completed_at": "2022-10-24T20:25:42.084679Z"}], "thread_id": "Thread-3", "execution_time": 0.007040977478027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.081827Z", "completed_at": "2022-10-24T20:25:42.084022Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.084984Z", "completed_at": "2022-10-24T20:25:42.084986Z"}], "thread_id": "Thread-1", "execution_time": 0.007179975509643555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.087125Z", "completed_at": "2022-10-24T20:25:42.089341Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.097649Z", "completed_at": "2022-10-24T20:25:42.097654Z"}], "thread_id": "Thread-4", "execution_time": 0.012247085571289062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.087259Z", "completed_at": "2022-10-24T20:25:42.090295Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.097804Z", "completed_at": "2022-10-24T20:25:42.097807Z"}], "thread_id": "Thread-2", "execution_time": 0.012285947799682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.088313Z", "completed_at": "2022-10-24T20:25:42.097441Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.098211Z", "completed_at": "2022-10-24T20:25:42.098214Z"}], "thread_id": "Thread-3", "execution_time": 0.012222051620483398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.089280Z", "completed_at": "2022-10-24T20:25:42.355601Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.355762Z", "completed_at": "2022-10-24T20:25:42.355770Z"}], "thread_id": "Thread-1", "execution_time": 0.30385875701904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.100235Z", "completed_at": "2022-10-24T20:25:42.390978Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.391799Z", "completed_at": "2022-10-24T20:25:42.391804Z"}], "thread_id": "Thread-4", "execution_time": 0.321699857711792, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.100367Z", "completed_at": "2022-10-24T20:25:42.391137Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.391955Z", "completed_at": "2022-10-24T20:25:42.391958Z"}], "thread_id": "Thread-2", "execution_time": 0.326815128326416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.104089Z", "completed_at": "2022-10-24T20:25:42.606921Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.607089Z", "completed_at": "2022-10-24T20:25:42.607096Z"}], "thread_id": "Thread-3", "execution_time": 0.5359890460968018, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.392095Z", "completed_at": "2022-10-24T20:25:42.682692Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.682882Z", "completed_at": "2022-10-24T20:25:42.682889Z"}], "thread_id": "Thread-1", "execution_time": 0.3210179805755615, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.421434Z", "completed_at": "2022-10-24T20:25:42.735711Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.736030Z", "completed_at": "2022-10-24T20:25:42.736036Z"}], "thread_id": "Thread-4", "execution_time": 0.3413419723510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.426991Z", "completed_at": "2022-10-24T20:25:42.735802Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.736106Z", "completed_at": "2022-10-24T20:25:42.736109Z"}], "thread_id": "Thread-2", "execution_time": 0.34136199951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.638146Z", "completed_at": "2022-10-24T20:25:42.924585Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.924736Z", "completed_at": "2022-10-24T20:25:42.924743Z"}], "thread_id": "Thread-3", "execution_time": 0.3133277893066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.763053Z", "completed_at": "2022-10-24T20:25:43.034855Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.035017Z", "completed_at": "2022-10-24T20:25:43.035026Z"}], "thread_id": "Thread-4", "execution_time": 0.2983701229095459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.061700Z", "completed_at": "2022-10-24T20:25:43.329612Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.329777Z", "completed_at": "2022-10-24T20:25:43.329784Z"}], "thread_id": "Thread-4", "execution_time": 0.2926781177520752, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.768658Z", "completed_at": "2022-10-24T20:25:43.382466Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.382634Z", "completed_at": "2022-10-24T20:25:43.382640Z"}], "thread_id": "Thread-2", "execution_time": 0.6387009620666504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.713032Z", "completed_at": "2022-10-24T20:25:43.483464Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.483628Z", "completed_at": "2022-10-24T20:25:43.483635Z"}], "thread_id": "Thread-1", "execution_time": 0.7980241775512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.951032Z", "completed_at": "2022-10-24T20:25:43.540908Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.541077Z", "completed_at": "2022-10-24T20:25:43.541084Z"}], "thread_id": "Thread-3", "execution_time": 0.6194899082183838, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.354654Z", "completed_at": "2022-10-24T20:25:43.663283Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.663454Z", "completed_at": "2022-10-24T20:25:43.663461Z"}], "thread_id": "Thread-4", "execution_time": 0.3491199016571045, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.407656Z", "completed_at": "2022-10-24T20:25:43.747653Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.747815Z", "completed_at": "2022-10-24T20:25:43.747822Z"}], "thread_id": "Thread-2", "execution_time": 0.367473840713501, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.512363Z", "completed_at": "2022-10-24T20:25:43.789609Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.789762Z", "completed_at": "2022-10-24T20:25:43.789767Z"}], "thread_id": "Thread-1", "execution_time": 0.30304694175720215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.573317Z", "completed_at": "2022-10-24T20:25:43.829596Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.829742Z", "completed_at": "2022-10-24T20:25:43.829747Z"}], "thread_id": "Thread-3", "execution_time": 0.2819969654083252, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.716364Z", "completed_at": "2022-10-24T20:25:43.984459Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.984618Z", "completed_at": "2022-10-24T20:25:43.984624Z"}], "thread_id": "Thread-4", "execution_time": 0.29403114318847656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.775429Z", "completed_at": "2022-10-24T20:25:44.042279Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.042431Z", "completed_at": "2022-10-24T20:25:44.042438Z"}], "thread_id": "Thread-2", "execution_time": 0.29552364349365234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.815533Z", "completed_at": "2022-10-24T20:25:44.086794Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.086939Z", "completed_at": "2022-10-24T20:25:44.086944Z"}], "thread_id": "Thread-1", "execution_time": 0.298508882522583, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.854799Z", "completed_at": "2022-10-24T20:25:44.131530Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.131673Z", "completed_at": "2022-10-24T20:25:44.131678Z"}], "thread_id": "Thread-3", "execution_time": 0.30654215812683105, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.010425Z", "completed_at": "2022-10-24T20:25:44.267237Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.267403Z", "completed_at": "2022-10-24T20:25:44.267410Z"}], "thread_id": "Thread-4", "execution_time": 0.2885861396789551, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.071232Z", "completed_at": "2022-10-24T20:25:44.399302Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.399449Z", "completed_at": "2022-10-24T20:25:44.399457Z"}], "thread_id": "Thread-2", "execution_time": 0.3579998016357422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.114336Z", "completed_at": "2022-10-24T20:25:44.459101Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.459464Z", "completed_at": "2022-10-24T20:25:44.459467Z"}], "thread_id": "Thread-1", "execution_time": 0.3734419345855713, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.161585Z", "completed_at": "2022-10-24T20:25:44.459005Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.459378Z", "completed_at": "2022-10-24T20:25:44.459386Z"}], "thread_id": "Thread-3", "execution_time": 0.32651281356811523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.302398Z", "completed_at": "2022-10-24T20:25:44.597100Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.597251Z", "completed_at": "2022-10-24T20:25:44.597258Z"}], "thread_id": "Thread-4", "execution_time": 0.3640439510345459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.429514Z", "completed_at": "2022-10-24T20:25:44.766112Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.766278Z", "completed_at": "2022-10-24T20:25:44.766284Z"}], "thread_id": "Thread-2", "execution_time": 0.3668379783630371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.488862Z", "completed_at": "2022-10-24T20:25:44.795584Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.795742Z", "completed_at": "2022-10-24T20:25:44.795748Z"}], "thread_id": "Thread-1", "execution_time": 0.33345484733581543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.488930Z", "completed_at": "2022-10-24T20:25:44.816699Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.816859Z", "completed_at": "2022-10-24T20:25:44.816866Z"}], "thread_id": "Thread-3", "execution_time": 0.3540501594543457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.666439Z", "completed_at": "2022-10-24T20:25:44.984184Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.984344Z", "completed_at": "2022-10-24T20:25:44.984351Z"}], "thread_id": "Thread-4", "execution_time": 0.3474099636077881, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.796687Z", "completed_at": "2022-10-24T20:25:45.099591Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.099755Z", "completed_at": "2022-10-24T20:25:45.099762Z"}], "thread_id": "Thread-2", "execution_time": 0.3336179256439209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.822312Z", "completed_at": "2022-10-24T20:25:45.130655Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.134791Z", "completed_at": "2022-10-24T20:25:45.134797Z"}], "thread_id": "Thread-1", "execution_time": 0.337723970413208, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.843110Z", "completed_at": "2022-10-24T20:25:45.187902Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.188066Z", "completed_at": "2022-10-24T20:25:45.188073Z"}], "thread_id": "Thread-3", "execution_time": 0.3710649013519287, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.018075Z", "completed_at": "2022-10-24T20:25:45.350505Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.350672Z", "completed_at": "2022-10-24T20:25:45.350680Z"}], "thread_id": "Thread-4", "execution_time": 0.36203503608703613, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.130727Z", "completed_at": "2022-10-24T20:25:45.414962Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.415116Z", "completed_at": "2022-10-24T20:25:45.415123Z"}], "thread_id": "Thread-2", "execution_time": 0.3140270709991455, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.160471Z", "completed_at": "2022-10-24T20:25:45.444809Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.445250Z", "completed_at": "2022-10-24T20:25:45.445255Z"}], "thread_id": "Thread-1", "execution_time": 0.31341075897216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.378764Z", "completed_at": "2022-10-24T20:25:45.639549Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.639714Z", "completed_at": "2022-10-24T20:25:45.639720Z"}], "thread_id": "Thread-4", "execution_time": 0.2881741523742676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.667201Z", "completed_at": "2022-10-24T20:25:45.674630Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.674785Z", "completed_at": "2022-10-24T20:25:45.674789Z"}], "thread_id": "Thread-4", "execution_time": 0.008086919784545898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.675474Z", "completed_at": "2022-10-24T20:25:45.683483Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.683727Z", "completed_at": "2022-10-24T20:25:45.683732Z"}], "thread_id": "Thread-4", "execution_time": 0.008843183517456055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.684787Z", "completed_at": "2022-10-24T20:25:45.687534Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.687683Z", "completed_at": "2022-10-24T20:25:45.687688Z"}], "thread_id": "Thread-4", "execution_time": 0.0034329891204833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.688410Z", "completed_at": "2022-10-24T20:25:45.690807Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.690953Z", "completed_at": "2022-10-24T20:25:45.690957Z"}], "thread_id": "Thread-4", "execution_time": 0.003025054931640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.691755Z", "completed_at": "2022-10-24T20:25:45.694495Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.694625Z", "completed_at": "2022-10-24T20:25:45.694629Z"}], "thread_id": "Thread-4", "execution_time": 0.0034317970275878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.695294Z", "completed_at": "2022-10-24T20:25:45.705069Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.705250Z", "completed_at": "2022-10-24T20:25:45.705255Z"}], "thread_id": "Thread-4", "execution_time": 0.010498046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.445164Z", "completed_at": "2022-10-24T20:25:45.683645Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.684184Z", "completed_at": "2022-10-24T20:25:45.684188Z"}], "thread_id": "Thread-2", "execution_time": 0.26476335525512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.706296Z", "completed_at": "2022-10-24T20:25:45.709066Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.709484Z", "completed_at": "2022-10-24T20:25:45.709488Z"}], "thread_id": "Thread-4", "execution_time": 0.003944873809814453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.710595Z", "completed_at": "2022-10-24T20:25:45.715471Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.715719Z", "completed_at": "2022-10-24T20:25:45.715724Z"}], "thread_id": "Thread-2", "execution_time": 0.006056308746337891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.713017Z", "completed_at": "2022-10-24T20:25:45.715641Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.716165Z", "completed_at": "2022-10-24T20:25:45.716169Z"}], "thread_id": "Thread-4", "execution_time": 0.006134033203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.717246Z", "completed_at": "2022-10-24T20:25:45.722213Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.722434Z", "completed_at": "2022-10-24T20:25:45.722438Z"}], "thread_id": "Thread-2", "execution_time": 0.006093025207519531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.719765Z", "completed_at": "2022-10-24T20:25:45.722358Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.722845Z", "completed_at": "2022-10-24T20:25:45.722848Z"}], "thread_id": "Thread-4", "execution_time": 0.006146907806396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.214584Z", "completed_at": "2022-10-24T20:25:45.705303Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.705863Z", "completed_at": "2022-10-24T20:25:45.705866Z"}], "thread_id": "Thread-3", "execution_time": 0.586885929107666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.724021Z", "completed_at": "2022-10-24T20:25:45.790143Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.801676Z", "completed_at": "2022-10-24T20:25:45.801681Z"}], "thread_id": "Thread-2", "execution_time": 0.07919907569885254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.760268Z", "completed_at": "2022-10-24T20:25:45.802218Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.803067Z", "completed_at": "2022-10-24T20:25:45.803071Z"}], "thread_id": "Thread-4", "execution_time": 0.08211207389831543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.802997Z", "completed_at": "2022-10-24T20:25:45.806602Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.809415Z", "completed_at": "2022-10-24T20:25:45.809419Z"}], "thread_id": "Thread-3", "execution_time": 0.010149002075195312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.806318Z", "completed_at": "2022-10-24T20:25:45.811768Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.812467Z", "completed_at": "2022-10-24T20:25:45.812471Z"}], "thread_id": "Thread-2", "execution_time": 0.009807825088500977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.809324Z", "completed_at": "2022-10-24T20:25:45.812388Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.813205Z", "completed_at": "2022-10-24T20:25:45.813208Z"}], "thread_id": "Thread-4", "execution_time": 0.0072040557861328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.813386Z", "completed_at": "2022-10-24T20:25:45.816818Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.822434Z", "completed_at": "2022-10-24T20:25:45.822440Z"}], "thread_id": "Thread-3", "execution_time": 0.010231971740722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.816686Z", "completed_at": "2022-10-24T20:25:45.822550Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.823174Z", "completed_at": "2022-10-24T20:25:45.823177Z"}], "thread_id": "Thread-2", "execution_time": 0.009970903396606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.819934Z", "completed_at": "2022-10-24T20:25:45.822979Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.823797Z", "completed_at": "2022-10-24T20:25:45.823801Z"}], "thread_id": "Thread-4", "execution_time": 0.007707834243774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.824279Z", "completed_at": "2022-10-24T20:25:45.829684Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.832277Z", "completed_at": "2022-10-24T20:25:45.832282Z"}], "thread_id": "Thread-3", "execution_time": 0.00935506820678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.474137Z", "completed_at": "2022-10-24T20:25:45.801615Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.802801Z", "completed_at": "2022-10-24T20:25:45.802805Z"}], "thread_id": "Thread-1", "execution_time": 0.3590888977050781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.827300Z", "completed_at": "2022-10-24T20:25:45.832204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.833127Z", "completed_at": "2022-10-24T20:25:45.833130Z"}], "thread_id": "Thread-2", "execution_time": 0.00934910774230957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.829756Z", "completed_at": "2022-10-24T20:25:45.833059Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.834212Z", "completed_at": "2022-10-24T20:25:45.834215Z"}], "thread_id": "Thread-4", "execution_time": 0.007607936859130859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.834954Z", "completed_at": "2022-10-24T20:25:45.843517Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.846281Z", "completed_at": "2022-10-24T20:25:45.846286Z"}], "thread_id": "Thread-3", "execution_time": 0.012921810150146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.835024Z", "completed_at": "2022-10-24T20:25:45.843587Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.846371Z", "completed_at": "2022-10-24T20:25:45.846374Z"}], "thread_id": "Thread-1", "execution_time": 0.012964963912963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.840859Z", "completed_at": "2022-10-24T20:25:45.846175Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.847085Z", "completed_at": "2022-10-24T20:25:45.847089Z"}], "thread_id": "Thread-2", "execution_time": 0.012866020202636719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.843442Z", "completed_at": "2022-10-24T20:25:45.846497Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.847725Z", "completed_at": "2022-10-24T20:25:45.847729Z"}], "thread_id": "Thread-4", "execution_time": 0.007845163345336914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.849102Z", "completed_at": "2022-10-24T20:25:45.856763Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.860261Z", "completed_at": "2022-10-24T20:25:45.860267Z"}], "thread_id": "Thread-1", "execution_time": 0.012701272964477539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.849031Z", "completed_at": "2022-10-24T20:25:45.856827Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.860345Z", "completed_at": "2022-10-24T20:25:45.860348Z"}], "thread_id": "Thread-3", "execution_time": 0.01318502426147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.854058Z", "completed_at": "2022-10-24T20:25:45.860150Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.861169Z", "completed_at": "2022-10-24T20:25:45.861172Z"}], "thread_id": "Thread-2", "execution_time": 0.012959957122802734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.856704Z", "completed_at": "2022-10-24T20:25:45.860422Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.861477Z", "completed_at": "2022-10-24T20:25:45.861480Z"}], "thread_id": "Thread-4", "execution_time": 0.01310420036315918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.863000Z", "completed_at": "2022-10-24T20:25:45.873810Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.876718Z", "completed_at": "2022-10-24T20:25:45.876725Z"}], "thread_id": "Thread-1", "execution_time": 0.015388011932373047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.863069Z", "completed_at": "2022-10-24T20:25:45.873885Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.876805Z", "completed_at": "2022-10-24T20:25:45.876809Z"}], "thread_id": "Thread-3", "execution_time": 0.01546788215637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.868110Z", "completed_at": "2022-10-24T20:25:45.876641Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.877589Z", "completed_at": "2022-10-24T20:25:45.877592Z"}], "thread_id": "Thread-2", "execution_time": 0.015301704406738281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.868264Z", "completed_at": "2022-10-24T20:25:45.876948Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.878225Z", "completed_at": "2022-10-24T20:25:45.878228Z"}], "thread_id": "Thread-4", "execution_time": 0.015798091888427734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.879550Z", "completed_at": "2022-10-24T20:25:45.891261Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.891846Z", "completed_at": "2022-10-24T20:25:45.891851Z"}], "thread_id": "Thread-3", "execution_time": 0.013801813125610352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.879485Z", "completed_at": "2022-10-24T20:25:45.891366Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.892009Z", "completed_at": "2022-10-24T20:25:45.892011Z"}], "thread_id": "Thread-1", "execution_time": 0.014343023300170898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.886196Z", "completed_at": "2022-10-24T20:25:45.891456Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.892077Z", "completed_at": "2022-10-24T20:25:45.892080Z"}], "thread_id": "Thread-2", "execution_time": 0.013705015182495117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.888870Z", "completed_at": "2022-10-24T20:25:45.891631Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.892433Z", "completed_at": "2022-10-24T20:25:45.892435Z"}], "thread_id": "Thread-4", "execution_time": 0.013550996780395508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.894720Z", "completed_at": "2022-10-24T20:25:45.905093Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.905557Z", "completed_at": "2022-10-24T20:25:45.905563Z"}], "thread_id": "Thread-3", "execution_time": 0.012454986572265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.894916Z", "completed_at": "2022-10-24T20:25:45.905471Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.906258Z", "completed_at": "2022-10-24T20:25:45.906261Z"}], "thread_id": "Thread-2", "execution_time": 0.012619972229003906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.894853Z", "completed_at": "2022-10-24T20:25:45.905637Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.906485Z", "completed_at": "2022-10-24T20:25:45.906487Z"}], "thread_id": "Thread-1", "execution_time": 0.013334035873413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.897323Z", "completed_at": "2022-10-24T20:25:45.905800Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.906846Z", "completed_at": "2022-10-24T20:25:45.906849Z"}], "thread_id": "Thread-4", "execution_time": 0.013178825378417969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.908185Z", "completed_at": "2022-10-24T20:25:45.913893Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.919691Z", "completed_at": "2022-10-24T20:25:45.919697Z"}], "thread_id": "Thread-3", "execution_time": 0.013260126113891602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.911395Z", "completed_at": "2022-10-24T20:25:45.919583Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.920300Z", "completed_at": "2022-10-24T20:25:45.920304Z"}], "thread_id": "Thread-2", "execution_time": 0.01293492317199707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.913833Z", "completed_at": "2022-10-24T20:25:45.919883Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.920895Z", "completed_at": "2022-10-24T20:25:45.920898Z"}], "thread_id": "Thread-4", "execution_time": 0.012940645217895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.911565Z", "completed_at": "2022-10-24T20:25:45.919940Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.920963Z", "completed_at": "2022-10-24T20:25:45.920966Z"}], "thread_id": "Thread-1", "execution_time": 0.013456106185913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.922298Z", "completed_at": "2022-10-24T20:25:45.928836Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.933679Z", "completed_at": "2022-10-24T20:25:45.933686Z"}], "thread_id": "Thread-3", "execution_time": 0.013065099716186523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.925250Z", "completed_at": "2022-10-24T20:25:45.933529Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.934265Z", "completed_at": "2022-10-24T20:25:45.934269Z"}], "thread_id": "Thread-2", "execution_time": 0.012845039367675781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.928768Z", "completed_at": "2022-10-24T20:25:45.933862Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.934861Z", "completed_at": "2022-10-24T20:25:45.934865Z"}], "thread_id": "Thread-1", "execution_time": 0.012872934341430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.928689Z", "completed_at": "2022-10-24T20:25:45.934196Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.935174Z", "completed_at": "2022-10-24T20:25:45.935177Z"}], "thread_id": "Thread-4", "execution_time": 0.013399124145507812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.936245Z", "completed_at": "2022-10-24T20:25:45.942001Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.947863Z", "completed_at": "2022-10-24T20:25:45.947868Z"}], "thread_id": "Thread-3", "execution_time": 0.013391971588134766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.939316Z", "completed_at": "2022-10-24T20:25:45.947762Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.948527Z", "completed_at": "2022-10-24T20:25:45.948531Z"}], "thread_id": "Thread-2", "execution_time": 0.01309514045715332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.941943Z", "completed_at": "2022-10-24T20:25:45.947979Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.948803Z", "completed_at": "2022-10-24T20:25:45.948806Z"}], "thread_id": "Thread-1", "execution_time": 0.013041019439697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.942079Z", "completed_at": "2022-10-24T20:25:45.948123Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.949135Z", "completed_at": "2022-10-24T20:25:45.949137Z"}], "thread_id": "Thread-4", "execution_time": 0.010787010192871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.950467Z", "completed_at": "2022-10-24T20:25:45.956205Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.961086Z", "completed_at": "2022-10-24T20:25:45.961091Z"}], "thread_id": "Thread-3", "execution_time": 0.012321949005126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.953575Z", "completed_at": "2022-10-24T20:25:45.960970Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.961724Z", "completed_at": "2022-10-24T20:25:45.961728Z"}], "thread_id": "Thread-2", "execution_time": 0.012026309967041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.953754Z", "completed_at": "2022-10-24T20:25:45.961164Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.961969Z", "completed_at": "2022-10-24T20:25:45.961972Z"}], "thread_id": "Thread-1", "execution_time": 0.012167930603027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.956142Z", "completed_at": "2022-10-24T20:25:45.961287Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.962293Z", "completed_at": "2022-10-24T20:25:45.962296Z"}], "thread_id": "Thread-4", "execution_time": 0.01224517822265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.963649Z", "completed_at": "2022-10-24T20:25:45.970125Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.975070Z", "completed_at": "2022-10-24T20:25:45.975076Z"}], "thread_id": "Thread-3", "execution_time": 0.013180971145629883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.966591Z", "completed_at": "2022-10-24T20:25:45.974889Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.975658Z", "completed_at": "2022-10-24T20:25:45.975661Z"}], "thread_id": "Thread-2", "execution_time": 0.012810945510864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.966755Z", "completed_at": "2022-10-24T20:25:45.975011Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.975805Z", "completed_at": "2022-10-24T20:25:45.975807Z"}], "thread_id": "Thread-1", "execution_time": 0.012748241424560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.970067Z", "completed_at": "2022-10-24T20:25:45.975229Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.976239Z", "completed_at": "2022-10-24T20:25:45.976242Z"}], "thread_id": "Thread-4", "execution_time": 0.013043880462646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.977815Z", "completed_at": "2022-10-24T20:25:45.985345Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.988984Z", "completed_at": "2022-10-24T20:25:45.988989Z"}], "thread_id": "Thread-3", "execution_time": 0.012853860855102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.980613Z", "completed_at": "2022-10-24T20:25:45.988587Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.989136Z", "completed_at": "2022-10-24T20:25:45.989138Z"}], "thread_id": "Thread-2", "execution_time": 0.012462139129638672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.980765Z", "completed_at": "2022-10-24T20:25:45.988779Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.989557Z", "completed_at": "2022-10-24T20:25:45.989560Z"}], "thread_id": "Thread-1", "execution_time": 0.012588024139404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.983093Z", "completed_at": "2022-10-24T20:25:45.988934Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.989872Z", "completed_at": "2022-10-24T20:25:45.989875Z"}], "thread_id": "Thread-4", "execution_time": 0.012586832046508789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.991776Z", "completed_at": "2022-10-24T20:25:46.001336Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.001821Z", "completed_at": "2022-10-24T20:25:46.001827Z"}], "thread_id": "Thread-3", "execution_time": 0.011595964431762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.991912Z", "completed_at": "2022-10-24T20:25:46.001480Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.001944Z", "completed_at": "2022-10-24T20:25:46.001946Z"}], "thread_id": "Thread-2", "execution_time": 0.011632204055786133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.994356Z", "completed_at": "2022-10-24T20:25:46.001739Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.002686Z", "completed_at": "2022-10-24T20:25:46.002689Z"}], "thread_id": "Thread-1", "execution_time": 0.011848926544189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.996666Z", "completed_at": "2022-10-24T20:25:46.001874Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.002869Z", "completed_at": "2022-10-24T20:25:46.002871Z"}], "thread_id": "Thread-4", "execution_time": 0.012025833129882812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.004427Z", "completed_at": "2022-10-24T20:25:46.012941Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.015718Z", "completed_at": "2022-10-24T20:25:46.015724Z"}], "thread_id": "Thread-3", "execution_time": 0.012871980667114258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.004687Z", "completed_at": "2022-10-24T20:25:46.015357Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.015796Z", "completed_at": "2022-10-24T20:25:46.015798Z"}], "thread_id": "Thread-2", "execution_time": 0.012698888778686523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.010400Z", "completed_at": "2022-10-24T20:25:46.015628Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.016586Z", "completed_at": "2022-10-24T20:25:46.016589Z"}], "thread_id": "Thread-1", "execution_time": 0.012849807739257812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.010520Z", "completed_at": "2022-10-24T20:25:46.015845Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.016871Z", "completed_at": "2022-10-24T20:25:46.016875Z"}], "thread_id": "Thread-4", "execution_time": 0.01324915885925293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.018440Z", "completed_at": "2022-10-24T20:25:46.026736Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.030286Z", "completed_at": "2022-10-24T20:25:46.030291Z"}], "thread_id": "Thread-3", "execution_time": 0.013546943664550781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.018518Z", "completed_at": "2022-10-24T20:25:46.026797Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.030369Z", "completed_at": "2022-10-24T20:25:46.030372Z"}], "thread_id": "Thread-2", "execution_time": 0.01360011100769043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.024199Z", "completed_at": "2022-10-24T20:25:46.030209Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.031120Z", "completed_at": "2022-10-24T20:25:46.031123Z"}], "thread_id": "Thread-1", "execution_time": 0.013394832611083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.024355Z", "completed_at": "2022-10-24T20:25:46.030494Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.031733Z", "completed_at": "2022-10-24T20:25:46.031736Z"}], "thread_id": "Thread-4", "execution_time": 0.013808965682983398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.032785Z", "completed_at": "2022-10-24T20:25:46.037698Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.037990Z", "completed_at": "2022-10-24T20:25:46.037995Z"}], "thread_id": "Thread-2", "execution_time": 0.006276845932006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.032715Z", "completed_at": "2022-10-24T20:25:46.037764Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.038060Z", "completed_at": "2022-10-24T20:25:46.038063Z"}], "thread_id": "Thread-3", "execution_time": 0.006738901138305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531"}], "elapsed_time": 4.983864784240723, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file From 84b3218a406f41c145cd6864e7bcc63946f930bf Mon Sep 17 00:00:00 2001 From: Joe Markiewicz <74217849+fivetran-joemarkiewicz@users.noreply.github.com> Date: Mon, 24 Oct 2022 17:23:06 -0500 Subject: [PATCH 22/25] Update dbt_project.yml --- dbt_project.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dbt_project.yml b/dbt_project.yml index 21d32c5..4c73259 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -14,10 +14,9 @@ models: netsuite2: tmp: +materialized: view + vars: netsuite_source: - - # Netsuite netsuite_accounting_books: "{{ source('netsuite','accounting_books') }}" netsuite_accounting_periods: "{{ source('netsuite','accounting_periods') }}" netsuite_accounts: "{{ source('netsuite','accounts') }}" From 03b2961d45ac7af573646d789910fcf8f346dcb5 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Wed, 26 Oct 2022 08:49:46 -0500 Subject: [PATCH 23/25] bumping utils range in README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 07513c4..091756f 100644 --- a/README.md +++ b/README.md @@ -188,7 +188,7 @@ packages: version: [">=0.4.0", "<0.5.0"] - package: dbt-labs/dbt_utils - version: [">=1.0.0", "<1.1.0"] + version: [">=1.0.0", "<2.0.0"] ``` # 🙌 How is this package maintained and can I contribute? From 1a55f1e8fdd56ae5b8fb96aa66ddcbf23288c8df Mon Sep 17 00:00:00 2001 From: Sheri Nguyen Date: Thu, 17 Nov 2022 11:23:16 -0900 Subject: [PATCH 24/25] Update pipeline, CI refs, run models --- .buildkite/scripts/run_models.sh | 2 ++ .github/pull_request_template.md | 4 ++-- integration_tests/ci/sample.profiles.yml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.buildkite/scripts/run_models.sh b/.buildkite/scripts/run_models.sh index 485bd3a..1c50274 100644 --- a/.buildkite/scripts/run_models.sh +++ b/.buildkite/scripts/run_models.sh @@ -1,5 +1,7 @@ #!/bin/bash +set -euo pipefail + apt-get update apt-get install libsasl2-dev diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index f450926..50ee0df 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -28,9 +28,9 @@ **How did you test the PR changes?** - + -- [ ] CircleCi +- [ ] Buildkite - [ ] Local (please provide additional testing details below) **Select which warehouse(s) were used to test the PR** diff --git a/integration_tests/ci/sample.profiles.yml b/integration_tests/ci/sample.profiles.yml index 19e8633..bd934d8 100644 --- a/integration_tests/ci/sample.profiles.yml +++ b/integration_tests/ci/sample.profiles.yml @@ -1,5 +1,5 @@ -# HEY! This file is used in the dbt package integrations tests with CircleCI. +# HEY! This file is used in the dbt package integrations tests with Buildkite. # You should __NEVER__ check credentials into version control. Thanks for reading :) config: From 45cea42af504ed65b5035634855ce9fe5c24df29 Mon Sep 17 00:00:00 2001 From: fivetran-joemarkiewicz Date: Mon, 19 Dec 2022 10:18:05 -0600 Subject: [PATCH 25/25] docs regen --- docs/catalog.json | 2 +- docs/manifest.json | 2 +- docs/run_results.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/catalog.json b/docs/catalog.json index fb7ebff..c44c005 100644 --- a/docs/catalog.json +++ b/docs/catalog.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2022-10-24T20:25:46.795044Z", "invocation_id": "4195529c-716a-4b27-ac5b-72f919bfcd43", "env": {}}, "nodes": {"seed.netsuite_source_integration_tests.netsuite2_account_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data"}, "seed.netsuite_source_integration_tests.netsuite2_account_type_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_type_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_sub_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_fiscal_cal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, "seed.netsuite_source_integration_tests.netsuite2_classification_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_classification_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data"}, "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_consolidated_exchange_rate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data"}, "seed.netsuite_source_integration_tests.netsuite2_currency_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_currency_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data"}, "seed.netsuite_source_integration_tests.netsuite2_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data"}, "seed.netsuite_source_integration_tests.netsuite2_department_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data"}, "seed.netsuite_source_integration_tests.netsuite2_entities_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entities_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data"}, "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entity_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data"}, "seed.netsuite_source_integration_tests.netsuite2_item_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data"}, "seed.netsuite_source_integration_tests.netsuite2_job_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_job_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data"}, "seed.netsuite_source_integration_tests.netsuite2_location_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data"}, "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_main_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data"}, "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_subsidiary_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data"}, "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_tran_acct_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data"}, "seed.netsuite_source_integration_tests.netsuite2_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data"}, "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data"}, "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_category_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data"}, "seed.netsuite_source_integration_tests.netsuite2_vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data"}, "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_books_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data"}, "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_periods_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data"}, "seed.netsuite_source_integration_tests.netsuite_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_classes_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_classes_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data"}, "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_consolidated_exchange_rates_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data"}, "seed.netsuite_source_integration_tests.netsuite_currencies_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_currencies_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data"}, "seed.netsuite_source_integration_tests.netsuite_customers_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_customers_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data"}, "seed.netsuite_source_integration_tests.netsuite_departments_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_departments_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data"}, "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_expense_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_income_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_items_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_items_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data"}, "seed.netsuite_source_integration_tests.netsuite_locations_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_locations_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data"}, "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_subsidiaries_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data"}, "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transaction_lines_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data"}, "seed.netsuite_source_integration_tests.netsuite_transactions_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transactions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data"}, "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendor_types_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data"}, "seed.netsuite_source_integration_tests.netsuite_vendors_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendors_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data"}, "model.netsuite_source.stg_netsuite2__account_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__account_types", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_type_id": {"type": "text", "index": 3, "name": "account_type_id", "comment": null}, "is_balancesheet": {"type": "boolean", "index": 4, "name": "is_balancesheet", "comment": null}, "is_leftside": {"type": "boolean", "index": 5, "name": "is_leftside", "comment": null}, "type_name": {"type": "text", "index": 6, "name": "type_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__account_types_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "accounting_book_id": {"type": "integer", "index": 3, "name": "accounting_book_id", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "subsidiary_id": {"type": "integer", "index": 5, "name": "subsidiary_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_books", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 3, "name": "accounting_book_name", "comment": null}, "base_book_id": {"type": "integer", "index": 4, "name": "base_book_id", "comment": null}, "effective_period_id": {"type": "integer", "index": 5, "name": "effective_period_id", "comment": null}, "is_adjustment_only": {"type": "boolean", "index": 6, "name": "is_adjustment_only", "comment": null}, "is_consolidated": {"type": "boolean", "index": 7, "name": "is_consolidated", "comment": null}, "is_contingent_revenue_handling": {"type": "text", "index": 8, "name": "is_contingent_revenue_handling", "comment": null}, "is_primary": {"type": "boolean", "index": 9, "name": "is_primary", "comment": null}, "is_two_step_revenue_allocation": {"type": "text", "index": 10, "name": "is_two_step_revenue_allocation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_books_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "parent_id": {"type": "integer", "index": 5, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "accounting_period_id": {"type": "integer", "index": 2, "name": "accounting_period_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "starting_at": {"type": "timestamp without time zone", "index": 5, "name": "starting_at", "comment": null}, "ending_at": {"type": "timestamp without time zone", "index": 6, "name": "ending_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 7, "name": "closed_at", "comment": null}, "is_quarter": {"type": "boolean", "index": 8, "name": "is_quarter", "comment": null}, "is_year": {"type": "boolean", "index": 9, "name": "is_year", "comment": null}, "is_adjustment": {"type": "boolean", "index": 10, "name": "is_adjustment", "comment": null}, "is_posting": {"type": "boolean", "index": 11, "name": "is_posting", "comment": null}, "is_closed": {"type": "boolean", "index": 12, "name": "is_closed", "comment": null}, "is_all_locked": {"type": "boolean", "index": 13, "name": "is_all_locked", "comment": null}, "is_ar_locked": {"type": "boolean", "index": 14, "name": "is_ar_locked", "comment": null}, "is_ap_locked": {"type": "boolean", "index": 15, "name": "is_ap_locked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_periods_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, "model.netsuite_source.stg_netsuite2__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "account_external_id": {"type": "text", "index": 3, "name": "account_external_id", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "account_type_id": {"type": "text", "index": 6, "name": "account_type_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "account_description": {"type": "integer", "index": 8, "name": "account_description", "comment": null}, "deferral_account_id": {"type": "integer", "index": 9, "name": "deferral_account_id", "comment": null}, "cash_flow_rate_type": {"type": "text", "index": 10, "name": "cash_flow_rate_type", "comment": null}, "general_rate_type": {"type": "text", "index": 11, "name": "general_rate_type", "comment": null}, "currency_id": {"type": "integer", "index": 12, "name": "currency_id", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "location_id": {"type": "integer", "index": 15, "name": "location_id", "comment": null}, "is_including_child_subs": {"type": "boolean", "index": 16, "name": "is_including_child_subs", "comment": null}, "is_inactive": {"type": "boolean", "index": 17, "name": "is_inactive", "comment": null}, "is_summary": {"type": "boolean", "index": 18, "name": "is_summary", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, "model.netsuite_source.stg_netsuite2__classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__classes", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 2, "name": "class_id", "comment": null}, "class_external_id": {"type": "integer", "index": 3, "name": "class_external_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 5, "name": "full_name", "comment": null}, "is_inactive": {"type": "boolean", "index": 6, "name": "is_inactive", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 7, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__classes_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 2, "name": "accounting_period_id", "comment": null}, "from_currency_id": {"type": "integer", "index": 3, "name": "from_currency_id", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 4, "name": "from_subsidiary_id", "comment": null}, "to_currency_id": {"type": "integer", "index": 5, "name": "to_currency_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 6, "name": "to_subsidiary_id", "comment": null}, "current_rate": {"type": "integer", "index": 7, "name": "current_rate", "comment": null}, "average_rate": {"type": "integer", "index": 8, "name": "average_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 9, "name": "historical_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, "model.netsuite_source.stg_netsuite2__currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__currencies", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "currency_id": {"type": "integer", "index": 2, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 4, "name": "symbol", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__currencies_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, "model.netsuite_source.stg_netsuite2__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__customers", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "entity_id": {"type": "text", "index": 2, "name": "entity_id", "comment": null}, "customer_external_id": {"type": "integer", "index": 3, "name": "customer_external_id", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}, "is_person": {"type": "boolean", "index": 5, "name": "is_person", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "first_name": {"type": "text", "index": 7, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 8, "name": "last_name", "comment": null}, "email_address": {"type": "text", "index": 9, "name": "email_address", "comment": null}, "phone_number": {"type": "integer", "index": 10, "name": "phone_number", "comment": null}, "default_billing_address_id": {"type": "integer", "index": 11, "name": "default_billing_address_id", "comment": null}, "default_shipping_address_id": {"type": "integer", "index": 12, "name": "default_shipping_address_id", "comment": null}, "receivables_account_id": {"type": "integer", "index": 13, "name": "receivables_account_id", "comment": null}, "currency_id": {"type": "integer", "index": 14, "name": "currency_id", "comment": null}, "date_first_order_at": {"type": "integer", "index": 15, "name": "date_first_order_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__customers_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, "model.netsuite_source.stg_netsuite2__departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__departments", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "department_id": {"type": "integer", "index": 2, "name": "department_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 5, "name": "full_name", "comment": null}, "subsidiary_id": {"type": "text", "index": 6, "name": "subsidiary_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 7, "name": "is_inactive", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__departments_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, "model.netsuite_source.stg_netsuite2__entities": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entities", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "entity_id": {"type": "integer", "index": 2, "name": "entity_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "entity_name": {"type": "text", "index": 4, "name": "entity_name", "comment": null}, "entity_type": {"type": "text", "index": 5, "name": "entity_type", "comment": null}, "is_person": {"type": "boolean", "index": 6, "name": "is_person", "comment": null}, "contact_id": {"type": "integer", "index": 7, "name": "contact_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "employee_id": {"type": "integer", "index": 9, "name": "employee_id", "comment": null}, "job_id": {"type": "integer", "index": 10, "name": "job_id", "comment": null}, "vendor_id": {"type": "integer", "index": 11, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entities_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, "model.netsuite_source.stg_netsuite2__entity_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entity_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 2, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 3, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 4, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 5, "name": "addressee", "comment": null}, "full_address": {"type": "text", "index": 6, "name": "full_address", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}, "nkey": {"type": "integer", "index": 10, "name": "nkey", "comment": null}, "zipcode": {"type": "integer", "index": 11, "name": "zipcode", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entity_address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, "model.netsuite_source.stg_netsuite2__items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__items", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 5, "name": "sales_description", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 8, "name": "location_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 9, "name": "subsidiary_id", "comment": null}, "asset_account_id": {"type": "integer", "index": 10, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "integer", "index": 11, "name": "expense_account_id", "comment": null}, "gain_loss_account_id": {"type": "integer", "index": 12, "name": "gain_loss_account_id", "comment": null}, "income_account_id": {"type": "integer", "index": 13, "name": "income_account_id", "comment": null}, "interco_expense_account_id": {"type": "integer", "index": 14, "name": "interco_expense_account_id", "comment": null}, "interco_income_account_id": {"type": "integer", "index": 15, "name": "interco_income_account_id", "comment": null}, "deferred_expense_account_id": {"type": "integer", "index": 16, "name": "deferred_expense_account_id", "comment": null}, "deferred_revenue_account_id": {"type": "integer", "index": 17, "name": "deferred_revenue_account_id", "comment": null}, "parent_item_id": {"type": "integer", "index": 18, "name": "parent_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, "model.netsuite_source.stg_netsuite2__items_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__items_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, "model.netsuite_source.stg_netsuite2__jobs": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__jobs", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "job_id": {"type": "integer", "index": 2, "name": "job_id", "comment": null}, "job_external_id": {"type": "integer", "index": 3, "name": "job_external_id", "comment": null}, "customer_id": {"type": "integer", "index": 4, "name": "customer_id", "comment": null}, "entity_id": {"type": "text", "index": 5, "name": "entity_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 6, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 7, "name": "shipping_address_id", "comment": null}, "parent_id": {"type": "integer", "index": 8, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__jobs_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, "model.netsuite_source.stg_netsuite2__location_main_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__location_main_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 2, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 3, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 4, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 5, "name": "addressee", "comment": null}, "full_address": {"type": "text", "index": 6, "name": "full_address", "comment": null}, "city": {"type": "integer", "index": 7, "name": "city", "comment": null}, "country": {"type": "integer", "index": 8, "name": "country", "comment": null}, "state": {"type": "integer", "index": 9, "name": "state", "comment": null}, "nkey": {"type": "integer", "index": 10, "name": "nkey", "comment": null}, "zipcode": {"type": "integer", "index": 11, "name": "zipcode", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__location_main_address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, "model.netsuite_source.stg_netsuite2__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__locations", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 4, "name": "full_name", "comment": null}, "main_address_id": {"type": "integer", "index": 5, "name": "main_address_id", "comment": null}, "parent_id": {"type": "integer", "index": 6, "name": "parent_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 7, "name": "subsidiary_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__locations_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "subsidiary_id": {"type": "integer", "index": 2, "name": "subsidiary_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 4, "name": "full_name", "comment": null}, "email_address": {"type": "integer", "index": 5, "name": "email_address", "comment": null}, "main_address_id": {"type": "integer", "index": 6, "name": "main_address_id", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 9, "name": "fiscal_calendar_id", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "transaction_id": {"type": "integer", "index": 3, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 5, "name": "accounting_book_id", "comment": null}, "account_id": {"type": "integer", "index": 6, "name": "account_id", "comment": null}, "is_posting": {"type": "boolean", "index": 7, "name": "is_posting", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "credit_amount": {"type": "integer", "index": 9, "name": "credit_amount", "comment": null}, "debit_amount": {"type": "integer", "index": 10, "name": "debit_amount", "comment": null}, "net_amount": {"type": "integer", "index": 11, "name": "net_amount", "comment": null}, "paid_amount": {"type": "integer", "index": 12, "name": "paid_amount", "comment": null}, "unpaid_amount": {"type": "integer", "index": 13, "name": "unpaid_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "transaction_id": {"type": "integer", "index": 3, "name": "transaction_id", "comment": null}, "transaction_line_number": {"type": "integer", "index": 4, "name": "transaction_line_number", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "entity_id": {"type": "integer", "index": 6, "name": "entity_id", "comment": null}, "item_id": {"type": "integer", "index": 7, "name": "item_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 9, "name": "location_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 10, "name": "subsidiary_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "is_closed": {"type": "boolean", "index": 12, "name": "is_closed", "comment": null}, "is_billable": {"type": "boolean", "index": 13, "name": "is_billable", "comment": null}, "is_cogs": {"type": "boolean", "index": 14, "name": "is_cogs", "comment": null}, "is_cleared": {"type": "boolean", "index": 15, "name": "is_cleared", "comment": null}, "is_commitment_firm": {"type": "boolean", "index": 16, "name": "is_commitment_firm", "comment": null}, "is_main_line": {"type": "boolean", "index": 17, "name": "is_main_line", "comment": null}, "is_tax_line": {"type": "boolean", "index": 18, "name": "is_tax_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, "model.netsuite_source.stg_netsuite2__transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "transaction_id": {"type": "integer", "index": 2, "name": "transaction_id", "comment": null}, "transaction_number": {"type": "integer", "index": 3, "name": "transaction_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "due_date_at": {"type": "timestamp without time zone", "index": 9, "name": "due_date_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 10, "name": "closed_at", "comment": null}, "currency_id": {"type": "integer", "index": 11, "name": "currency_id", "comment": null}, "entity_id": {"type": "integer", "index": 12, "name": "entity_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 13, "name": "accounting_period_id", "comment": null}, "is_posting": {"type": "boolean", "index": 14, "name": "is_posting", "comment": null}, "is_intercompany_adjustment": {"type": "boolean", "index": 15, "name": "is_intercompany_adjustment", "comment": null}, "is_reversal": {"type": "boolean", "index": 16, "name": "is_reversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transactions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendor_categories", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_category_id": {"type": "integer", "index": 1, "name": "vendor_category_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendor_categories_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, "model.netsuite_source.stg_netsuite2__vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendors", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "vendor_id": {"type": "integer", "index": 2, "name": "vendor_id", "comment": null}, "company_name": {"type": "integer", "index": 3, "name": "company_name", "comment": null}, "create_date_at": {"type": "timestamp without time zone", "index": 4, "name": "create_date_at", "comment": null}, "vendor_category_id": {"type": "integer", "index": 5, "name": "vendor_category_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendors_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, "model.netsuite_source.stg_netsuite__accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_books", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_books_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, "model.netsuite_source.stg_netsuite__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting_at": {"type": "timestamp without time zone", "index": 6, "name": "starting_at", "comment": null}, "ending_at": {"type": "timestamp without time zone", "index": 7, "name": "ending_at", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "is_closed": {"type": "text", "index": 11, "name": "is_closed", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_periods_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, "model.netsuite_source.stg_netsuite__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "text", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, "model.netsuite_source.stg_netsuite__classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__classes", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, "model.netsuite_source.stg_netsuite__classes_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__classes_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, "model.netsuite_source.stg_netsuite__currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__currencies", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__currencies_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, "model.netsuite_source.stg_netsuite__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__customers", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "customer_external_id": {"type": "text", "index": 3, "name": "customer_external_id", "comment": null}, "city": {"type": "integer", "index": 4, "name": "city", "comment": null}, "state": {"type": "integer", "index": 5, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 6, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 7, "name": "country", "comment": null}, "date_first_order_at": {"type": "integer", "index": 8, "name": "date_first_order_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, "model.netsuite_source.stg_netsuite__customers_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__customers_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, "model.netsuite_source.stg_netsuite__departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__departments", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, "model.netsuite_source.stg_netsuite__departments_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__departments_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, "model.netsuite_source.stg_netsuite__expense_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__expense_accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__expense_accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, "model.netsuite_source.stg_netsuite__income_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__income_accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__income_accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, "model.netsuite_source.stg_netsuite__items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__items", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__items"}, "model.netsuite_source.stg_netsuite__items_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__items_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, "model.netsuite_source.stg_netsuite__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__locations", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, "model.netsuite_source.stg_netsuite__locations_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__locations_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, "model.netsuite_source.stg_netsuite__subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 5, "name": "parent_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transaction_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transaction_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, "model.netsuite_source.stg_netsuite__transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date_at": {"type": "timestamp without time zone", "index": 6, "name": "due_date_at", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transactions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, "model.netsuite_source.stg_netsuite__vendor_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendor_types", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendor_types_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, "model.netsuite_source.stg_netsuite__vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendors", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "create_date_at": {"type": "timestamp without time zone", "index": 3, "name": "create_date_at", "comment": null}, "vendor_type_id": {"type": "integer", "index": 4, "name": "vendor_type_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendors_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}}, "sources": {"source.netsuite_source.netsuite2.account": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.account"}, "source.netsuite_source.netsuite2.account_type": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_type_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.account_type"}, "source.netsuite_source.netsuite2.accounting_book": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_book"}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_sub_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries"}, "source.netsuite_source.netsuite2.accounting_period": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_period"}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_fiscal_cal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"}, "source.netsuite_source.netsuite2.classification": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_classification_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.classification"}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_consolidated_exchange_rate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate"}, "source.netsuite_source.netsuite2.currency": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_currency_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.currency"}, "source.netsuite_source.netsuite2.customer": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.customer"}, "source.netsuite_source.netsuite2.department": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.department"}, "source.netsuite_source.netsuite2.entity": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entities_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.entity"}, "source.netsuite_source.netsuite2.entity_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entity_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.entity_address"}, "source.netsuite_source.netsuite2.item": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.item"}, "source.netsuite_source.netsuite2.job": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_job_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.job"}, "source.netsuite_source.netsuite2.location": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.location"}, "source.netsuite_source.netsuite2.location_main_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_main_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.location_main_address"}, "source.netsuite_source.netsuite2.subsidiary": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_subsidiary_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.subsidiary"}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_tran_acct_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line"}, "source.netsuite_source.netsuite2.transaction": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction"}, "source.netsuite_source.netsuite2.transaction_line": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction_line"}, "source.netsuite_source.netsuite2.vendor_category": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_category_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.vendor_category"}, "source.netsuite_source.netsuite2.vendor": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.vendor"}, "source.netsuite_source.netsuite.accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_books_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounting_books"}, "source.netsuite_source.netsuite.accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_periods_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounting_periods"}, "source.netsuite_source.netsuite.accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounts"}, "source.netsuite_source.netsuite.classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_classes_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.classes"}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_consolidated_exchange_rates_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates"}, "source.netsuite_source.netsuite.currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_currencies_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.currencies"}, "source.netsuite_source.netsuite.customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_customers_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.customers"}, "source.netsuite_source.netsuite.departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_departments_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.departments"}, "source.netsuite_source.netsuite.expense_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_expense_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.expense_accounts"}, "source.netsuite_source.netsuite.income_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_income_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.income_accounts"}, "source.netsuite_source.netsuite.items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_items_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.items"}, "source.netsuite_source.netsuite.locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_locations_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.locations"}, "source.netsuite_source.netsuite.subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_subsidiaries_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.subsidiaries"}, "source.netsuite_source.netsuite.transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transaction_lines_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.transaction_lines"}, "source.netsuite_source.netsuite.transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transactions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.transactions"}, "source.netsuite_source.netsuite.vendor_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendor_types_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.vendor_types"}, "source.netsuite_source.netsuite.vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendors_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.vendors"}}, "errors": null} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/catalog/v1.json", "dbt_version": "1.3.0", "generated_at": "2022-12-19T16:17:46.877680Z", "invocation_id": "4ff11905-9ed7-4385-88b5-d12865e9ff7e", "env": {}}, "nodes": {"seed.netsuite_source_integration_tests.netsuite2_account_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data"}, "seed.netsuite_source_integration_tests.netsuite2_account_type_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_type_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_sub_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data"}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_fiscal_cal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, "seed.netsuite_source_integration_tests.netsuite2_classification_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_classification_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data"}, "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_consolidated_exchange_rate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data"}, "seed.netsuite_source_integration_tests.netsuite2_currency_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_currency_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data"}, "seed.netsuite_source_integration_tests.netsuite2_customer_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data"}, "seed.netsuite_source_integration_tests.netsuite2_department_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data"}, "seed.netsuite_source_integration_tests.netsuite2_entities_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entities_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data"}, "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entity_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data"}, "seed.netsuite_source_integration_tests.netsuite2_item_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data"}, "seed.netsuite_source_integration_tests.netsuite2_job_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_job_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data"}, "seed.netsuite_source_integration_tests.netsuite2_location_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data"}, "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_main_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data"}, "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_subsidiary_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data"}, "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_tran_acct_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data"}, "seed.netsuite_source_integration_tests.netsuite2_transaction_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data"}, "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data"}, "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_category_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data"}, "seed.netsuite_source_integration_tests.netsuite2_vendor_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data"}, "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_books_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data"}, "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_periods_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data"}, "seed.netsuite_source_integration_tests.netsuite_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_classes_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_classes_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data"}, "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_consolidated_exchange_rates_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data"}, "seed.netsuite_source_integration_tests.netsuite_currencies_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_currencies_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data"}, "seed.netsuite_source_integration_tests.netsuite_customers_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_customers_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data"}, "seed.netsuite_source_integration_tests.netsuite_departments_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_departments_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data"}, "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_expense_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_income_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data"}, "seed.netsuite_source_integration_tests.netsuite_items_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_items_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data"}, "seed.netsuite_source_integration_tests.netsuite_locations_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_locations_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data"}, "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_subsidiaries_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data"}, "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transaction_lines_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data"}, "seed.netsuite_source_integration_tests.netsuite_transactions_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transactions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data"}, "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendor_types_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data"}, "seed.netsuite_source_integration_tests.netsuite_vendors_data": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendors_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data"}, "model.netsuite_source.stg_netsuite2__account_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__account_types", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "account_type_id": {"type": "text", "index": 3, "name": "account_type_id", "comment": null}, "is_balancesheet": {"type": "boolean", "index": 4, "name": "is_balancesheet", "comment": null}, "is_leftside": {"type": "boolean", "index": 5, "name": "is_leftside", "comment": null}, "type_name": {"type": "text", "index": 6, "name": "type_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__account_types_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "accounting_book_id": {"type": "integer", "index": 3, "name": "accounting_book_id", "comment": null}, "status": {"type": "text", "index": 4, "name": "status", "comment": null}, "subsidiary_id": {"type": "integer", "index": 5, "name": "subsidiary_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_books", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_book_name": {"type": "text", "index": 3, "name": "accounting_book_name", "comment": null}, "base_book_id": {"type": "integer", "index": 4, "name": "base_book_id", "comment": null}, "effective_period_id": {"type": "integer", "index": 5, "name": "effective_period_id", "comment": null}, "is_adjustment_only": {"type": "boolean", "index": 6, "name": "is_adjustment_only", "comment": null}, "is_consolidated": {"type": "boolean", "index": 7, "name": "is_consolidated", "comment": null}, "is_contingent_revenue_handling": {"type": "text", "index": 8, "name": "is_contingent_revenue_handling", "comment": null}, "is_primary": {"type": "boolean", "index": 9, "name": "is_primary", "comment": null}, "is_two_step_revenue_allocation": {"type": "text", "index": 10, "name": "is_two_step_revenue_allocation", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_books_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "parent_id": {"type": "integer", "index": 5, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "accounting_period_id": {"type": "integer", "index": 2, "name": "accounting_period_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "starting_at": {"type": "timestamp without time zone", "index": 5, "name": "starting_at", "comment": null}, "ending_at": {"type": "timestamp without time zone", "index": 6, "name": "ending_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 7, "name": "closed_at", "comment": null}, "is_quarter": {"type": "boolean", "index": 8, "name": "is_quarter", "comment": null}, "is_year": {"type": "boolean", "index": 9, "name": "is_year", "comment": null}, "is_adjustment": {"type": "boolean", "index": 10, "name": "is_adjustment", "comment": null}, "is_posting": {"type": "boolean", "index": 11, "name": "is_posting", "comment": null}, "is_closed": {"type": "boolean", "index": 12, "name": "is_closed", "comment": null}, "is_all_locked": {"type": "boolean", "index": 13, "name": "is_all_locked", "comment": null}, "is_ar_locked": {"type": "boolean", "index": 14, "name": "is_ar_locked", "comment": null}, "is_ap_locked": {"type": "boolean", "index": 15, "name": "is_ap_locked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounting_periods_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, "model.netsuite_source.stg_netsuite2__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "account_id": {"type": "integer", "index": 2, "name": "account_id", "comment": null}, "account_external_id": {"type": "text", "index": 3, "name": "account_external_id", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "account_type_id": {"type": "text", "index": 6, "name": "account_type_id", "comment": null}, "name": {"type": "text", "index": 7, "name": "name", "comment": null}, "account_description": {"type": "integer", "index": 8, "name": "account_description", "comment": null}, "deferral_account_id": {"type": "integer", "index": 9, "name": "deferral_account_id", "comment": null}, "cash_flow_rate_type": {"type": "text", "index": 10, "name": "cash_flow_rate_type", "comment": null}, "general_rate_type": {"type": "text", "index": 11, "name": "general_rate_type", "comment": null}, "currency_id": {"type": "integer", "index": 12, "name": "currency_id", "comment": null}, "class_id": {"type": "integer", "index": 13, "name": "class_id", "comment": null}, "department_id": {"type": "integer", "index": 14, "name": "department_id", "comment": null}, "location_id": {"type": "integer", "index": 15, "name": "location_id", "comment": null}, "is_including_child_subs": {"type": "boolean", "index": 16, "name": "is_including_child_subs", "comment": null}, "is_inactive": {"type": "boolean", "index": 17, "name": "is_inactive", "comment": null}, "is_summary": {"type": "boolean", "index": 18, "name": "is_summary", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 19, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, "model.netsuite_source.stg_netsuite2__classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__classes", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "class_id": {"type": "integer", "index": 2, "name": "class_id", "comment": null}, "class_external_id": {"type": "integer", "index": 3, "name": "class_external_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 5, "name": "full_name", "comment": null}, "is_inactive": {"type": "boolean", "index": 6, "name": "is_inactive", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 7, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__classes_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 2, "name": "accounting_period_id", "comment": null}, "from_currency_id": {"type": "integer", "index": 3, "name": "from_currency_id", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 4, "name": "from_subsidiary_id", "comment": null}, "to_currency_id": {"type": "integer", "index": 5, "name": "to_currency_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 6, "name": "to_subsidiary_id", "comment": null}, "current_rate": {"type": "integer", "index": 7, "name": "current_rate", "comment": null}, "average_rate": {"type": "integer", "index": 8, "name": "average_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 9, "name": "historical_rate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, "model.netsuite_source.stg_netsuite2__currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__currencies", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "currency_id": {"type": "integer", "index": 2, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 4, "name": "symbol", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__currencies_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, "model.netsuite_source.stg_netsuite2__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__customers", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "entity_id": {"type": "text", "index": 2, "name": "entity_id", "comment": null}, "customer_external_id": {"type": "integer", "index": 3, "name": "customer_external_id", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}, "is_person": {"type": "boolean", "index": 5, "name": "is_person", "comment": null}, "company_name": {"type": "text", "index": 6, "name": "company_name", "comment": null}, "first_name": {"type": "text", "index": 7, "name": "first_name", "comment": null}, "last_name": {"type": "text", "index": 8, "name": "last_name", "comment": null}, "email_address": {"type": "text", "index": 9, "name": "email_address", "comment": null}, "phone_number": {"type": "integer", "index": 10, "name": "phone_number", "comment": null}, "default_billing_address_id": {"type": "integer", "index": 11, "name": "default_billing_address_id", "comment": null}, "default_shipping_address_id": {"type": "integer", "index": 12, "name": "default_shipping_address_id", "comment": null}, "receivables_account_id": {"type": "integer", "index": 13, "name": "receivables_account_id", "comment": null}, "currency_id": {"type": "integer", "index": 14, "name": "currency_id", "comment": null}, "date_first_order_at": {"type": "integer", "index": 15, "name": "date_first_order_at", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__customers_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, "model.netsuite_source.stg_netsuite2__departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__departments", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "department_id": {"type": "integer", "index": 2, "name": "department_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 5, "name": "full_name", "comment": null}, "subsidiary_id": {"type": "text", "index": 6, "name": "subsidiary_id", "comment": null}, "is_inactive": {"type": "boolean", "index": 7, "name": "is_inactive", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__departments_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, "model.netsuite_source.stg_netsuite2__entities": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entities", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "entity_id": {"type": "integer", "index": 2, "name": "entity_id", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "entity_name": {"type": "text", "index": 4, "name": "entity_name", "comment": null}, "entity_type": {"type": "text", "index": 5, "name": "entity_type", "comment": null}, "is_person": {"type": "boolean", "index": 6, "name": "is_person", "comment": null}, "contact_id": {"type": "integer", "index": 7, "name": "contact_id", "comment": null}, "customer_id": {"type": "integer", "index": 8, "name": "customer_id", "comment": null}, "employee_id": {"type": "integer", "index": 9, "name": "employee_id", "comment": null}, "job_id": {"type": "integer", "index": 10, "name": "job_id", "comment": null}, "vendor_id": {"type": "integer", "index": 11, "name": "vendor_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entities_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, "model.netsuite_source.stg_netsuite2__entity_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entity_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 2, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 3, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 4, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 5, "name": "addressee", "comment": null}, "full_address": {"type": "text", "index": 6, "name": "full_address", "comment": null}, "city": {"type": "text", "index": 7, "name": "city", "comment": null}, "country": {"type": "text", "index": 8, "name": "country", "comment": null}, "state": {"type": "text", "index": 9, "name": "state", "comment": null}, "nkey": {"type": "integer", "index": 10, "name": "nkey", "comment": null}, "zipcode": {"type": "integer", "index": 11, "name": "zipcode", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__entity_address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, "model.netsuite_source.stg_netsuite2__items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__items", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "item_id": {"type": "integer", "index": 2, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 5, "name": "sales_description", "comment": null}, "department_id": {"type": "integer", "index": 6, "name": "department_id", "comment": null}, "class_id": {"type": "integer", "index": 7, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 8, "name": "location_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 9, "name": "subsidiary_id", "comment": null}, "asset_account_id": {"type": "integer", "index": 10, "name": "asset_account_id", "comment": null}, "expense_account_id": {"type": "integer", "index": 11, "name": "expense_account_id", "comment": null}, "gain_loss_account_id": {"type": "integer", "index": 12, "name": "gain_loss_account_id", "comment": null}, "income_account_id": {"type": "integer", "index": 13, "name": "income_account_id", "comment": null}, "interco_expense_account_id": {"type": "integer", "index": 14, "name": "interco_expense_account_id", "comment": null}, "interco_income_account_id": {"type": "integer", "index": 15, "name": "interco_income_account_id", "comment": null}, "deferred_expense_account_id": {"type": "integer", "index": 16, "name": "deferred_expense_account_id", "comment": null}, "deferred_revenue_account_id": {"type": "integer", "index": 17, "name": "deferred_revenue_account_id", "comment": null}, "parent_item_id": {"type": "integer", "index": 18, "name": "parent_item_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, "model.netsuite_source.stg_netsuite2__items_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__items_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, "model.netsuite_source.stg_netsuite2__jobs": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__jobs", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "job_id": {"type": "integer", "index": 2, "name": "job_id", "comment": null}, "job_external_id": {"type": "integer", "index": 3, "name": "job_external_id", "comment": null}, "customer_id": {"type": "integer", "index": 4, "name": "customer_id", "comment": null}, "entity_id": {"type": "text", "index": 5, "name": "entity_id", "comment": null}, "billing_address_id": {"type": "integer", "index": 6, "name": "billing_address_id", "comment": null}, "shipping_address_id": {"type": "integer", "index": 7, "name": "shipping_address_id", "comment": null}, "parent_id": {"type": "integer", "index": 8, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__jobs_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, "model.netsuite_source.stg_netsuite2__location_main_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__location_main_address", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 2, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 3, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 4, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 5, "name": "addressee", "comment": null}, "full_address": {"type": "text", "index": 6, "name": "full_address", "comment": null}, "city": {"type": "integer", "index": 7, "name": "city", "comment": null}, "country": {"type": "integer", "index": 8, "name": "country", "comment": null}, "state": {"type": "integer", "index": 9, "name": "state", "comment": null}, "nkey": {"type": "integer", "index": 10, "name": "nkey", "comment": null}, "zipcode": {"type": "integer", "index": 11, "name": "zipcode", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__location_main_address_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, "model.netsuite_source.stg_netsuite2__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__locations", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "location_id": {"type": "integer", "index": 2, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 4, "name": "full_name", "comment": null}, "main_address_id": {"type": "integer", "index": 5, "name": "main_address_id", "comment": null}, "parent_id": {"type": "integer", "index": 6, "name": "parent_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 7, "name": "subsidiary_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__locations_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "subsidiary_id": {"type": "integer", "index": 2, "name": "subsidiary_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 4, "name": "full_name", "comment": null}, "email_address": {"type": "integer", "index": 5, "name": "email_address", "comment": null}, "main_address_id": {"type": "integer", "index": 6, "name": "main_address_id", "comment": null}, "country": {"type": "text", "index": 7, "name": "country", "comment": null}, "state": {"type": "text", "index": 8, "name": "state", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 9, "name": "fiscal_calendar_id", "comment": null}, "parent_id": {"type": "integer", "index": 10, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_deleted": {"type": "boolean", "index": 1, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 2, "name": "_fivetran_synced", "comment": null}, "transaction_id": {"type": "integer", "index": 3, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 4, "name": "transaction_line_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 5, "name": "accounting_book_id", "comment": null}, "account_id": {"type": "integer", "index": 6, "name": "account_id", "comment": null}, "is_posting": {"type": "boolean", "index": 7, "name": "is_posting", "comment": null}, "amount": {"type": "integer", "index": 8, "name": "amount", "comment": null}, "credit_amount": {"type": "integer", "index": 9, "name": "credit_amount", "comment": null}, "debit_amount": {"type": "integer", "index": 10, "name": "debit_amount", "comment": null}, "net_amount": {"type": "integer", "index": 11, "name": "net_amount", "comment": null}, "paid_amount": {"type": "integer", "index": 12, "name": "paid_amount", "comment": null}, "unpaid_amount": {"type": "integer", "index": 13, "name": "unpaid_amount", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "transaction_id": {"type": "integer", "index": 3, "name": "transaction_id", "comment": null}, "transaction_line_number": {"type": "integer", "index": 4, "name": "transaction_line_number", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "entity_id": {"type": "integer", "index": 6, "name": "entity_id", "comment": null}, "item_id": {"type": "integer", "index": 7, "name": "item_id", "comment": null}, "class_id": {"type": "integer", "index": 8, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 9, "name": "location_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 10, "name": "subsidiary_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "is_closed": {"type": "boolean", "index": 12, "name": "is_closed", "comment": null}, "is_billable": {"type": "boolean", "index": 13, "name": "is_billable", "comment": null}, "is_cogs": {"type": "boolean", "index": 14, "name": "is_cogs", "comment": null}, "is_cleared": {"type": "boolean", "index": 15, "name": "is_cleared", "comment": null}, "is_commitment_firm": {"type": "boolean", "index": 16, "name": "is_commitment_firm", "comment": null}, "is_main_line": {"type": "boolean", "index": 17, "name": "is_main_line", "comment": null}, "is_tax_line": {"type": "boolean", "index": 18, "name": "is_tax_line", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transaction_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, "model.netsuite_source.stg_netsuite2__transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "transaction_id": {"type": "integer", "index": 2, "name": "transaction_id", "comment": null}, "transaction_number": {"type": "integer", "index": 3, "name": "transaction_number", "comment": null}, "transaction_type": {"type": "text", "index": 4, "name": "transaction_type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 6, "name": "transaction_date", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "created_at": {"type": "timestamp without time zone", "index": 8, "name": "created_at", "comment": null}, "due_date_at": {"type": "timestamp without time zone", "index": 9, "name": "due_date_at", "comment": null}, "closed_at": {"type": "timestamp without time zone", "index": 10, "name": "closed_at", "comment": null}, "currency_id": {"type": "integer", "index": 11, "name": "currency_id", "comment": null}, "entity_id": {"type": "integer", "index": 12, "name": "entity_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 13, "name": "accounting_period_id", "comment": null}, "is_posting": {"type": "boolean", "index": 14, "name": "is_posting", "comment": null}, "is_intercompany_adjustment": {"type": "boolean", "index": 15, "name": "is_intercompany_adjustment", "comment": null}, "is_reversal": {"type": "boolean", "index": 16, "name": "is_reversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__transactions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendor_categories", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_category_id": {"type": "integer", "index": 1, "name": "vendor_category_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendor_categories_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, "model.netsuite_source.stg_netsuite2__vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendors", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "vendor_id": {"type": "integer", "index": 2, "name": "vendor_id", "comment": null}, "company_name": {"type": "integer", "index": 3, "name": "company_name", "comment": null}, "create_date_at": {"type": "timestamp without time zone", "index": 4, "name": "create_date_at", "comment": null}, "vendor_category_id": {"type": "integer", "index": 5, "name": "vendor_category_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite2__vendors_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, "model.netsuite_source.stg_netsuite__accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_books", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_books_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, "model.netsuite_source.stg_netsuite__accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_periods", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting_at": {"type": "timestamp without time zone", "index": 6, "name": "starting_at", "comment": null}, "ending_at": {"type": "timestamp without time zone", "index": 7, "name": "ending_at", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "is_closed": {"type": "text", "index": 11, "name": "is_closed", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 12, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounting_periods_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, "model.netsuite_source.stg_netsuite__accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "text", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, "model.netsuite_source.stg_netsuite__classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__classes", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, "model.netsuite_source.stg_netsuite__classes_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__classes_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, "model.netsuite_source.stg_netsuite__currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__currencies", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__currencies_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, "model.netsuite_source.stg_netsuite__customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__customers", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "customer_external_id": {"type": "text", "index": 3, "name": "customer_external_id", "comment": null}, "city": {"type": "integer", "index": 4, "name": "city", "comment": null}, "state": {"type": "integer", "index": 5, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 6, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 7, "name": "country", "comment": null}, "date_first_order_at": {"type": "integer", "index": 8, "name": "date_first_order_at", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, "model.netsuite_source.stg_netsuite__customers_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__customers_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, "model.netsuite_source.stg_netsuite__departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__departments", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, "model.netsuite_source.stg_netsuite__departments_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__departments_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, "model.netsuite_source.stg_netsuite__expense_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__expense_accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__expense_accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, "model.netsuite_source.stg_netsuite__income_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__income_accounts", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__income_accounts_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, "model.netsuite_source.stg_netsuite__items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__items", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__items"}, "model.netsuite_source.stg_netsuite__items_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__items_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, "model.netsuite_source.stg_netsuite__locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__locations", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, "model.netsuite_source.stg_netsuite__locations_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__locations_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, "model.netsuite_source.stg_netsuite__subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__subsidiaries", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "name": {"type": "text", "index": 4, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 5, "name": "parent_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 6, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__subsidiaries_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, "model.netsuite_source.stg_netsuite__transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transaction_lines", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transaction_lines_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, "model.netsuite_source.stg_netsuite__transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transactions", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date_at": {"type": "timestamp without time zone", "index": 6, "name": "due_date_at", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__transactions_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, "model.netsuite_source.stg_netsuite__vendor_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendor_types", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendor_types_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, "model.netsuite_source.stg_netsuite__vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendors", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "create_date_at": {"type": "timestamp without time zone", "index": 3, "name": "create_date_at", "comment": null}, "vendor_type_id": {"type": "integer", "index": 4, "name": "vendor_type_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"metadata": {"type": "VIEW", "schema": "netsuite_source_integration_tests_netsuite_source", "name": "stg_netsuite__vendors_tmp", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}}, "sources": {"source.netsuite_source.netsuite2.account": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountsearchdisplayname": {"type": "text", "index": 4, "name": "accountsearchdisplayname", "comment": null}, "accountsearchdisplaynamecopy": {"type": "text", "index": 5, "name": "accountsearchdisplaynamecopy", "comment": null}, "acctnumber": {"type": "integer", "index": 6, "name": "acctnumber", "comment": null}, "accttype": {"type": "text", "index": 7, "name": "accttype", "comment": null}, "billableexpensesacct": {"type": "integer", "index": 8, "name": "billableexpensesacct", "comment": null}, "cashflowrate": {"type": "text", "index": 9, "name": "cashflowrate", "comment": null}, "category1099misc": {"type": "integer", "index": 10, "name": "category1099misc", "comment": null}, "class": {"type": "integer", "index": 11, "name": "class", "comment": null}, "currency": {"type": "integer", "index": 12, "name": "currency", "comment": null}, "custrecord_fam_account_showinfixedasset": {"type": "text", "index": 13, "name": "custrecord_fam_account_showinfixedasset", "comment": null}, "date_deleted": {"type": "integer", "index": 14, "name": "date_deleted", "comment": null}, "deferralacct": {"type": "integer", "index": 15, "name": "deferralacct", "comment": null}, "department": {"type": "integer", "index": 16, "name": "department", "comment": null}, "description": {"type": "integer", "index": 17, "name": "description", "comment": null}, "displaynamewithhierarchy": {"type": "text", "index": 18, "name": "displaynamewithhierarchy", "comment": null}, "eliminate": {"type": "integer", "index": 19, "name": "eliminate", "comment": null}, "externalid": {"type": "text", "index": 20, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 21, "name": "fullname", "comment": null}, "generalrate": {"type": "text", "index": 22, "name": "generalrate", "comment": null}, "includechildren": {"type": "text", "index": 23, "name": "includechildren", "comment": null}, "inventory": {"type": "text", "index": 24, "name": "inventory", "comment": null}, "isinactive": {"type": "text", "index": 25, "name": "isinactive", "comment": null}, "issummary": {"type": "text", "index": 26, "name": "issummary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 27, "name": "lastmodifieddate", "comment": null}, "location": {"type": "integer", "index": 28, "name": "location", "comment": null}, "parent": {"type": "integer", "index": 29, "name": "parent", "comment": null}, "reconcilewithmatching": {"type": "text", "index": 30, "name": "reconcilewithmatching", "comment": null}, "revalue": {"type": "text", "index": 31, "name": "revalue", "comment": null}, "sbankname": {"type": "integer", "index": 32, "name": "sbankname", "comment": null}, "sbankroutingnumber": {"type": "integer", "index": 33, "name": "sbankroutingnumber", "comment": null}, "sspecacct": {"type": "text", "index": 34, "name": "sspecacct", "comment": null}, "subsidiary": {"type": "text", "index": 35, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.account"}, "source.netsuite_source.netsuite2.account_type": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_account_type_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "text", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "balancesheet": {"type": "text", "index": 4, "name": "balancesheet", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "defaultcashflowratetype": {"type": "text", "index": 6, "name": "defaultcashflowratetype", "comment": null}, "defaultgeneralratetype": {"type": "text", "index": 7, "name": "defaultgeneralratetype", "comment": null}, "eliminationalgo": {"type": "text", "index": 8, "name": "eliminationalgo", "comment": null}, "includeinrevaldefault": {"type": "text", "index": 9, "name": "includeinrevaldefault", "comment": null}, "internalid": {"type": "integer", "index": 10, "name": "internalid", "comment": null}, "left": {"type": "text", "index": 11, "name": "left", "comment": null}, "longname": {"type": "text", "index": 12, "name": "longname", "comment": null}, "seqnum": {"type": "integer", "index": 13, "name": "seqnum", "comment": null}, "usercanchangerevaloption": {"type": "text", "index": 14, "name": "usercanchangerevaloption", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.account_type"}, "source.netsuite_source.netsuite2.accounting_book": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "basebook": {"type": "integer", "index": 4, "name": "basebook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "effectiveperiod": {"type": "integer", "index": 6, "name": "effectiveperiod", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "isadjustmentonly": {"type": "text", "index": 8, "name": "isadjustmentonly", "comment": null}, "isconsolidated": {"type": "text", "index": 9, "name": "isconsolidated", "comment": null}, "isprimary": {"type": "text", "index": 10, "name": "isprimary", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 11, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 12, "name": "name", "comment": null}, "subsidiariesstring": {"type": "text", "index": 13, "name": "subsidiariesstring", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_book"}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_book_sub_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingbook": {"type": "integer", "index": 4, "name": "accountingbook", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "status": {"type": "text", "index": 6, "name": "status", "comment": null}, "subsidiary": {"type": "integer", "index": 7, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries"}, "source.netsuite_source.netsuite2.accounting_period": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "alllocked": {"type": "text", "index": 4, "name": "alllocked", "comment": null}, "allownonglchanges": {"type": "text", "index": 5, "name": "allownonglchanges", "comment": null}, "aplocked": {"type": "text", "index": 6, "name": "aplocked", "comment": null}, "arlocked": {"type": "text", "index": 7, "name": "arlocked", "comment": null}, "closed": {"type": "text", "index": 8, "name": "closed", "comment": null}, "closedondate": {"type": "timestamp without time zone", "index": 9, "name": "closedondate", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "enddate": {"type": "timestamp without time zone", "index": 11, "name": "enddate", "comment": null}, "isadjust": {"type": "text", "index": 12, "name": "isadjust", "comment": null}, "isinactive": {"type": "text", "index": 13, "name": "isinactive", "comment": null}, "isposting": {"type": "text", "index": 14, "name": "isposting", "comment": null}, "isquarter": {"type": "text", "index": 15, "name": "isquarter", "comment": null}, "isyear": {"type": "text", "index": 16, "name": "isyear", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 17, "name": "lastmodifieddate", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "periodname": {"type": "text", "index": 19, "name": "periodname", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 20, "name": "startdate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_period"}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_accounting_period_fiscal_cal_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_id": {"type": "text", "index": 1, "name": "_fivetran_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountingperiod": {"type": "integer", "index": 4, "name": "accountingperiod", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 6, "name": "fiscalcalendar", "comment": null}, "parent": {"type": "integer", "index": 7, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"}, "source.netsuite_source.netsuite2.classification": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_classification_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.classification"}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_consolidated_exchange_rate_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "averagerate": {"type": "integer", "index": 4, "name": "averagerate", "comment": null}, "currentrate": {"type": "integer", "index": 5, "name": "currentrate", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 7, "name": "externalid", "comment": null}, "fromcurrency": {"type": "integer", "index": 8, "name": "fromcurrency", "comment": null}, "fromsubsidiary": {"type": "integer", "index": 9, "name": "fromsubsidiary", "comment": null}, "historicalrate": {"type": "integer", "index": 10, "name": "historicalrate", "comment": null}, "postingperiod": {"type": "integer", "index": 11, "name": "postingperiod", "comment": null}, "tocurrency": {"type": "integer", "index": 12, "name": "tocurrency", "comment": null}, "tosubsidiary": {"type": "integer", "index": 13, "name": "tosubsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate"}, "source.netsuite_source.netsuite2.currency": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_currency_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "currencyprecision": {"type": "integer", "index": 4, "name": "currencyprecision", "comment": null}, "date_deleted": {"type": "integer", "index": 5, "name": "date_deleted", "comment": null}, "displaysymbol": {"type": "text", "index": 6, "name": "displaysymbol", "comment": null}, "exchangerate": {"type": "double precision", "index": 7, "name": "exchangerate", "comment": null}, "externalid": {"type": "integer", "index": 8, "name": "externalid", "comment": null}, "fxrateupdatetimezone": {"type": "integer", "index": 9, "name": "fxrateupdatetimezone", "comment": null}, "includeinfxrateupdates": {"type": "text", "index": 10, "name": "includeinfxrateupdates", "comment": null}, "isbasecurrency": {"type": "text", "index": 11, "name": "isbasecurrency", "comment": null}, "isinactive": {"type": "text", "index": 12, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 13, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 14, "name": "name", "comment": null}, "overridecurrencyformat": {"type": "text", "index": 15, "name": "overridecurrencyformat", "comment": null}, "symbol": {"type": "text", "index": 16, "name": "symbol", "comment": null}, "symbolplacement": {"type": "integer", "index": 17, "name": "symbolplacement", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.currency"}, "source.netsuite_source.netsuite2.customer": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_customer_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "alcoholrecipienttype": {"type": "integer", "index": 5, "name": "alcoholrecipienttype", "comment": null}, "altemail": {"type": "integer", "index": 6, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 7, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 8, "name": "altphone", "comment": null}, "assignedwebsite": {"type": "integer", "index": 9, "name": "assignedwebsite", "comment": null}, "balancesearch": {"type": "integer", "index": 10, "name": "balancesearch", "comment": null}, "billingratecard": {"type": "integer", "index": 11, "name": "billingratecard", "comment": null}, "billingschedule": {"type": "integer", "index": 12, "name": "billingschedule", "comment": null}, "billingtransactiontype": {"type": "integer", "index": 13, "name": "billingtransactiontype", "comment": null}, "billpay": {"type": "text", "index": 14, "name": "billpay", "comment": null}, "buyingreason": {"type": "integer", "index": 15, "name": "buyingreason", "comment": null}, "buyingtimeframe": {"type": "integer", "index": 16, "name": "buyingtimeframe", "comment": null}, "campaignevent": {"type": "integer", "index": 17, "name": "campaignevent", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "clickstream": {"type": "text", "index": 19, "name": "clickstream", "comment": null}, "comments": {"type": "integer", "index": 20, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 21, "name": "companyname", "comment": null}, "consolbalancesearch": {"type": "integer", "index": 22, "name": "consolbalancesearch", "comment": null}, "consoldaysoverduesearch": {"type": "integer", "index": 23, "name": "consoldaysoverduesearch", "comment": null}, "consoloverduebalancesearch": {"type": "integer", "index": 24, "name": "consoloverduebalancesearch", "comment": null}, "consolunbilledorderssearch": {"type": "integer", "index": 25, "name": "consolunbilledorderssearch", "comment": null}, "contact": {"type": "integer", "index": 26, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 27, "name": "contactlist", "comment": null}, "creditholdoverride": {"type": "text", "index": 28, "name": "creditholdoverride", "comment": null}, "creditlimit": {"type": "integer", "index": 29, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 30, "name": "currency", "comment": null}, "custentity1": {"type": "integer", "index": 31, "name": "custentity1", "comment": null}, "custentity10": {"type": "integer", "index": 32, "name": "custentity10", "comment": null}, "custentity12": {"type": "integer", "index": 33, "name": "custentity12", "comment": null}, "custentity13": {"type": "integer", "index": 34, "name": "custentity13", "comment": null}, "custentity14": {"type": "integer", "index": 35, "name": "custentity14", "comment": null}, "custentity15": {"type": "integer", "index": 36, "name": "custentity15", "comment": null}, "custentity16": {"type": "integer", "index": 37, "name": "custentity16", "comment": null}, "custentity18": {"type": "text", "index": 38, "name": "custentity18", "comment": null}, "custentity21": {"type": "integer", "index": 39, "name": "custentity21", "comment": null}, "custentity4": {"type": "integer", "index": 40, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 41, "name": "custentity5", "comment": null}, "custentity6": {"type": "integer", "index": 42, "name": "custentity6", "comment": null}, "custentity7": {"type": "integer", "index": 43, "name": "custentity7", "comment": null}, "custentity8": {"type": "integer", "index": 44, "name": "custentity8", "comment": null}, "custentity9": {"type": "integer", "index": 45, "name": "custentity9", "comment": null}, "custentity_2663_customer_refund": {"type": "integer", "index": 46, "name": "custentity_2663_customer_refund", "comment": null}, "custentity_2663_direct_debit": {"type": "integer", "index": 47, "name": "custentity_2663_direct_debit", "comment": null}, "custentity_cust_priority": {"type": "integer", "index": 48, "name": "custentity_cust_priority", "comment": null}, "custentity_fmt_cur_sales_order": {"type": "integer", "index": 49, "name": "custentity_fmt_cur_sales_order", "comment": null}, "custentity_fmt_cust_credit_on_hold": {"type": "text", "index": 50, "name": "custentity_fmt_cust_credit_on_hold", "comment": null}, "custentity_fmt_customer_credit_on_hold": {"type": "text", "index": 51, "name": "custentity_fmt_customer_credit_on_hold", "comment": null}, "custentity_lead_category": {"type": "integer", "index": 52, "name": "custentity_lead_category", "comment": null}, "custentity_ppob": {"type": "integer", "index": 53, "name": "custentity_ppob", "comment": null}, "custentity_supervisor": {"type": "integer", "index": 54, "name": "custentity_supervisor", "comment": null}, "date_deleted": {"type": "integer", "index": 55, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 56, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 57, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 58, "name": "defaultbillingaddress", "comment": null}, "defaultorderpriority": {"type": "integer", "index": 59, "name": "defaultorderpriority", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 60, "name": "defaultshippingaddress", "comment": null}, "duplicate": {"type": "text", "index": 61, "name": "duplicate", "comment": null}, "email": {"type": "text", "index": 62, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 63, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 64, "name": "emailtransactions", "comment": null}, "enddate": {"type": "integer", "index": 65, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 66, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 67, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 68, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 69, "name": "entitytitle", "comment": null}, "estimatedbudget": {"type": "integer", "index": 70, "name": "estimatedbudget", "comment": null}, "externalid": {"type": "integer", "index": 71, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 72, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 73, "name": "faxtransactions", "comment": null}, "firstname": {"type": "text", "index": 74, "name": "firstname", "comment": null}, "firstorderdate": {"type": "integer", "index": 75, "name": "firstorderdate", "comment": null}, "firstsaledate": {"type": "integer", "index": 76, "name": "firstsaledate", "comment": null}, "firstvisit": {"type": "timestamp without time zone", "index": 77, "name": "firstvisit", "comment": null}, "giveaccess": {"type": "text", "index": 78, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 79, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 80, "name": "homephone", "comment": null}, "isbudgetapproved": {"type": "text", "index": 81, "name": "isbudgetapproved", "comment": null}, "isinactive": {"type": "text", "index": 82, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 83, "name": "isperson", "comment": null}, "keywords": {"type": "integer", "index": 84, "name": "keywords", "comment": null}, "language": {"type": "text", "index": 85, "name": "language", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 86, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "text", "index": 87, "name": "lastname", "comment": null}, "lastorderdate": {"type": "integer", "index": 88, "name": "lastorderdate", "comment": null}, "lastpagevisited": {"type": "integer", "index": 89, "name": "lastpagevisited", "comment": null}, "lastsaledate": {"type": "integer", "index": 90, "name": "lastsaledate", "comment": null}, "lastvisit": {"type": "timestamp without time zone", "index": 91, "name": "lastvisit", "comment": null}, "leadsource": {"type": "integer", "index": 92, "name": "leadsource", "comment": null}, "middlename": {"type": "integer", "index": 93, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 94, "name": "mobilephone", "comment": null}, "negativenumberformat": {"type": "integer", "index": 95, "name": "negativenumberformat", "comment": null}, "numberformat": {"type": "integer", "index": 96, "name": "numberformat", "comment": null}, "oncredithold": {"type": "text", "index": 97, "name": "oncredithold", "comment": null}, "overduebalancesearch": {"type": "integer", "index": 98, "name": "overduebalancesearch", "comment": null}, "parent": {"type": "integer", "index": 99, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 100, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 101, "name": "phone", "comment": null}, "prefccprocessor": {"type": "integer", "index": 102, "name": "prefccprocessor", "comment": null}, "pricelevel": {"type": "integer", "index": 103, "name": "pricelevel", "comment": null}, "printoncheckas": {"type": "integer", "index": 104, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 105, "name": "printtransactions", "comment": null}, "probability": {"type": "integer", "index": 106, "name": "probability", "comment": null}, "receivablesaccount": {"type": "integer", "index": 107, "name": "receivablesaccount", "comment": null}, "referrer": {"type": "integer", "index": 108, "name": "referrer", "comment": null}, "reminderdays": {"type": "integer", "index": 109, "name": "reminderdays", "comment": null}, "resalenumber": {"type": "integer", "index": 110, "name": "resalenumber", "comment": null}, "salesreadiness": {"type": "integer", "index": 111, "name": "salesreadiness", "comment": null}, "salesrep": {"type": "integer", "index": 112, "name": "salesrep", "comment": null}, "salutation": {"type": "integer", "index": 113, "name": "salutation", "comment": null}, "searchstage": {"type": "text", "index": 114, "name": "searchstage", "comment": null}, "shipcomplete": {"type": "text", "index": 115, "name": "shipcomplete", "comment": null}, "shippingcarrier": {"type": "text", "index": 116, "name": "shippingcarrier", "comment": null}, "shippingitem": {"type": "integer", "index": 117, "name": "shippingitem", "comment": null}, "sourcewebsite": {"type": "integer", "index": 118, "name": "sourcewebsite", "comment": null}, "startdate": {"type": "integer", "index": 119, "name": "startdate", "comment": null}, "terms": {"type": "integer", "index": 120, "name": "terms", "comment": null}, "territory": {"type": "integer", "index": 121, "name": "territory", "comment": null}, "thirdpartyacct": {"type": "integer", "index": 122, "name": "thirdpartyacct", "comment": null}, "thirdpartycarrier": {"type": "integer", "index": 123, "name": "thirdpartycarrier", "comment": null}, "thirdpartycountry": {"type": "integer", "index": 124, "name": "thirdpartycountry", "comment": null}, "thirdpartyzipcode": {"type": "integer", "index": 125, "name": "thirdpartyzipcode", "comment": null}, "title": {"type": "integer", "index": 126, "name": "title", "comment": null}, "unbilledorderssearch": {"type": "integer", "index": 127, "name": "unbilledorderssearch", "comment": null}, "url": {"type": "integer", "index": 128, "name": "url", "comment": null}, "visits": {"type": "integer", "index": 129, "name": "visits", "comment": null}, "weblead": {"type": "text", "index": 130, "name": "weblead", "comment": null}, "dateclosed": {"type": "timestamp without time zone", "index": 131, "name": "dateclosed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.customer"}, "source.netsuite_source.netsuite2.department": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_department_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 6, "name": "fullname", "comment": null}, "includechildren": {"type": "text", "index": 7, "name": "includechildren", "comment": null}, "isinactive": {"type": "text", "index": 8, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 9, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 10, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 11, "name": "parent", "comment": null}, "subsidiary": {"type": "text", "index": 12, "name": "subsidiary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.department"}, "source.netsuite_source.netsuite2.entity": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entities_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "altemail": {"type": "integer", "index": 4, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 5, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 6, "name": "altphone", "comment": null}, "comments": {"type": "integer", "index": 7, "name": "comments", "comment": null}, "contact": {"type": "integer", "index": 8, "name": "contact", "comment": null}, "customer": {"type": "integer", "index": 9, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 10, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 11, "name": "datecreated", "comment": null}, "email": {"type": "integer", "index": 12, "name": "email", "comment": null}, "employee": {"type": "integer", "index": 13, "name": "employee", "comment": null}, "entityid": {"type": "text", "index": 14, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 15, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 16, "name": "entitytitle", "comment": null}, "externalid": {"type": "integer", "index": 17, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 18, "name": "fax", "comment": null}, "firstname": {"type": "integer", "index": 19, "name": "firstname", "comment": null}, "genericresource": {"type": "integer", "index": 20, "name": "genericresource", "comment": null}, "homephone": {"type": "integer", "index": 21, "name": "homephone", "comment": null}, "isinactive": {"type": "text", "index": 22, "name": "isinactive", "comment": null}, "isperson": {"type": "text", "index": 23, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 24, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 25, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 26, "name": "lastname", "comment": null}, "middlename": {"type": "integer", "index": 27, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 28, "name": "mobilephone", "comment": null}, "othername": {"type": "integer", "index": 29, "name": "othername", "comment": null}, "parent": {"type": "integer", "index": 30, "name": "parent", "comment": null}, "partner": {"type": "integer", "index": 31, "name": "partner", "comment": null}, "phone": {"type": "integer", "index": 32, "name": "phone", "comment": null}, "project": {"type": "integer", "index": 33, "name": "project", "comment": null}, "projecttemplate": {"type": "integer", "index": 34, "name": "projecttemplate", "comment": null}, "salutation": {"type": "integer", "index": 35, "name": "salutation", "comment": null}, "title": {"type": "integer", "index": 36, "name": "title", "comment": null}, "toplevelparent": {"type": "integer", "index": 37, "name": "toplevelparent", "comment": null}, "type": {"type": "text", "index": 38, "name": "type", "comment": null}, "vendor": {"type": "integer", "index": 39, "name": "vendor", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.entity"}, "source.netsuite_source.netsuite2.entity_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_entity_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "text", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "text", "index": 11, "name": "city", "comment": null}, "country": {"type": "text", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "text", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.entity_address"}, "source.netsuite_source.netsuite2.item": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_item_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "fullname": {"type": "text", "index": 3, "name": "fullname", "comment": null}, "itemtype": {"type": "text", "index": 4, "name": "itemtype", "comment": null}, "description": {"type": "text", "index": 5, "name": "description", "comment": null}, "department": {"type": "integer", "index": 6, "name": "department", "comment": null}, "class": {"type": "integer", "index": 7, "name": "class", "comment": null}, "location": {"type": "integer", "index": 8, "name": "location", "comment": null}, "subsidiary": {"type": "integer", "index": 9, "name": "subsidiary", "comment": null}, "assetaccount": {"type": "integer", "index": 10, "name": "assetaccount", "comment": null}, "expenseaccount": {"type": "integer", "index": 11, "name": "expenseaccount", "comment": null}, "gainlossaccount": {"type": "integer", "index": 12, "name": "gainlossaccount", "comment": null}, "incomeaccount": {"type": "integer", "index": 13, "name": "incomeaccount", "comment": null}, "deferralaccount": {"type": "integer", "index": 14, "name": "deferralaccount", "comment": null}, "parent": {"type": "integer", "index": 15, "name": "parent", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.item"}, "source.netsuite_source.netsuite2.job": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_job_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "actualtime": {"type": "integer", "index": 5, "name": "actualtime", "comment": null}, "allowallresourcesfortasks": {"type": "text", "index": 6, "name": "allowallresourcesfortasks", "comment": null}, "allowexpenses": {"type": "text", "index": 7, "name": "allowexpenses", "comment": null}, "allowtime": {"type": "text", "index": 8, "name": "allowtime", "comment": null}, "alternatecontact": {"type": "integer", "index": 9, "name": "alternatecontact", "comment": null}, "altname": {"type": "text", "index": 10, "name": "altname", "comment": null}, "billingschedule": {"type": "integer", "index": 11, "name": "billingschedule", "comment": null}, "calculatedenddate": {"type": "integer", "index": 12, "name": "calculatedenddate", "comment": null}, "calculatedenddatebaseline": {"type": "integer", "index": 13, "name": "calculatedenddatebaseline", "comment": null}, "category": {"type": "integer", "index": 14, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 15, "name": "comments", "comment": null}, "companyname": {"type": "text", "index": 16, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 17, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 18, "name": "contactlist", "comment": null}, "currency": {"type": "integer", "index": 19, "name": "currency", "comment": null}, "currencyprecision": {"type": "integer", "index": 20, "name": "currencyprecision", "comment": null}, "custentity1": {"type": "integer", "index": 21, "name": "custentity1", "comment": null}, "custentity4": {"type": "integer", "index": 22, "name": "custentity4", "comment": null}, "custentity5": {"type": "integer", "index": 23, "name": "custentity5", "comment": null}, "customer": {"type": "integer", "index": 24, "name": "customer", "comment": null}, "date_deleted": {"type": "integer", "index": 25, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 26, "name": "datecreated", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 27, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 28, "name": "defaultshippingaddress", "comment": null}, "enddate": {"type": "integer", "index": 29, "name": "enddate", "comment": null}, "entityid": {"type": "text", "index": 30, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 31, "name": "entitynumber", "comment": null}, "entitystatus": {"type": "integer", "index": 32, "name": "entitystatus", "comment": null}, "entitytitle": {"type": "text", "index": 33, "name": "entitytitle", "comment": null}, "estimatedcost": {"type": "integer", "index": 34, "name": "estimatedcost", "comment": null}, "estimatedgrossprofit": {"type": "integer", "index": 35, "name": "estimatedgrossprofit", "comment": null}, "estimatedgrossprofitpercent": {"type": "integer", "index": 36, "name": "estimatedgrossprofitpercent", "comment": null}, "estimatedlaborcost": {"type": "integer", "index": 37, "name": "estimatedlaborcost", "comment": null}, "estimatedlaborcostbaseline": {"type": "integer", "index": 38, "name": "estimatedlaborcostbaseline", "comment": null}, "estimatedlaborrevenue": {"type": "integer", "index": 39, "name": "estimatedlaborrevenue", "comment": null}, "estimatedrevenue": {"type": "integer", "index": 40, "name": "estimatedrevenue", "comment": null}, "estimatedtime": {"type": "integer", "index": 41, "name": "estimatedtime", "comment": null}, "estimatedtimeoverride": {"type": "integer", "index": 42, "name": "estimatedtimeoverride", "comment": null}, "estimatedtimeoverridebaseline": {"type": "integer", "index": 43, "name": "estimatedtimeoverridebaseline", "comment": null}, "externalid": {"type": "integer", "index": 44, "name": "externalid", "comment": null}, "files": {"type": "integer", "index": 45, "name": "files", "comment": null}, "forecastchargerunondemand": {"type": "integer", "index": 46, "name": "forecastchargerunondemand", "comment": null}, "fxrate": {"type": "integer", "index": 47, "name": "fxrate", "comment": null}, "includecrmtasksintotals": {"type": "text", "index": 48, "name": "includecrmtasksintotals", "comment": null}, "isexempttime": {"type": "text", "index": 49, "name": "isexempttime", "comment": null}, "isinactive": {"type": "text", "index": 50, "name": "isinactive", "comment": null}, "isproductivetime": {"type": "text", "index": 51, "name": "isproductivetime", "comment": null}, "isutilizedtime": {"type": "text", "index": 52, "name": "isutilizedtime", "comment": null}, "jobbillingtype": {"type": "integer", "index": 53, "name": "jobbillingtype", "comment": null}, "jobitem": {"type": "integer", "index": 54, "name": "jobitem", "comment": null}, "jobprice": {"type": "integer", "index": 55, "name": "jobprice", "comment": null}, "jobtype": {"type": "integer", "index": 56, "name": "jobtype", "comment": null}, "lastbaselinedate": {"type": "integer", "index": 57, "name": "lastbaselinedate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 58, "name": "lastmodifieddate", "comment": null}, "limittimetoassignees": {"type": "text", "index": 59, "name": "limittimetoassignees", "comment": null}, "materializetime": {"type": "text", "index": 60, "name": "materializetime", "comment": null}, "parent": {"type": "integer", "index": 61, "name": "parent", "comment": null}, "percentcomplete": {"type": "integer", "index": 62, "name": "percentcomplete", "comment": null}, "percenttimecomplete": {"type": "integer", "index": 63, "name": "percenttimecomplete", "comment": null}, "primarycontact": {"type": "integer", "index": 64, "name": "primarycontact", "comment": null}, "projectedenddate": {"type": "timestamp without time zone", "index": 65, "name": "projectedenddate", "comment": null}, "projectedenddatebaseline": {"type": "integer", "index": 66, "name": "projectedenddatebaseline", "comment": null}, "projectmanager": {"type": "integer", "index": 67, "name": "projectmanager", "comment": null}, "startdate": {"type": "timestamp without time zone", "index": 68, "name": "startdate", "comment": null}, "startdatebaseline": {"type": "integer", "index": 69, "name": "startdatebaseline", "comment": null}, "timeapproval": {"type": "integer", "index": 70, "name": "timeapproval", "comment": null}, "timeremaining": {"type": "integer", "index": 71, "name": "timeremaining", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.job"}, "source.netsuite_source.netsuite2.location": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "defaultallocationpriority": {"type": "integer", "index": 5, "name": "defaultallocationpriority", "comment": null}, "externalid": {"type": "integer", "index": 6, "name": "externalid", "comment": null}, "fullname": {"type": "text", "index": 7, "name": "fullname", "comment": null}, "includeinsupplyplanning": {"type": "text", "index": 8, "name": "includeinsupplyplanning", "comment": null}, "isinactive": {"type": "text", "index": 9, "name": "isinactive", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 10, "name": "lastmodifieddate", "comment": null}, "latitude": {"type": "integer", "index": 11, "name": "latitude", "comment": null}, "locationtype": {"type": "integer", "index": 12, "name": "locationtype", "comment": null}, "longitude": {"type": "integer", "index": 13, "name": "longitude", "comment": null}, "mainaddress": {"type": "integer", "index": 14, "name": "mainaddress", "comment": null}, "makeinventoryavailable": {"type": "text", "index": 15, "name": "makeinventoryavailable", "comment": null}, "makeinventoryavailablestore": {"type": "text", "index": 16, "name": "makeinventoryavailablestore", "comment": null}, "name": {"type": "text", "index": 17, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 18, "name": "parent", "comment": null}, "returnaddress": {"type": "integer", "index": 19, "name": "returnaddress", "comment": null}, "subsidiary": {"type": "integer", "index": 20, "name": "subsidiary", "comment": null}, "tranprefix": {"type": "integer", "index": 21, "name": "tranprefix", "comment": null}, "usebins": {"type": "text", "index": 22, "name": "usebins", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.location"}, "source.netsuite_source.netsuite2.location_main_address": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_location_main_address_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"nkey": {"type": "integer", "index": 1, "name": "nkey", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "addr1": {"type": "integer", "index": 4, "name": "addr1", "comment": null}, "addr2": {"type": "integer", "index": 5, "name": "addr2", "comment": null}, "addr3": {"type": "integer", "index": 6, "name": "addr3", "comment": null}, "addressee": {"type": "integer", "index": 7, "name": "addressee", "comment": null}, "addrphone": {"type": "integer", "index": 8, "name": "addrphone", "comment": null}, "addrtext": {"type": "text", "index": 9, "name": "addrtext", "comment": null}, "attention": {"type": "integer", "index": 10, "name": "attention", "comment": null}, "city": {"type": "integer", "index": 11, "name": "city", "comment": null}, "country": {"type": "integer", "index": 12, "name": "country", "comment": null}, "date_deleted": {"type": "integer", "index": 13, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "integer", "index": 14, "name": "dropdownstate", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 15, "name": "lastmodifieddate", "comment": null}, "override": {"type": "text", "index": 16, "name": "override", "comment": null}, "recordowner": {"type": "integer", "index": 17, "name": "recordowner", "comment": null}, "state": {"type": "integer", "index": 18, "name": "state", "comment": null}, "zip": {"type": "integer", "index": 19, "name": "zip", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.location_main_address"}, "source.netsuite_source.netsuite2.subsidiary": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_subsidiary_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "country": {"type": "text", "index": 4, "name": "country", "comment": null}, "currency": {"type": "integer", "index": 5, "name": "currency", "comment": null}, "date_deleted": {"type": "integer", "index": 6, "name": "date_deleted", "comment": null}, "dropdownstate": {"type": "text", "index": 7, "name": "dropdownstate", "comment": null}, "edition": {"type": "text", "index": 8, "name": "edition", "comment": null}, "email": {"type": "integer", "index": 9, "name": "email", "comment": null}, "externalid": {"type": "integer", "index": 10, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 11, "name": "fax", "comment": null}, "federalidnumber": {"type": "integer", "index": 12, "name": "federalidnumber", "comment": null}, "fiscalcalendar": {"type": "integer", "index": 13, "name": "fiscalcalendar", "comment": null}, "fullname": {"type": "text", "index": 14, "name": "fullname", "comment": null}, "iselimination": {"type": "text", "index": 15, "name": "iselimination", "comment": null}, "isinactive": {"type": "text", "index": 16, "name": "isinactive", "comment": null}, "languagelocale": {"type": "text", "index": 17, "name": "languagelocale", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 18, "name": "lastmodifieddate", "comment": null}, "legalname": {"type": "integer", "index": 19, "name": "legalname", "comment": null}, "mainaddress": {"type": "integer", "index": 20, "name": "mainaddress", "comment": null}, "name": {"type": "text", "index": 21, "name": "name", "comment": null}, "parent": {"type": "integer", "index": 22, "name": "parent", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 23, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 24, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 25, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 26, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 27, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 28, "name": "receiptquantitydiff", "comment": null}, "returnaddress": {"type": "integer", "index": 29, "name": "returnaddress", "comment": null}, "shippingaddress": {"type": "integer", "index": 30, "name": "shippingaddress", "comment": null}, "showsubsidiaryname": {"type": "text", "index": 31, "name": "showsubsidiaryname", "comment": null}, "ssnortin": {"type": "integer", "index": 32, "name": "ssnortin", "comment": null}, "state": {"type": "text", "index": 33, "name": "state", "comment": null}, "state1taxnumber": {"type": "integer", "index": 34, "name": "state1taxnumber", "comment": null}, "tranprefix": {"type": "integer", "index": 35, "name": "tranprefix", "comment": null}, "url": {"type": "integer", "index": 36, "name": "url", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.subsidiary"}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_tran_acct_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accountingbook": {"type": "integer", "index": 1, "name": "accountingbook", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "transactionline": {"type": "integer", "index": 3, "name": "transactionline", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 5, "name": "_fivetran_synced", "comment": null}, "account": {"type": "integer", "index": 6, "name": "account", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "amountpaid": {"type": "integer", "index": 8, "name": "amountpaid", "comment": null}, "amountunpaid": {"type": "integer", "index": 9, "name": "amountunpaid", "comment": null}, "credit": {"type": "integer", "index": 10, "name": "credit", "comment": null}, "date_deleted": {"type": "integer", "index": 11, "name": "date_deleted", "comment": null}, "debit": {"type": "integer", "index": 12, "name": "debit", "comment": null}, "exchangerate": {"type": "integer", "index": 13, "name": "exchangerate", "comment": null}, "netamount": {"type": "integer", "index": 14, "name": "netamount", "comment": null}, "overheadparentitem": {"type": "integer", "index": 15, "name": "overheadparentitem", "comment": null}, "paymentamountunused": {"type": "integer", "index": 16, "name": "paymentamountunused", "comment": null}, "paymentamountused": {"type": "integer", "index": 17, "name": "paymentamountused", "comment": null}, "posting": {"type": "text", "index": 18, "name": "posting", "comment": null}, "amountlinked": {"type": "integer", "index": 19, "name": "amountlinked", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line"}, "source.netsuite_source.netsuite2.transaction": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"_fivetran_synced": {"type": "timestamp without time zone", "index": 1, "name": "_fivetran_synced", "comment": null}, "id": {"type": "integer", "index": 2, "name": "id", "comment": null}, "transactionnumber": {"type": "integer", "index": 3, "name": "transactionnumber", "comment": null}, "type": {"type": "text", "index": 4, "name": "type", "comment": null}, "memo": {"type": "text", "index": 5, "name": "memo", "comment": null}, "trandate": {"type": "timestamp without time zone", "index": 6, "name": "trandate", "comment": null}, "status": {"type": "text", "index": 7, "name": "status", "comment": null}, "createddate": {"type": "timestamp without time zone", "index": 8, "name": "createddate", "comment": null}, "duedate": {"type": "timestamp without time zone", "index": 9, "name": "duedate", "comment": null}, "closedate": {"type": "timestamp without time zone", "index": 10, "name": "closedate", "comment": null}, "currency": {"type": "integer", "index": 11, "name": "currency", "comment": null}, "entity": {"type": "integer", "index": 12, "name": "entity", "comment": null}, "postingperiod": {"type": "integer", "index": 13, "name": "postingperiod", "comment": null}, "posting": {"type": "text", "index": 14, "name": "posting", "comment": null}, "isreversal": {"type": "text", "index": 15, "name": "isreversal", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction"}, "source.netsuite_source.netsuite2.transaction_line": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_transaction_line_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "transaction": {"type": "integer", "index": 2, "name": "transaction", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 4, "name": "_fivetran_synced", "comment": null}, "actualshipdate": {"type": "integer", "index": 5, "name": "actualshipdate", "comment": null}, "amortizationenddate": {"type": "integer", "index": 6, "name": "amortizationenddate", "comment": null}, "amortizationresidual": {"type": "integer", "index": 7, "name": "amortizationresidual", "comment": null}, "amortizationsched": {"type": "integer", "index": 8, "name": "amortizationsched", "comment": null}, "amortizstartdate": {"type": "integer", "index": 9, "name": "amortizstartdate", "comment": null}, "amountlinked": {"type": "integer", "index": 10, "name": "amountlinked", "comment": null}, "assemblycomponent": {"type": "text", "index": 11, "name": "assemblycomponent", "comment": null}, "billeddate": {"type": "integer", "index": 12, "name": "billeddate", "comment": null}, "billingschedule": {"type": "integer", "index": 13, "name": "billingschedule", "comment": null}, "billvariancestatus": {"type": "integer", "index": 14, "name": "billvariancestatus", "comment": null}, "blandedcost": {"type": "text", "index": 15, "name": "blandedcost", "comment": null}, "bomquantity": {"type": "integer", "index": 16, "name": "bomquantity", "comment": null}, "buildvariance": {"type": "integer", "index": 17, "name": "buildvariance", "comment": null}, "category": {"type": "integer", "index": 18, "name": "category", "comment": null}, "chargetype": {"type": "integer", "index": 19, "name": "chargetype", "comment": null}, "class": {"type": "integer", "index": 20, "name": "class", "comment": null}, "cleared": {"type": "text", "index": 21, "name": "cleared", "comment": null}, "cleareddate": {"type": "integer", "index": 22, "name": "cleareddate", "comment": null}, "commitinventory": {"type": "integer", "index": 23, "name": "commitinventory", "comment": null}, "commitmentfirm": {"type": "text", "index": 24, "name": "commitmentfirm", "comment": null}, "componentyield": {"type": "integer", "index": 25, "name": "componentyield", "comment": null}, "costestimate": {"type": "integer", "index": 26, "name": "costestimate", "comment": null}, "costestimaterate": {"type": "integer", "index": 27, "name": "costestimaterate", "comment": null}, "costestimatetype": {"type": "integer", "index": 28, "name": "costestimatetype", "comment": null}, "createdfrom": {"type": "integer", "index": 29, "name": "createdfrom", "comment": null}, "createdpo": {"type": "integer", "index": 30, "name": "createdpo", "comment": null}, "creditforeignamount": {"type": "integer", "index": 31, "name": "creditforeignamount", "comment": null}, "custcol1": {"type": "integer", "index": 32, "name": "custcol1", "comment": null}, "custcol3": {"type": "integer", "index": 33, "name": "custcol3", "comment": null}, "custcol4": {"type": "integer", "index": 34, "name": "custcol4", "comment": null}, "custcol5": {"type": "integer", "index": 35, "name": "custcol5", "comment": null}, "custcol6": {"type": "integer", "index": 36, "name": "custcol6", "comment": null}, "custcol_far_trn_relatedasset": {"type": "integer", "index": 37, "name": "custcol_far_trn_relatedasset", "comment": null}, "custcol_gw_inv": {"type": "integer", "index": 38, "name": "custcol_gw_inv", "comment": null}, "custcol_hand": {"type": "integer", "index": 39, "name": "custcol_hand", "comment": null}, "custcol_helmetsize": {"type": "integer", "index": 40, "name": "custcol_helmetsize", "comment": null}, "custcol_pfc_configuration": {"type": "integer", "index": 41, "name": "custcol_pfc_configuration", "comment": null}, "custcol_pfc_pfconfigurator": {"type": "integer", "index": 42, "name": "custcol_pfc_pfconfigurator", "comment": null}, "custcol_pfc_wo": {"type": "integer", "index": 43, "name": "custcol_pfc_wo", "comment": null}, "custcol_ropetype": {"type": "integer", "index": 44, "name": "custcol_ropetype", "comment": null}, "date_deleted": {"type": "integer", "index": 45, "name": "date_deleted", "comment": null}, "debitforeignamount": {"type": "integer", "index": 46, "name": "debitforeignamount", "comment": null}, "department": {"type": "integer", "index": 47, "name": "department", "comment": null}, "documentnumber": {"type": "integer", "index": 48, "name": "documentnumber", "comment": null}, "donotdisplayline": {"type": "text", "index": 49, "name": "donotdisplayline", "comment": null}, "dropship": {"type": "text", "index": 50, "name": "dropship", "comment": null}, "entity": {"type": "integer", "index": 51, "name": "entity", "comment": null}, "estgrossprofit": {"type": "integer", "index": 52, "name": "estgrossprofit", "comment": null}, "estgrossprofitpercent": {"type": "integer", "index": 53, "name": "estgrossprofitpercent", "comment": null}, "estimatedamount": {"type": "integer", "index": 54, "name": "estimatedamount", "comment": null}, "expectedreceiptdate": {"type": "integer", "index": 55, "name": "expectedreceiptdate", "comment": null}, "expectedshipdate": {"type": "timestamp without time zone", "index": 56, "name": "expectedshipdate", "comment": null}, "expenseaccount": {"type": "integer", "index": 57, "name": "expenseaccount", "comment": null}, "foreignamount": {"type": "integer", "index": 58, "name": "foreignamount", "comment": null}, "foreignamountpaid": {"type": "integer", "index": 59, "name": "foreignamountpaid", "comment": null}, "foreignamountunpaid": {"type": "integer", "index": 60, "name": "foreignamountunpaid", "comment": null}, "foreignpaymentamountunused": {"type": "integer", "index": 61, "name": "foreignpaymentamountunused", "comment": null}, "foreignpaymentamountused": {"type": "integer", "index": 62, "name": "foreignpaymentamountused", "comment": null}, "fulfillable": {"type": "text", "index": 63, "name": "fulfillable", "comment": null}, "fxamountlinked": {"type": "integer", "index": 64, "name": "fxamountlinked", "comment": null}, "hasfulfillableitems": {"type": "text", "index": 65, "name": "hasfulfillableitems", "comment": null}, "inventoryreportinglocation": {"type": "integer", "index": 66, "name": "inventoryreportinglocation", "comment": null}, "isbillable": {"type": "text", "index": 67, "name": "isbillable", "comment": null}, "isclosed": {"type": "text", "index": 68, "name": "isclosed", "comment": null}, "iscogs": {"type": "text", "index": 69, "name": "iscogs", "comment": null}, "isfullyshipped": {"type": "text", "index": 70, "name": "isfullyshipped", "comment": null}, "isfxvariance": {"type": "text", "index": 71, "name": "isfxvariance", "comment": null}, "isinventoryaffecting": {"type": "text", "index": 72, "name": "isinventoryaffecting", "comment": null}, "isrevrectransaction": {"type": "text", "index": 73, "name": "isrevrectransaction", "comment": null}, "isscrap": {"type": "text", "index": 74, "name": "isscrap", "comment": null}, "item": {"type": "integer", "index": 75, "name": "item", "comment": null}, "itemsource": {"type": "text", "index": 76, "name": "itemsource", "comment": null}, "itemtype": {"type": "text", "index": 77, "name": "itemtype", "comment": null}, "kitcomponent": {"type": "text", "index": 78, "name": "kitcomponent", "comment": null}, "kitmemberof": {"type": "integer", "index": 79, "name": "kitmemberof", "comment": null}, "landedcostcategory": {"type": "integer", "index": 80, "name": "landedcostcategory", "comment": null}, "landedcostperline": {"type": "text", "index": 81, "name": "landedcostperline", "comment": null}, "linelastmodifieddate": {"type": "timestamp without time zone", "index": 82, "name": "linelastmodifieddate", "comment": null}, "linesequencenumber": {"type": "integer", "index": 83, "name": "linesequencenumber", "comment": null}, "location": {"type": "integer", "index": 84, "name": "location", "comment": null}, "mainline": {"type": "text", "index": 85, "name": "mainline", "comment": null}, "matchbilltoreceipt": {"type": "text", "index": 86, "name": "matchbilltoreceipt", "comment": null}, "memo": {"type": "text", "index": 87, "name": "memo", "comment": null}, "netamount": {"type": "integer", "index": 88, "name": "netamount", "comment": null}, "oldcommitmentfirm": {"type": "text", "index": 89, "name": "oldcommitmentfirm", "comment": null}, "operationdisplaytext": {"type": "integer", "index": 90, "name": "operationdisplaytext", "comment": null}, "orderpriority": {"type": "integer", "index": 91, "name": "orderpriority", "comment": null}, "paymentmethod": {"type": "integer", "index": 92, "name": "paymentmethod", "comment": null}, "price": {"type": "integer", "index": 93, "name": "price", "comment": null}, "processedbyrevcommit": {"type": "integer", "index": 94, "name": "processedbyrevcommit", "comment": null}, "quantity": {"type": "integer", "index": 95, "name": "quantity", "comment": null}, "quantitybackordered": {"type": "integer", "index": 96, "name": "quantitybackordered", "comment": null}, "quantitybilled": {"type": "integer", "index": 97, "name": "quantitybilled", "comment": null}, "quantitycommitted": {"type": "integer", "index": 98, "name": "quantitycommitted", "comment": null}, "quantitypacked": {"type": "integer", "index": 99, "name": "quantitypacked", "comment": null}, "quantitypicked": {"type": "integer", "index": 100, "name": "quantitypicked", "comment": null}, "quantityrejected": {"type": "integer", "index": 101, "name": "quantityrejected", "comment": null}, "quantityshiprecv": {"type": "integer", "index": 102, "name": "quantityshiprecv", "comment": null}, "rate": {"type": "integer", "index": 103, "name": "rate", "comment": null}, "rateamount": {"type": "integer", "index": 104, "name": "rateamount", "comment": null}, "ratepercent": {"type": "integer", "index": 105, "name": "ratepercent", "comment": null}, "requestnote": {"type": "integer", "index": 106, "name": "requestnote", "comment": null}, "revenueelement": {"type": "integer", "index": 107, "name": "revenueelement", "comment": null}, "shipmethod": {"type": "integer", "index": 108, "name": "shipmethod", "comment": null}, "specialorder": {"type": "text", "index": 109, "name": "specialorder", "comment": null}, "subsidiary": {"type": "integer", "index": 110, "name": "subsidiary", "comment": null}, "taxline": {"type": "text", "index": 111, "name": "taxline", "comment": null}, "transactiondiscount": {"type": "text", "index": 112, "name": "transactiondiscount", "comment": null}, "transactionlinetype": {"type": "integer", "index": 113, "name": "transactionlinetype", "comment": null}, "transferorderitemlineid": {"type": "integer", "index": 114, "name": "transferorderitemlineid", "comment": null}, "uniquekey": {"type": "integer", "index": 115, "name": "uniquekey", "comment": null}, "units": {"type": "integer", "index": 116, "name": "units", "comment": null}, "vsoeisestimate": {"type": "integer", "index": 117, "name": "vsoeisestimate", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.transaction_line"}, "source.netsuite_source.netsuite2.vendor_category": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_category_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "date_deleted": {"type": "integer", "index": 4, "name": "date_deleted", "comment": null}, "externalid": {"type": "integer", "index": 5, "name": "externalid", "comment": null}, "isinactive": {"type": "text", "index": 6, "name": "isinactive", "comment": null}, "istaxagency": {"type": "text", "index": 7, "name": "istaxagency", "comment": null}, "lastmodifieddate": {"type": "integer", "index": 8, "name": "lastmodifieddate", "comment": null}, "name": {"type": "text", "index": 9, "name": "name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.vendor_category"}, "source.netsuite_source.netsuite2.vendor": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite2_vendor_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"id": {"type": "integer", "index": 1, "name": "id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 2, "name": "_fivetran_deleted", "comment": null}, "_fivetran_synced": {"type": "timestamp without time zone", "index": 3, "name": "_fivetran_synced", "comment": null}, "accountnumber": {"type": "integer", "index": 4, "name": "accountnumber", "comment": null}, "altemail": {"type": "integer", "index": 5, "name": "altemail", "comment": null}, "altname": {"type": "text", "index": 6, "name": "altname", "comment": null}, "altphone": {"type": "integer", "index": 7, "name": "altphone", "comment": null}, "balance": {"type": "integer", "index": 8, "name": "balance", "comment": null}, "balanceprimary": {"type": "integer", "index": 9, "name": "balanceprimary", "comment": null}, "billpay": {"type": "text", "index": 10, "name": "billpay", "comment": null}, "category": {"type": "integer", "index": 11, "name": "category", "comment": null}, "comments": {"type": "integer", "index": 12, "name": "comments", "comment": null}, "companyname": {"type": "integer", "index": 13, "name": "companyname", "comment": null}, "contact": {"type": "integer", "index": 14, "name": "contact", "comment": null}, "contactlist": {"type": "integer", "index": 15, "name": "contactlist", "comment": null}, "creditlimit": {"type": "integer", "index": 16, "name": "creditlimit", "comment": null}, "currency": {"type": "integer", "index": 17, "name": "currency", "comment": null}, "custentity_2663_payment_method": {"type": "integer", "index": 18, "name": "custentity_2663_payment_method", "comment": null}, "custentity_is_manufacturer": {"type": "integer", "index": 19, "name": "custentity_is_manufacturer", "comment": null}, "custentity_rvc": {"type": "integer", "index": 20, "name": "custentity_rvc", "comment": null}, "custentity_vendor_lead_time": {"type": "integer", "index": 21, "name": "custentity_vendor_lead_time", "comment": null}, "custentity_wrnty_center_phone": {"type": "integer", "index": 22, "name": "custentity_wrnty_center_phone", "comment": null}, "date_deleted": {"type": "integer", "index": 23, "name": "date_deleted", "comment": null}, "datecreated": {"type": "timestamp without time zone", "index": 24, "name": "datecreated", "comment": null}, "defaultbankaccount": {"type": "integer", "index": 25, "name": "defaultbankaccount", "comment": null}, "defaultbillingaddress": {"type": "integer", "index": 26, "name": "defaultbillingaddress", "comment": null}, "defaultshippingaddress": {"type": "integer", "index": 27, "name": "defaultshippingaddress", "comment": null}, "defaultvendorpaymentaccount": {"type": "integer", "index": 28, "name": "defaultvendorpaymentaccount", "comment": null}, "duplicate": {"type": "text", "index": 29, "name": "duplicate", "comment": null}, "email": {"type": "integer", "index": 30, "name": "email", "comment": null}, "emailpreference": {"type": "text", "index": 31, "name": "emailpreference", "comment": null}, "emailtransactions": {"type": "text", "index": 32, "name": "emailtransactions", "comment": null}, "entityid": {"type": "text", "index": 33, "name": "entityid", "comment": null}, "entitynumber": {"type": "integer", "index": 34, "name": "entitynumber", "comment": null}, "entitytitle": {"type": "text", "index": 35, "name": "entitytitle", "comment": null}, "expenseaccount": {"type": "integer", "index": 36, "name": "expenseaccount", "comment": null}, "externalid": {"type": "integer", "index": 37, "name": "externalid", "comment": null}, "fax": {"type": "integer", "index": 38, "name": "fax", "comment": null}, "faxtransactions": {"type": "text", "index": 39, "name": "faxtransactions", "comment": null}, "firstname": {"type": "integer", "index": 40, "name": "firstname", "comment": null}, "giveaccess": {"type": "text", "index": 41, "name": "giveaccess", "comment": null}, "globalsubscriptionstatus": {"type": "integer", "index": 42, "name": "globalsubscriptionstatus", "comment": null}, "homephone": {"type": "integer", "index": 43, "name": "homephone", "comment": null}, "incoterm": {"type": "integer", "index": 44, "name": "incoterm", "comment": null}, "isinactive": {"type": "text", "index": 45, "name": "isinactive", "comment": null}, "isjobresourcevend": {"type": "text", "index": 46, "name": "isjobresourcevend", "comment": null}, "isperson": {"type": "text", "index": 47, "name": "isperson", "comment": null}, "laborcost": {"type": "integer", "index": 48, "name": "laborcost", "comment": null}, "lastmodifieddate": {"type": "timestamp without time zone", "index": 49, "name": "lastmodifieddate", "comment": null}, "lastname": {"type": "integer", "index": 50, "name": "lastname", "comment": null}, "legalname": {"type": "integer", "index": 51, "name": "legalname", "comment": null}, "middlename": {"type": "integer", "index": 52, "name": "middlename", "comment": null}, "mobilephone": {"type": "integer", "index": 53, "name": "mobilephone", "comment": null}, "payablesaccount": {"type": "integer", "index": 54, "name": "payablesaccount", "comment": null}, "phone": {"type": "integer", "index": 55, "name": "phone", "comment": null}, "printoncheckas": {"type": "integer", "index": 56, "name": "printoncheckas", "comment": null}, "printtransactions": {"type": "text", "index": 57, "name": "printtransactions", "comment": null}, "purchaseorderamount": {"type": "integer", "index": 58, "name": "purchaseorderamount", "comment": null}, "purchaseorderquantity": {"type": "integer", "index": 59, "name": "purchaseorderquantity", "comment": null}, "purchaseorderquantitydiff": {"type": "integer", "index": 60, "name": "purchaseorderquantitydiff", "comment": null}, "receiptamount": {"type": "integer", "index": 61, "name": "receiptamount", "comment": null}, "receiptquantity": {"type": "integer", "index": 62, "name": "receiptquantity", "comment": null}, "receiptquantitydiff": {"type": "integer", "index": 63, "name": "receiptquantitydiff", "comment": null}, "rolesforsearch": {"type": "integer", "index": 64, "name": "rolesforsearch", "comment": null}, "salutation": {"type": "integer", "index": 65, "name": "salutation", "comment": null}, "subsidiaryedition": {"type": "text", "index": 66, "name": "subsidiaryedition", "comment": null}, "terms": {"type": "integer", "index": 67, "name": "terms", "comment": null}, "timeapprover": {"type": "integer", "index": 68, "name": "timeapprover", "comment": null}, "title": {"type": "integer", "index": 69, "name": "title", "comment": null}, "unbilledorders": {"type": "integer", "index": 70, "name": "unbilledorders", "comment": null}, "unbilledordersprimary": {"type": "integer", "index": 71, "name": "unbilledordersprimary", "comment": null}, "url": {"type": "integer", "index": 72, "name": "url", "comment": null}, "workcalendar": {"type": "integer", "index": 73, "name": "workcalendar", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite2.vendor"}, "source.netsuite_source.netsuite.accounting_books": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_books_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_book_id": {"type": "integer", "index": 1, "name": "accounting_book_id", "comment": null}, "is_primary": {"type": "text", "index": 2, "name": "is_primary", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounting_books"}, "source.netsuite_source.netsuite.accounting_periods": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounting_periods_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"accounting_period_id": {"type": "integer", "index": 1, "name": "accounting_period_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 4, "name": "fiscal_calendar_id", "comment": null}, "year_id": {"type": "integer", "index": 5, "name": "year_id", "comment": null}, "starting": {"type": "timestamp without time zone", "index": 6, "name": "starting", "comment": null}, "ending": {"type": "timestamp without time zone", "index": 7, "name": "ending", "comment": null}, "quarter": {"type": "text", "index": 8, "name": "quarter", "comment": null}, "year_0": {"type": "text", "index": 9, "name": "year_0", "comment": null}, "is_adjustment": {"type": "text", "index": 10, "name": "is_adjustment", "comment": null}, "closed": {"type": "text", "index": 11, "name": "closed", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounting_periods"}, "source.netsuite_source.netsuite.accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"account_id": {"type": "integer", "index": 1, "name": "account_id", "comment": null}, "parent_id": {"type": "integer", "index": 2, "name": "parent_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 4, "name": "type_name", "comment": null}, "account_number": {"type": "integer", "index": 5, "name": "account_number", "comment": null}, "general_rate_type": {"type": "text", "index": 6, "name": "general_rate_type", "comment": null}, "is_leftside": {"type": "text", "index": 7, "name": "is_leftside", "comment": null}, "is_balancesheet": {"type": "text", "index": 8, "name": "is_balancesheet", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.accounts"}, "source.netsuite_source.netsuite.classes": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_classes_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"class_id": {"type": "integer", "index": 1, "name": "class_id", "comment": null}, "full_name": {"type": "text", "index": 2, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.classes"}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_consolidated_exchange_rates_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"consolidated_exchange_rate_id": {"type": "integer", "index": 1, "name": "consolidated_exchange_rate_id", "comment": null}, "accounting_book_id": {"type": "integer", "index": 2, "name": "accounting_book_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 3, "name": "accounting_period_id", "comment": null}, "average_rate": {"type": "integer", "index": 4, "name": "average_rate", "comment": null}, "current_rate": {"type": "integer", "index": 5, "name": "current_rate", "comment": null}, "historical_rate": {"type": "integer", "index": 6, "name": "historical_rate", "comment": null}, "from_subsidiary_id": {"type": "integer", "index": 7, "name": "from_subsidiary_id", "comment": null}, "to_subsidiary_id": {"type": "integer", "index": 8, "name": "to_subsidiary_id", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 9, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates"}, "source.netsuite_source.netsuite.currencies": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_currencies_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"currency_id": {"type": "integer", "index": 1, "name": "currency_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "symbol": {"type": "text", "index": 3, "name": "symbol", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 4, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.currencies"}, "source.netsuite_source.netsuite.customers": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_customers_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"customer_id": {"type": "integer", "index": 1, "name": "customer_id", "comment": null}, "company_name": {"type": "text", "index": 2, "name": "company_name", "comment": null}, "city": {"type": "integer", "index": 3, "name": "city", "comment": null}, "state": {"type": "integer", "index": 4, "name": "state", "comment": null}, "zipcode": {"type": "integer", "index": 5, "name": "zipcode", "comment": null}, "country": {"type": "integer", "index": 6, "name": "country", "comment": null}, "date_first_order": {"type": "integer", "index": 7, "name": "date_first_order", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 8, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.customers"}, "source.netsuite_source.netsuite.departments": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_departments_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"department_id": {"type": "integer", "index": 1, "name": "department_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.departments"}, "source.netsuite_source.netsuite.expense_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_expense_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"expense_account_id": {"type": "integer", "index": 1, "name": "expense_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.expense_accounts"}, "source.netsuite_source.netsuite.income_accounts": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_income_accounts_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"income_account_id": {"type": "integer", "index": 1, "name": "income_account_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 3, "name": "parent_id", "comment": null}, "account_number": {"type": "integer", "index": 4, "name": "account_number", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.income_accounts"}, "source.netsuite_source.netsuite.items": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_items_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"item_id": {"type": "integer", "index": 1, "name": "item_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "type_name": {"type": "text", "index": 3, "name": "type_name", "comment": null}, "sales_description": {"type": "text", "index": 4, "name": "sales_description", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.items"}, "source.netsuite_source.netsuite.locations": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_locations_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"location_id": {"type": "integer", "index": 1, "name": "location_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "full_name": {"type": "text", "index": 3, "name": "full_name", "comment": null}, "city": {"type": "text", "index": 4, "name": "city", "comment": null}, "country": {"type": "text", "index": 5, "name": "country", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.locations"}, "source.netsuite_source.netsuite.subsidiaries": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_subsidiaries_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"subsidiary_id": {"type": "integer", "index": 1, "name": "subsidiary_id", "comment": null}, "fiscal_calendar_id": {"type": "integer", "index": 2, "name": "fiscal_calendar_id", "comment": null}, "name": {"type": "text", "index": 3, "name": "name", "comment": null}, "parent_id": {"type": "integer", "index": 4, "name": "parent_id", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.subsidiaries"}, "source.netsuite_source.netsuite.transaction_lines": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transaction_lines_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "transaction_line_id": {"type": "integer", "index": 2, "name": "transaction_line_id", "comment": null}, "subsidiary_id": {"type": "integer", "index": 3, "name": "subsidiary_id", "comment": null}, "account_id": {"type": "integer", "index": 4, "name": "account_id", "comment": null}, "company_id": {"type": "integer", "index": 5, "name": "company_id", "comment": null}, "item_id": {"type": "integer", "index": 6, "name": "item_id", "comment": null}, "amount": {"type": "integer", "index": 7, "name": "amount", "comment": null}, "non_posting_line": {"type": "text", "index": 8, "name": "non_posting_line", "comment": null}, "class_id": {"type": "integer", "index": 9, "name": "class_id", "comment": null}, "location_id": {"type": "integer", "index": 10, "name": "location_id", "comment": null}, "department_id": {"type": "integer", "index": 11, "name": "department_id", "comment": null}, "memo": {"type": "text", "index": 12, "name": "memo", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.transaction_lines"}, "source.netsuite_source.netsuite.transactions": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_transactions_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"transaction_id": {"type": "integer", "index": 1, "name": "transaction_id", "comment": null}, "status": {"type": "text", "index": 2, "name": "status", "comment": null}, "transaction_date": {"type": "timestamp without time zone", "index": 3, "name": "transaction_date", "comment": null}, "currency_id": {"type": "integer", "index": 4, "name": "currency_id", "comment": null}, "accounting_period_id": {"type": "integer", "index": 5, "name": "accounting_period_id", "comment": null}, "due_date": {"type": "timestamp without time zone", "index": 6, "name": "due_date", "comment": null}, "transaction_type": {"type": "text", "index": 7, "name": "transaction_type", "comment": null}, "is_intercompany": {"type": "text", "index": 8, "name": "is_intercompany", "comment": null}, "is_advanced_intercompany": {"type": "text", "index": 9, "name": "is_advanced_intercompany", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 10, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.transactions"}, "source.netsuite_source.netsuite.vendor_types": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendor_types_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_type_id": {"type": "integer", "index": 1, "name": "vendor_type_id", "comment": null}, "name": {"type": "text", "index": 2, "name": "name", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 3, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.vendor_types"}, "source.netsuite_source.netsuite.vendors": {"metadata": {"type": "BASE TABLE", "schema": "netsuite_source_integration_tests", "name": "netsuite_vendors_data", "database": "postgres", "comment": null, "owner": "pguser"}, "columns": {"vendor_id": {"type": "integer", "index": 1, "name": "vendor_id", "comment": null}, "vendor_type_id": {"type": "integer", "index": 2, "name": "vendor_type_id", "comment": null}, "company_name": {"type": "text", "index": 3, "name": "company_name", "comment": null}, "create_date": {"type": "timestamp without time zone", "index": 4, "name": "create_date", "comment": null}, "_fivetran_deleted": {"type": "boolean", "index": 5, "name": "_fivetran_deleted", "comment": null}}, "stats": {"has_stats": {"id": "has_stats", "label": "Has Stats?", "value": false, "include": false, "description": "Indicates whether there are statistics for this table"}}, "unique_id": "source.netsuite_source.netsuite.vendors"}}, "errors": null} \ No newline at end of file diff --git a/docs/manifest.json b/docs/manifest.json index 1351c82..1cd681f 100644 --- a/docs/manifest.json +++ b/docs/manifest.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2022-10-24T20:25:40.972405Z", "invocation_id": "4195529c-716a-4b27-ac5b-72f919bfcd43", "env": {}, "project_id": "0161153b585f60374e0a66941a656f43", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_currency_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_currency_data.csv", "original_file_path": "seeds/netsuite2_currency_data.csv", "name": "netsuite2_currency_data", "alias": "netsuite2_currency_data", "checksum": {"name": "sha256", "checksum": "860ccbec95ff9c17e8e40db2c32e28ab56f2ef18f6af775bc982fc5494aae23c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.641398, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\""}, "seed.netsuite_source_integration_tests.netsuite_vendors_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_vendors_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_vendors_data.csv", "original_file_path": "seeds/netsuite_vendors_data.csv", "name": "netsuite_vendors_data", "alias": "netsuite_vendors_data", "checksum": {"name": "sha256", "checksum": "f050ea1d5fa346fcefbe9a5792dfbe9f5aabbec17a359ab2e497be7b3e888e2d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6471229, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\""}, "seed.netsuite_source_integration_tests.netsuite2_classification_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_classification_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_classification_data.csv", "original_file_path": "seeds/netsuite2_classification_data.csv", "name": "netsuite2_classification_data", "alias": "netsuite2_classification_data", "checksum": {"name": "sha256", "checksum": "800dc93b65435dd17dbe1f668890a317bce221193a1ca52d6075c5ab8504e29c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.648414, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounting_books_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounting_books_data.csv", "original_file_path": "seeds/netsuite_accounting_books_data.csv", "name": "netsuite_accounting_books_data", "alias": "netsuite_accounting_books_data", "checksum": {"name": "sha256", "checksum": "45b73583ed0a1425f131de59b6a17b997caec17d9b0884947f27008ae81c1684"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.649585, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\""}, "seed.netsuite_source_integration_tests.netsuite2_entities_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_entities_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_entities_data.csv", "original_file_path": "seeds/netsuite2_entities_data.csv", "name": "netsuite2_entities_data", "alias": "netsuite2_entities_data", "checksum": {"name": "sha256", "checksum": "e28458219e88aecec3f237ff9c58941d13c0e40c478fec9e8727fbb3d9d244c8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.650738, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\""}, "seed.netsuite_source_integration_tests.netsuite2_vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_vendor_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_vendor_data.csv", "original_file_path": "seeds/netsuite2_vendor_data.csv", "name": "netsuite2_vendor_data", "alias": "netsuite2_vendor_data", "checksum": {"name": "sha256", "checksum": "f1f8f8762dd6b7192e2273f12ee86f43eb06933a2055da91d37c82f0ddbec0b8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.652019, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\""}, "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_consolidated_exchange_rates_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_consolidated_exchange_rates_data.csv", "original_file_path": "seeds/netsuite_consolidated_exchange_rates_data.csv", "name": "netsuite_consolidated_exchange_rates_data", "alias": "netsuite_consolidated_exchange_rates_data", "checksum": {"name": "sha256", "checksum": "b8719124e41745363f91f996b99812a9e6c98306ef24034c5efb12b64600a496"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.653165, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\""}, "seed.netsuite_source_integration_tests.netsuite_customers_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_customers_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_customers_data.csv", "original_file_path": "seeds/netsuite_customers_data.csv", "name": "netsuite_customers_data", "alias": "netsuite_customers_data", "checksum": {"name": "sha256", "checksum": "e3ce06d6edaeb9f777c340a597d8de7cfb2d3423a20a2421eae4c86264a9c93a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.654301, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\""}, "seed.netsuite_source_integration_tests.netsuite_locations_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_locations_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_locations_data.csv", "original_file_path": "seeds/netsuite_locations_data.csv", "name": "netsuite_locations_data", "alias": "netsuite_locations_data", "checksum": {"name": "sha256", "checksum": "8a71a79adb44cc02707a75ee10a85f03b472324a894ddc32716eeea7d533bc2f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6554508, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\""}, "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_transaction_line_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_transaction_line_data.csv", "original_file_path": "seeds/netsuite2_transaction_line_data.csv", "name": "netsuite2_transaction_line_data", "alias": "netsuite2_transaction_line_data", "checksum": {"name": "sha256", "checksum": "746773ecc92c2e3e1113ebf7d00fd1a33723016cd3f221fca37fa938315ca5b1"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6567109, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\""}, "seed.netsuite_source_integration_tests.netsuite2_account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_account_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_account_data.csv", "original_file_path": "seeds/netsuite2_account_data.csv", "name": "netsuite2_account_data", "alias": "netsuite2_account_data", "checksum": {"name": "sha256", "checksum": "689909e17df06e2b189107699467b29cda77e8b4ab1d433c644872c481524747"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.65785, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\""}, "seed.netsuite_source_integration_tests.netsuite_items_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_items_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_items_data.csv", "original_file_path": "seeds/netsuite_items_data.csv", "name": "netsuite_items_data", "alias": "netsuite_items_data", "checksum": {"name": "sha256", "checksum": "567fc2b4c8e46962f9297095017fa529544feafed31503e9fc3ed51bf60b866d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.658987, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\""}, "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_subsidiary_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_subsidiary_data.csv", "original_file_path": "seeds/netsuite2_subsidiary_data.csv", "name": "netsuite2_subsidiary_data", "alias": "netsuite2_subsidiary_data", "checksum": {"name": "sha256", "checksum": "ab5bdff19af5d7a5f923820106bd9aa7fc321d3a1b1397ab2ad33f8d1fce3991"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.66012, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\""}, "seed.netsuite_source_integration_tests.netsuite2_account_type_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_account_type_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_account_type_data.csv", "original_file_path": "seeds/netsuite2_account_type_data.csv", "name": "netsuite2_account_type_data", "alias": "netsuite2_account_type_data", "checksum": {"name": "sha256", "checksum": "a25b940f65942b256bca8c5ac0c5d4f420a9b1e2d6330bd1102da3e8fa664c7f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.66141, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_period_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_period_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_data.csv", "name": "netsuite2_accounting_period_data", "alias": "netsuite2_accounting_period_data", "checksum": {"name": "sha256", "checksum": "8434862ad961a3c3e31effc380b84b721212641ca8623789446401e345cf9dba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.662561, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_period_fiscal_cal_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_period_fiscal_cal_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_fiscal_cal_data.csv", "name": "netsuite2_accounting_period_fiscal_cal_data", "alias": "netsuite2_accounting_period_fiscal_cal_data", "checksum": {"name": "sha256", "checksum": "ff3ab48ac65713c861da7a5542f14db75c64c4ad7ae4efc8acb2241c10b127c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.663682, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\""}, "seed.netsuite_source_integration_tests.netsuite_classes_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_classes_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_classes_data.csv", "original_file_path": "seeds/netsuite_classes_data.csv", "name": "netsuite_classes_data", "alias": "netsuite_classes_data", "checksum": {"name": "sha256", "checksum": "18e8a63665925edfacbeaa443c7f6632c4489bd521df77d945ee657d398588e3"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.664789, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\""}, "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_entity_address_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_entity_address_data.csv", "original_file_path": "seeds/netsuite2_entity_address_data.csv", "name": "netsuite2_entity_address_data", "alias": "netsuite2_entity_address_data", "checksum": {"name": "sha256", "checksum": "194e01a215739408a796ec2d819da0bc650c860e052e2cddf6695c3faab3b059"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.666004, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\""}, "seed.netsuite_source_integration_tests.netsuite_departments_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_departments_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_departments_data.csv", "original_file_path": "seeds/netsuite_departments_data.csv", "name": "netsuite_departments_data", "alias": "netsuite_departments_data", "checksum": {"name": "sha256", "checksum": "9060203f11419c602daf8afc578035d29ef612e1e868b12fa22eaf7b37942607"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.667148, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\""}, "seed.netsuite_source_integration_tests.netsuite2_customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_customer_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_customer_data.csv", "original_file_path": "seeds/netsuite2_customer_data.csv", "name": "netsuite2_customer_data", "alias": "netsuite2_customer_data", "checksum": {"name": "sha256", "checksum": "5500a2147bb74338ce1aa8bc059d0f3cae74cdfcf4d0d68b49121540b5ccb573"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.668279, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\""}, "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_tran_acct_line_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_tran_acct_line_data.csv", "original_file_path": "seeds/netsuite2_tran_acct_line_data.csv", "name": "netsuite2_tran_acct_line_data", "alias": "netsuite2_tran_acct_line_data", "checksum": {"name": "sha256", "checksum": "c6e72ec64e0179be9c3f3fb6435a828570cd1cb9ba2092ce78b6a4900bc02ddb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.669844, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\""}, "seed.netsuite_source_integration_tests.netsuite2_department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_department_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_department_data.csv", "original_file_path": "seeds/netsuite2_department_data.csv", "name": "netsuite2_department_data", "alias": "netsuite2_department_data", "checksum": {"name": "sha256", "checksum": "6570dc2a4efbac97f87551588b34558d6c5c5b8e071b3cfea59bc9e13a0b7b4a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6710122, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\""}, "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_expense_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_expense_accounts_data.csv", "original_file_path": "seeds/netsuite_expense_accounts_data.csv", "name": "netsuite_expense_accounts_data", "alias": "netsuite_expense_accounts_data", "checksum": {"name": "sha256", "checksum": "983ef804359afb2c0f7db8c3bb32d5eecdec8c0d9fbf502360944877dc212f9c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.672152, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite_currencies_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_currencies_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_currencies_data.csv", "original_file_path": "seeds/netsuite_currencies_data.csv", "name": "netsuite_currencies_data", "alias": "netsuite_currencies_data", "checksum": {"name": "sha256", "checksum": "f98ba1751b715296956912fc4c2b43f58875c56740e829c045aefe1172cb2232"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.673324, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_book_sub_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_book_sub_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_sub_data.csv", "name": "netsuite2_accounting_book_sub_data", "alias": "netsuite2_accounting_book_sub_data", "checksum": {"name": "sha256", "checksum": "e95506b5ada820d0a9a79e7759d749a1512beaa8922c3d6e78c105f9029f7992"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.674598, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounts_data.csv", "original_file_path": "seeds/netsuite_accounts_data.csv", "name": "netsuite_accounts_data", "alias": "netsuite_accounts_data", "checksum": {"name": "sha256", "checksum": "a3d24c6bf7438f0bf6e0a725565ea0bb000c6fa01b7ffbdfb1b70689f5ad515b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6757472, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_vendor_category_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_vendor_category_data.csv", "original_file_path": "seeds/netsuite2_vendor_category_data.csv", "name": "netsuite2_vendor_category_data", "alias": "netsuite2_vendor_category_data", "checksum": {"name": "sha256", "checksum": "498453adb748d03d07147625b2ef67966f7200523eef6d824ce8787212159bf8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.676894, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounting_periods_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounting_periods_data.csv", "original_file_path": "seeds/netsuite_accounting_periods_data.csv", "name": "netsuite_accounting_periods_data", "alias": "netsuite_accounting_periods_data", "checksum": {"name": "sha256", "checksum": "673c2f4c76e4cb8bbccecc7e30c0056163d39f53174013f0460a2e4e5efe6e33"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.677995, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\""}, "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_subsidiaries_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_subsidiaries_data.csv", "original_file_path": "seeds/netsuite_subsidiaries_data.csv", "name": "netsuite_subsidiaries_data", "alias": "netsuite_subsidiaries_data", "checksum": {"name": "sha256", "checksum": "4dd2e8b192c4c052a847d6791b5a32da6968a3234d48b85a37ae20f7ee9445de"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6792068, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\""}, "seed.netsuite_source_integration_tests.netsuite2_job_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_job_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_job_data.csv", "original_file_path": "seeds/netsuite2_job_data.csv", "name": "netsuite2_job_data", "alias": "netsuite2_job_data", "checksum": {"name": "sha256", "checksum": "5fa5024df2ff944188a0ada73be30727b1b1552f3a890b9bd244264d2188fd68"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.680316, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\""}, "seed.netsuite_source_integration_tests.netsuite2_transaction_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_transaction_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_transaction_data.csv", "original_file_path": "seeds/netsuite2_transaction_data.csv", "name": "netsuite2_transaction_data", "alias": "netsuite2_transaction_data", "checksum": {"name": "sha256", "checksum": "16b52e72a514adb263e4e26594326996ab0c1089e576155a4f429975b1d54db0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.681482, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\""}, "seed.netsuite_source_integration_tests.netsuite2_location_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_location_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_location_data.csv", "original_file_path": "seeds/netsuite2_location_data.csv", "name": "netsuite2_location_data", "alias": "netsuite2_location_data", "checksum": {"name": "sha256", "checksum": "a3ce64b239774b83f9226b8e1f8504147dd5f890a86ab80fda41c0376a6e2d19"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.682616, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\""}, "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_income_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_income_accounts_data.csv", "original_file_path": "seeds/netsuite_income_accounts_data.csv", "name": "netsuite_income_accounts_data", "alias": "netsuite_income_accounts_data", "checksum": {"name": "sha256", "checksum": "53a81321736b4a42663e253050539eb48b0d179847e23f161927d29c4cbf1367"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6838841, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_consolidated_exchange_rate_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_consolidated_exchange_rate_data.csv", "original_file_path": "seeds/netsuite2_consolidated_exchange_rate_data.csv", "name": "netsuite2_consolidated_exchange_rate_data", "alias": "netsuite2_consolidated_exchange_rate_data", "checksum": {"name": "sha256", "checksum": "d609008a0522dd0e4e60f8967234bd4ec6c6b5b4fcc8d97a7167869d27ab24ef"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.685031, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_book_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_book_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_data.csv", "name": "netsuite2_accounting_book_data", "alias": "netsuite2_accounting_book_data", "checksum": {"name": "sha256", "checksum": "e5762b59dceb08e4a5170f2ff5413591cfca97f2a8a9a5080bf96860cf276566"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.686168, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\""}, "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_location_main_address_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_location_main_address_data.csv", "original_file_path": "seeds/netsuite2_location_main_address_data.csv", "name": "netsuite2_location_main_address_data", "alias": "netsuite2_location_main_address_data", "checksum": {"name": "sha256", "checksum": "605372cb4ea25cff3ec9f9c80374d24c71d6848ff3dbda939928851568a7311d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.6874392, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\""}, "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_vendor_types_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_vendor_types_data.csv", "original_file_path": "seeds/netsuite_vendor_types_data.csv", "name": "netsuite_vendor_types_data", "alias": "netsuite_vendor_types_data", "checksum": {"name": "sha256", "checksum": "2111fb5a226e9e73c187a1a1a13caa0c2d3b54bb2eedfe3287f636c049c72b64"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.688583, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\""}, "seed.netsuite_source_integration_tests.netsuite2_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_item_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_item_data.csv", "original_file_path": "seeds/netsuite2_item_data.csv", "name": "netsuite2_item_data", "alias": "netsuite2_item_data", "checksum": {"name": "sha256", "checksum": "73809b7847e14ec59fa08705c6ba1ee6be142717f9bcbe2dde9eeb5b1c14a65f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.689721, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\""}, "seed.netsuite_source_integration_tests.netsuite_transactions_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_transactions_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_transactions_data.csv", "original_file_path": "seeds/netsuite_transactions_data.csv", "name": "netsuite_transactions_data", "alias": "netsuite_transactions_data", "checksum": {"name": "sha256", "checksum": "c1d88d96de5d5e6ed310a6b008df7390a2aaf7b0d857668e0dfed259f0c704ed"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.690861, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\""}, "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_transaction_lines_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_transaction_lines_data.csv", "original_file_path": "seeds/netsuite_transaction_lines_data.csv", "name": "netsuite_transaction_lines_data", "alias": "netsuite_transaction_lines_data", "checksum": {"name": "sha256", "checksum": "6786bdf4b6e00d6243008c46d0bb69a21158ff27265690503aaa9d8b6faa01d2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1666643119.69212, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\""}, "model.netsuite_source.stg_netsuite2__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_transactions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions_tmp", "model.netsuite_source.stg_netsuite2__transactions_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transactions"], "unique_id": "model.netsuite_source.stg_netsuite2__transactions", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transactions_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transactions_tmp')),\n staging_columns=get_netsuite2_transactions_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_id,\n transactionnumber as transaction_number,\n type as transaction_type,\n memo,\n trandate as transaction_date,\n status,\n createddate as created_at,\n duedate as due_date_at,\n closedate as closed_at,\n currency as currency_id,\n entity as entity_id,\n postingperiod as accounting_period_id,\n posting = 'T' as is_posting,\n intercoadj = 'T' as is_intercompany_adjustment,\n isreversal = 'T' as is_reversal\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transactions_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transactions.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transactions.sql", "name": "stg_netsuite2__transactions", "alias": "stg_netsuite2__transactions", "checksum": {"name": "sha256", "checksum": "6cfa8b003b02cfe90d29c76cb3690de25444fb558c3735c7b2dc4a89fb005251"}, "tags": [], "refs": [["stg_netsuite2__transactions_tmp"], ["stg_netsuite2__transactions_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_number": {"name": "transaction_number", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the transaction is a posting event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany_adjustment": {"name": "is_intercompany_adjustment", "description": "Boolean indicating if the transaction is an intercompany adjustment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_reversal": {"name": "is_reversal", "description": "Boolean indicating if the transaction is a reversal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.629515, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n transactionnumber\n \n as \n \n transactionnumber\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n trandate\n \n as \n \n trandate\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n createddate\n \n as \n \n createddate\n \n, \n \n \n duedate\n \n as \n \n duedate\n \n, \n \n \n closedate\n \n as \n \n closedate\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n entity\n \n as \n \n entity\n \n, \n \n \n postingperiod\n \n as \n \n postingperiod\n \n, \n \n \n posting\n \n as \n \n posting\n \n, \n cast(null as TEXT) as \n \n intercoadj\n \n , \n \n \n isreversal\n \n as \n \n isreversal\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_id,\n transactionnumber as transaction_number,\n type as transaction_type,\n memo,\n trandate as transaction_date,\n status,\n createddate as created_at,\n duedate as due_date_at,\n closedate as closed_at,\n currency as currency_id,\n entity as entity_id,\n postingperiod as accounting_period_id,\n posting = 'T' as is_posting,\n intercoadj = 'T' as is_intercompany_adjustment,\n isreversal = 'T' as is_reversal\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\""}, "model.netsuite_source.stg_netsuite2__jobs": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_job_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs_tmp", "model.netsuite_source.stg_netsuite2__jobs_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__jobs"], "unique_id": "model.netsuite_source.stg_netsuite2__jobs", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__jobs_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__jobs_tmp')),\n staging_columns=get_job_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n id as job_id,\n externalid as job_external_id,\n customer as customer_id,\n entityid as entity_id,\n defaultbillingaddress as billing_address_id,\n defaultshippingaddress as shipping_address_id,\n parent as parent_id\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__jobs.sql", "original_file_path": "models/netsuite2/stg_netsuite2__jobs.sql", "name": "stg_netsuite2__jobs", "alias": "stg_netsuite2__jobs", "checksum": {"name": "sha256", "checksum": "ad872a5592725850b2d219ce6051a429a48a1a0850bec9681dabc65b0b2f7cc9"}, "tags": [], "refs": [["stg_netsuite2__jobs_tmp"], ["stg_netsuite2__jobs_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all jobs.", "columns": {"job_id": {"name": "job_id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_external_id": {"name": "job_external_id", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "Reference the the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Default billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__jobs.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.617078, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountnumber\n \n as \n \n accountnumber\n \n, \n \n \n actualtime\n \n as \n \n actualtime\n \n, \n \n \n allowallresourcesfortasks\n \n as \n \n allowallresourcesfortasks\n \n, \n \n \n allowexpenses\n \n as \n \n allowexpenses\n \n, \n \n \n allowtime\n \n as \n \n allowtime\n \n, \n \n \n alternatecontact\n \n as \n \n alternatecontact\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n billingschedule\n \n as \n \n billingschedule\n \n, \n \n \n calculatedenddate\n \n as \n \n calculatedenddate\n \n, \n \n \n calculatedenddatebaseline\n \n as \n \n calculatedenddatebaseline\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n contactlist\n \n as \n \n contactlist\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n currencyprecision\n \n as \n \n currencyprecision\n \n, \n \n \n custentity1\n \n as \n \n custentity1\n \n, \n \n \n custentity4\n \n as \n \n custentity4\n \n, \n \n \n custentity5\n \n as \n \n custentity5\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n enddate\n \n as \n \n enddate\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitystatus\n \n as \n \n entitystatus\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n estimatedcost\n \n as \n \n estimatedcost\n \n, \n \n \n estimatedgrossprofit\n \n as \n \n estimatedgrossprofit\n \n, \n \n \n estimatedgrossprofitpercent\n \n as \n \n estimatedgrossprofitpercent\n \n, \n \n \n estimatedlaborcost\n \n as \n \n estimatedlaborcost\n \n, \n \n \n estimatedlaborcostbaseline\n \n as \n \n estimatedlaborcostbaseline\n \n, \n \n \n estimatedlaborrevenue\n \n as \n \n estimatedlaborrevenue\n \n, \n \n \n estimatedrevenue\n \n as \n \n estimatedrevenue\n \n, \n \n \n estimatedtime\n \n as \n \n estimatedtime\n \n, \n \n \n estimatedtimeoverride\n \n as \n \n estimatedtimeoverride\n \n, \n \n \n estimatedtimeoverridebaseline\n \n as \n \n estimatedtimeoverridebaseline\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n files\n \n as \n \n files\n \n, \n \n \n forecastchargerunondemand\n \n as \n \n forecastchargerunondemand\n \n, \n \n \n fxrate\n \n as \n \n fxrate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includecrmtasksintotals\n \n as \n \n includecrmtasksintotals\n \n, \n \n \n isexempttime\n \n as \n \n isexempttime\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isproductivetime\n \n as \n \n isproductivetime\n \n, \n \n \n isutilizedtime\n \n as \n \n isutilizedtime\n \n, \n \n \n jobbillingtype\n \n as \n \n jobbillingtype\n \n, \n \n \n jobitem\n \n as \n \n jobitem\n \n, \n \n \n jobprice\n \n as \n \n jobprice\n \n, \n \n \n jobtype\n \n as \n \n jobtype\n \n, \n \n \n lastbaselinedate\n \n as \n \n lastbaselinedate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n limittimetoassignees\n \n as \n \n limittimetoassignees\n \n, \n \n \n materializetime\n \n as \n \n materializetime\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n percentcomplete\n \n as \n \n percentcomplete\n \n, \n \n \n percenttimecomplete\n \n as \n \n percenttimecomplete\n \n, \n \n \n primarycontact\n \n as \n \n primarycontact\n \n, \n \n \n projectedenddate\n \n as \n \n projectedenddate\n \n, \n \n \n projectedenddatebaseline\n \n as \n \n projectedenddatebaseline\n \n, \n \n \n projectmanager\n \n as \n \n projectmanager\n \n, \n \n \n startdate\n \n as \n \n startdate\n \n, \n \n \n startdatebaseline\n \n as \n \n startdatebaseline\n \n, \n \n \n timeapproval\n \n as \n \n timeapproval\n \n, \n \n \n timeremaining\n \n as \n \n timeremaining\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n id as job_id,\n externalid as job_external_id,\n customer as customer_id,\n entityid as entity_id,\n defaultbillingaddress as billing_address_id,\n defaultshippingaddress as shipping_address_id,\n parent as parent_id\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\""}, "model.netsuite_source.stg_netsuite2__vendors": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_vendors_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors_tmp", "model.netsuite_source.stg_netsuite2__vendors_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendors"], "unique_id": "model.netsuite_source.stg_netsuite2__vendors", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__vendors_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__vendors_tmp')),\n staging_columns=get_netsuite2_vendors_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as vendor_id,\n companyname as company_name,\n datecreated as create_date_at,\n category as vendor_category_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__vendors.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendors.sql", "name": "stg_netsuite2__vendors", "alias": "stg_netsuite2__vendors", "checksum": {"name": "sha256", "checksum": "f4b5f8a87be234ed979c5f09110de8a2d32b791a6cc35fad0034b80493c6c4bb"}, "tags": [], "refs": [["stg_netsuite2__vendors_tmp"], ["stg_netsuite2__vendors_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all vendor information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendors.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.631171, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountnumber\n \n as \n \n accountnumber\n \n, \n \n \n altemail\n \n as \n \n altemail\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n altphone\n \n as \n \n altphone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balanceprimary\n \n as \n \n balanceprimary\n \n, \n cast(null as INT) as \n \n billingclass\n \n , \n \n \n category\n \n as \n \n category\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n contactlist\n \n as \n \n contactlist\n \n, \n \n \n creditlimit\n \n as \n \n creditlimit\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n defaultbankaccount\n \n as \n \n defaultbankaccount\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n defaultvendorpaymentaccount\n \n as \n \n defaultvendorpaymentaccount\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n emailpreference\n \n as \n \n emailpreference\n \n, \n \n \n emailtransactions\n \n as \n \n emailtransactions\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n expenseaccount\n \n as \n \n expenseaccount\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n faxtransactions\n \n as \n \n faxtransactions\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n giveaccess\n \n as \n \n giveaccess\n \n, \n \n \n homephone\n \n as \n \n homephone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n incoterm\n \n as \n \n incoterm\n \n, \n cast(null as TEXT) as \n \n isautogeneratedrepresentingentity\n \n , \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isjobresourcevend\n \n as \n \n isjobresourcevend\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n laborcost\n \n as \n \n laborcost\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n legalname\n \n as \n \n legalname\n \n, \n \n \n middlename\n \n as \n \n middlename\n \n, \n \n \n mobilephone\n \n as \n \n mobilephone\n \n, \n \n \n payablesaccount\n \n as \n \n payablesaccount\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n printoncheckas\n \n as \n \n printoncheckas\n \n, \n \n \n printtransactions\n \n as \n \n printtransactions\n \n, \n \n \n purchaseorderamount\n \n as \n \n purchaseorderamount\n \n, \n \n \n purchaseorderquantity\n \n as \n \n purchaseorderquantity\n \n, \n \n \n purchaseorderquantitydiff\n \n as \n \n purchaseorderquantitydiff\n \n, \n \n \n receiptamount\n \n as \n \n receiptamount\n \n, \n \n \n receiptquantity\n \n as \n \n receiptquantity\n \n, \n \n \n receiptquantitydiff\n \n as \n \n receiptquantitydiff\n \n, \n cast(null as INT) as \n \n representingsubsidiary\n \n , \n \n \n rolesforsearch\n \n as \n \n rolesforsearch\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n subsidiaryedition\n \n as \n \n subsidiaryedition\n \n, \n \n \n terms\n \n as \n \n terms\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n unbilledorders\n \n as \n \n unbilledorders\n \n, \n \n \n unbilledordersprimary\n \n as \n \n unbilledordersprimary\n \n, \n \n \n url\n \n as \n \n url\n \n, \n \n \n workcalendar\n \n as \n \n workcalendar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as vendor_id,\n companyname as company_name,\n datecreated as create_date_at,\n category as vendor_category_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\""}, "model.netsuite_source.stg_netsuite2__classes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_classes_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__classes_tmp", "model.netsuite_source.stg_netsuite2__classes_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__classes"], "unique_id": "model.netsuite_source.stg_netsuite2__classes", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__classes_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__classes_tmp')),\n staging_columns=get_netsuite2_classes_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as class_id,\n externalid as class_external_id,\n name,\n fullname as full_name,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('classes_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__classes.sql", "original_file_path": "models/netsuite2/stg_netsuite2__classes.sql", "name": "stg_netsuite2__classes", "alias": "stg_netsuite2__classes", "checksum": {"name": "sha256", "checksum": "55d1438c5add45a09f7a06b5edb622b71d7b1fb040fdf473c3db51261844d4a1"}, "tags": [], "refs": [["stg_netsuite2__classes_tmp"], ["stg_netsuite2__classes_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all classes set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_external_id": {"name": "class_external_id", "description": "Reference to the external class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the class is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__classes.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.603311, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as class_id,\n externalid as class_external_id,\n name,\n fullname as full_name,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\""}, "model.netsuite_source.stg_netsuite2__account_types": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounttype_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types_tmp", "model.netsuite_source.stg_netsuite2__account_types_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__account_types"], "unique_id": "model.netsuite_source.stg_netsuite2__account_types", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__account_types_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__account_types_tmp')),\n staging_columns=get_accounttype_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n id as account_type_id,\n balancesheet = 'T' as is_balancesheet,\n {%- if target.type == 'bigquery' -%}\n `left` \n {%- elif target.type == 'snowflake' -%}\n \"LEFT\"\n {%- elif target.type in ('redshift', 'postgres') -%}\n \"left\" \n {%- else -%}\n left\n {%- endif -%} = 'T' as is_leftside,\n longname as type_name\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__account_types.sql", "original_file_path": "models/netsuite2/stg_netsuite2__account_types.sql", "name": "stg_netsuite2__account_types", "alias": "stg_netsuite2__account_types", "checksum": {"name": "sha256", "checksum": "899ddfe641e319f7830072bbb040247692af2e25cfd465b838d27b46746b0106"}, "tags": [], "refs": [["stg_netsuite2__account_types_tmp"], ["stg_netsuite2__account_types_tmp"]], "sources": [], "metrics": [], "description": "A table containing the various account types within Netsuite.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Boolean indicating if the account type is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Boolean indicating if the account type is leftside.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__account_types.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.593041, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balancesheet\n \n as \n \n balancesheet\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n defaultcashflowratetype\n \n as \n \n defaultcashflowratetype\n \n, \n \n \n defaultgeneralratetype\n \n as \n \n defaultgeneralratetype\n \n, \n \n \n eliminationalgo\n \n as \n \n eliminationalgo\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includeinrevaldefault\n \n as \n \n includeinrevaldefault\n \n, \n \n \n internalid\n \n as \n \n internalid\n \n, \n \n \n \n \n \"left\"\n \n \n \n as \n \n \n \n \"left\"\n \n \n \n, \n \n \n longname\n \n as \n \n longname\n \n, \n \n \n seqnum\n \n as \n \n seqnum\n \n, \n \n \n usercanchangerevaloption\n \n as \n \n usercanchangerevaloption\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n id as account_type_id,\n balancesheet = 'T' as is_balancesheet,\"left\"= 'T' as is_leftside,\n longname as type_name\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\""}, "model.netsuite_source.stg_netsuite2__entities": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_entity_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entities_tmp", "model.netsuite_source.stg_netsuite2__entities_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entities"], "unique_id": "model.netsuite_source.stg_netsuite2__entities", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__entities_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__entities_tmp')),\n staging_columns=get_entity_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as entity_id,\n parent as parent_id,\n entitytitle as entity_name,\n type as entity_type,\n isperson = 'T' as is_person,\n contact as contact_id,\n customer as customer_id,\n employee as employee_id,\n project as job_id,\n vendor as vendor_id\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__entities.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entities.sql", "name": "stg_netsuite2__entities", "alias": "stg_netsuite2__entities", "checksum": {"name": "sha256", "checksum": "96c2b4dc091545f8b992e7fd62354e3df9fcf7bfe2756a44bad286e691454492"}, "tags": [], "refs": [["stg_netsuite2__entities_tmp"], ["stg_netsuite2__entities_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all entities in Netsuite.", "columns": {"entity_id": {"name": "entity_id", "description": "Th \"The entity id of the entity used for the record.\"e unique identifier of the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The \"Unique identifier of the customer.\"unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_name": {"name": "entity_name", "description": "The entity name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating whether the entity is a person.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_id": {"name": "job_id", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_type": {"name": "entity_type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Th \"The unique identifier of the vendor.\"e unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entities.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.611362, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n altemail\n \n as \n \n altemail\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n altphone\n \n as \n \n altphone\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n employee\n \n as \n \n employee\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n genericresource\n \n as \n \n genericresource\n \n, \n \n \n homephone\n \n as \n \n homephone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n laborcost\n \n as \n \n laborcost\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n middlename\n \n as \n \n middlename\n \n, \n \n \n mobilephone\n \n as \n \n mobilephone\n \n, \n \n \n othername\n \n as \n \n othername\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n partner\n \n as \n \n partner\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n project\n \n as \n \n project\n \n, \n \n \n projecttemplate\n \n as \n \n projecttemplate\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n toplevelparent\n \n as \n \n toplevelparent\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as entity_id,\n parent as parent_id,\n entitytitle as entity_name,\n type as entity_type,\n isperson = 'T' as is_person,\n contact as contact_id,\n customer as customer_id,\n employee as employee_id,\n project as job_id,\n vendor as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\""}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounting_periods_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_periods"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_periods_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_periods_tmp')),\n staging_columns=get_netsuite2_accounting_periods_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_period_id,\n parent as parent_id, \n periodname as name,\n startdate as starting_at,\n enddate as ending_at,\n closedondate as closed_at,\n isquarter = 'T' as is_quarter,\n isyear = 'T' as is_year,\n isadjust = 'T' as is_adjustment,\n isposting = 'T' as is_posting,\n closed = 'T' as is_closed,\n alllocked = 'T' as is_all_locked,\n arlocked = 'T' as is_ar_locked,\n aplocked = 'T' as is_ap_locked\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_periods.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_periods.sql", "name": "stg_netsuite2__accounting_periods", "alias": "stg_netsuite2__accounting_periods", "checksum": {"name": "sha256", "checksum": "8007d75811cab3d6e1a2041de1c45e56095ba2e376c83d96bdeb8909527b4f7d"}, "tags": [], "refs": [["stg_netsuite2__accounting_periods_tmp"], ["stg_netsuite2__accounting_periods_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_quarter": {"name": "is_quarter", "description": "Boolean indicating if the accounting period is the initial quarter.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_year": {"name": "is_year", "description": "Boolean indicating if the accounting period is the initial period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Boolean indicating if the accounting period is an adjustment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the accounting period is posting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_all_locked": {"name": "is_all_locked", "description": "Boolean indicating if all the accounting periods are locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_ar_locked": {"name": "is_ar_locked", "description": "Boolean indicating if the ar accounting period is locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_ap_locked": {"name": "is_ap_locked", "description": "Boolean indicating if the ap accounting period is locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_periods.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.599118, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n alllocked\n \n as \n \n alllocked\n \n, \n \n \n allownonglchanges\n \n as \n \n allownonglchanges\n \n, \n \n \n aplocked\n \n as \n \n aplocked\n \n, \n \n \n arlocked\n \n as \n \n arlocked\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n closedondate\n \n as \n \n closedondate\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n enddate\n \n as \n \n enddate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isadjust\n \n as \n \n isadjust\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isposting\n \n as \n \n isposting\n \n, \n \n \n isquarter\n \n as \n \n isquarter\n \n, \n \n \n isyear\n \n as \n \n isyear\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n periodname\n \n as \n \n periodname\n \n, \n \n \n startdate\n \n as \n \n startdate\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_period_id,\n parent as parent_id, \n periodname as name,\n startdate as starting_at,\n enddate as ending_at,\n closedondate as closed_at,\n isquarter = 'T' as is_quarter,\n isyear = 'T' as is_year,\n isadjust = 'T' as is_adjustment,\n isposting = 'T' as is_posting,\n closed = 'T' as is_closed,\n alllocked = 'T' as is_all_locked,\n arlocked = 'T' as is_ar_locked,\n aplocked = 'T' as is_ap_locked\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\""}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accountingperiodfiscalcalendars_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_period_fiscal_cal"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_period_fiscal_cal_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_period_fiscal_cal_tmp')),\n staging_columns=get_accountingperiodfiscalcalendars_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingperiod as accounting_period_id,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "name": "stg_netsuite2__accounting_period_fiscal_cal", "alias": "stg_netsuite2__accounting_period_fiscal_cal", "checksum": {"name": "sha256", "checksum": "2678f0fb6ff02c4a845196aa5ca3538a4a526d711e6fd3a36bda1bd96facb37d"}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal_tmp"], ["stg_netsuite2__accounting_period_fiscal_cal_tmp"]], "sources": [], "metrics": [], "description": "A table containing the accounting fiscal calendar periods.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.596755, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountingperiod\n \n as \n \n accountingperiod\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n fiscalcalendar\n \n as \n \n fiscalcalendar\n \n, \n \n \n parent\n \n as \n \n parent\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingperiod as accounting_period_id,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\""}, "model.netsuite_source.stg_netsuite2__customers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_customers_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__customers_tmp", "model.netsuite_source.stg_netsuite2__customers_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__customers"], "unique_id": "model.netsuite_source.stg_netsuite2__customers", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__customers_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__customers_tmp')),\n staging_columns=get_netsuite2_customers_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as customer_id,\n entityid as entity_id,\n externalid as customer_external_id,\n parent as parent_id,\n isperson = 'T' as is_person,\n companyname as company_name,\n firstname as first_name,\n lastname as last_name,\n email as email_address,\n phone as phone_number,\n defaultbillingaddress as default_billing_address_id,\n defaultshippingaddress as default_shipping_address_id,\n receivablesaccount as receivables_account_id,\n currency as currency_id,\n firstorderdate as date_first_order_at\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('customers_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__customers.sql", "original_file_path": "models/netsuite2/stg_netsuite2__customers.sql", "name": "stg_netsuite2__customers", "alias": "stg_netsuite2__customers", "checksum": {"name": "sha256", "checksum": "d0d06f971eb7ccff2cbba7e2d5b137177f34095ea8781804fbea74025b14189f"}, "tags": [], "refs": [["stg_netsuite2__customers_tmp"], ["stg_netsuite2__customers_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating if the customer is an individual person.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Last name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Customers email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_billing_address_id": {"name": "default_billing_address_id", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_shipping_address_id": {"name": "default_shipping_address_id", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivables_account_id": {"name": "receivables_account_id", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__customers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.608005, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n receivablesaccount\n \n as \n \n receivablesaccount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n firstorderdate\n \n as \n \n firstorderdate\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as customer_id,\n entityid as entity_id,\n externalid as customer_external_id,\n parent as parent_id,\n isperson = 'T' as is_person,\n companyname as company_name,\n firstname as first_name,\n lastname as last_name,\n email as email_address,\n phone as phone_number,\n defaultbillingaddress as default_billing_address_id,\n defaultshippingaddress as default_shipping_address_id,\n receivablesaccount as receivables_account_id,\n currency as currency_id,\n firstorderdate as date_first_order_at\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\""}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accountingbooksubsidiaries_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_book_subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_book_subsidiaries_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_book_subsidiaries_tmp')),\n staging_columns=get_accountingbooksubsidiaries_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingbook as accounting_book_id,\n status,\n subsidiary as subsidiary_id\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "name": "stg_netsuite2__accounting_book_subsidiaries", "alias": "stg_netsuite2__accounting_book_subsidiaries", "checksum": {"name": "sha256", "checksum": "c118a8fc8aada69254a37255a604f17695966064c01244257bc501aa4e843718"}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries_tmp"], ["stg_netsuite2__accounting_book_subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "A table containing the various account books and the respective subsidiaries.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.593993, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountingbook\n \n as \n \n accountingbook\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingbook as accounting_book_id,\n status,\n subsidiary as subsidiary_id\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\""}, "model.netsuite_source.stg_netsuite2__accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounts_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts_tmp", "model.netsuite_source.stg_netsuite2__accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounts"], "unique_id": "model.netsuite_source.stg_netsuite2__accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounts_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounts_tmp')),\n staging_columns=get_netsuite2_accounts_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as account_id, \n externalid as account_external_id,\n parent as parent_id,\n acctnumber as account_number,\n accttype as account_type_id,\n fullname as name,\n description as account_description,\n deferralacct as deferral_account_id,\n cashflowrate as cash_flow_rate_type,\n generalrate as general_rate_type,\n currency as currency_id,\n class as class_id,\n department as department_id,\n location as location_id,\n includechildren = 'T' as is_including_child_subs,\n isinactive = 'T' as is_inactive,\n issummary = 'T' as is_summary,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }}\n \n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounts.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounts.sql", "name": "stg_netsuite2__accounts", "alias": "stg_netsuite2__accounts", "checksum": {"name": "sha256", "checksum": "784d22fb98d78fd586615f77eacad4791287ef26e5638f184eb117fe0f008585"}, "tags": [], "refs": [["stg_netsuite2__accounts_tmp"], ["stg_netsuite2__accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounts set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_external_id": {"name": "account_external_id", "description": "Reference to the external account,", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Netsuite generate account number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Reference to the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_description": {"name": "account_description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferral_account_id": {"name": "deferral_account_id", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_rate_type": {"name": "cash_flow_rate_type", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_including_child_subs": {"name": "is_including_child_subs", "description": "Boolean indicating if the account includes sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the account is inactive.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_summary": {"name": "is_summary", "description": "Boolean indicating if the account is a summary account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.602101, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n acctnumber\n \n as \n \n acctnumber\n \n, \n \n \n accttype\n \n as \n \n accttype\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n deferralacct\n \n as \n \n deferralacct\n \n, \n \n \n cashflowrate\n \n as \n \n cashflowrate\n \n, \n \n \n generalrate\n \n as \n \n generalrate\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n class\n \n as \n \n class\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n includechildren\n \n as \n \n includechildren\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n issummary\n \n as \n \n issummary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as account_id, \n externalid as account_external_id,\n parent as parent_id,\n acctnumber as account_number,\n accttype as account_type_id,\n fullname as name,\n description as account_description,\n deferralacct as deferral_account_id,\n cashflowrate as cash_flow_rate_type,\n generalrate as general_rate_type,\n currency as currency_id,\n class as class_id,\n department as department_id,\n location as location_id,\n includechildren = 'T' as is_including_child_subs,\n isinactive = 'T' as is_inactive,\n issummary = 'T' as is_summary,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\""}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_transaction_lines_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_lines"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transaction_lines_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transaction_lines_tmp')),\n staging_columns=get_netsuite2_transaction_lines_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_line_id,\n transaction as transaction_id,\n linesequencenumber as transaction_line_number,\n memo,\n entity as entity_id,\n item as item_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n department as department_id,\n isclosed = 'T' as is_closed,\n isbillable = 'T' as is_billable,\n iscogs = 'T' as is_cogs,\n cleared = 'T' as is_cleared,\n commitmentfirm = 'T' as is_commitment_firm,\n mainline = 'T' as is_main_line,\n taxline = 'T' as is_tax_line\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transaction_lines_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_lines.sql", "name": "stg_netsuite2__transaction_lines", "alias": "stg_netsuite2__transaction_lines", "checksum": {"name": "sha256", "checksum": "f9c8883dafafdece7fb1ec344c62126790721198f540457a66a762808d96bc3b"}, "tags": [], "refs": [["stg_netsuite2__transaction_lines_tmp"], ["stg_netsuite2__transaction_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_number": {"name": "transaction_line_number", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the transaction line is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_billable": {"name": "is_billable", "description": "Boolean indicating if the transaction line is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_cogs": {"name": "is_cogs", "description": "Boolean indicating if the transaction line is a cost of goods sold entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_cleared": {"name": "is_cleared", "description": "Boolean indicating if the transaction line is cleared.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_commitment_firm": {"name": "is_commitment_firm", "description": "Boolean indicating if the transaction line is a commitment firm.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_main_line": {"name": "is_main_line", "description": "Boolean indicating if the transaction line is a main line entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_tax_line": {"name": "is_tax_line", "description": "Boolean indicating if the transaction line is a tax line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.627028, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n transaction\n \n as \n \n transaction\n \n, \n \n \n linesequencenumber\n \n as \n \n linesequencenumber\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n entity\n \n as \n \n entity\n \n, \n \n \n item\n \n as \n \n item\n \n, \n \n \n class\n \n as \n \n class\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n isclosed\n \n as \n \n isclosed\n \n, \n \n \n isbillable\n \n as \n \n isbillable\n \n, \n \n \n iscogs\n \n as \n \n iscogs\n \n, \n \n \n cleared\n \n as \n \n cleared\n \n, \n \n \n commitmentfirm\n \n as \n \n commitmentfirm\n \n, \n \n \n mainline\n \n as \n \n mainline\n \n, \n \n \n taxline\n \n as \n \n taxline\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_line_id,\n transaction as transaction_id,\n linesequencenumber as transaction_line_number,\n memo,\n entity as entity_id,\n item as item_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n department as department_id,\n isclosed = 'T' as is_closed,\n isbillable = 'T' as is_billable,\n iscogs = 'T' as is_cogs,\n cleared = 'T' as is_cleared,\n commitmentfirm = 'T' as is_commitment_firm,\n mainline = 'T' as is_main_line,\n taxline = 'T' as is_tax_line\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\""}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_subsidiaries_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__subsidiaries_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__subsidiaries_tmp')),\n staging_columns=get_netsuite2_subsidiaries_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as subsidiary_id,\n name,\n fullname as full_name,\n email as email_address,\n mainaddress as main_address_id,\n country,\n state,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('subsidiaries_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__subsidiaries.sql", "name": "stg_netsuite2__subsidiaries", "alias": "stg_netsuite2__subsidiaries", "checksum": {"name": "sha256", "checksum": "3be3646f51e6cbce641a4069402d860f7db873e67e2cd8f73a58345d3a91b378"}, "tags": [], "refs": [["stg_netsuite2__subsidiaries_tmp"], ["stg_netsuite2__subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.6217191, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n mainaddress\n \n as \n \n mainaddress\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n fiscalcalendar\n \n as \n \n fiscalcalendar\n \n, \n \n \n parent\n \n as \n \n parent\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as subsidiary_id,\n name,\n fullname as full_name,\n email as email_address,\n mainaddress as main_address_id,\n country,\n state,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\""}, "model.netsuite_source.stg_netsuite2__entity_address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_entityaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entity_address_tmp", "model.netsuite_source.stg_netsuite2__entity_address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entity_address"], "unique_id": "model.netsuite_source.stg_netsuite2__entity_address", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__entity_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__entity_address_tmp')),\n staging_columns=get_entityaddress_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__entity_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entity_address.sql", "name": "stg_netsuite2__entity_address", "alias": "stg_netsuite2__entity_address", "checksum": {"name": "sha256", "checksum": "71fa72175fd4e45cae5f56d051c957830f1b8593aaa90b849d9610dd48668b2c"}, "tags": [], "refs": [["stg_netsuite2__entity_address_tmp"], ["stg_netsuite2__entity_address_tmp"]], "sources": [], "metrics": [], "description": "A table containing addresses and the various entities which they map.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entity_address.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.613086, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n addr1\n \n as \n \n addr1\n \n, \n \n \n addr2\n \n as \n \n addr2\n \n, \n \n \n addr3\n \n as \n \n addr3\n \n, \n \n \n addressee\n \n as \n \n addressee\n \n, \n \n \n addrphone\n \n as \n \n addrphone\n \n, \n \n \n addrtext\n \n as \n \n addrtext\n \n, \n \n \n attention\n \n as \n \n attention\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n dropdownstate\n \n as \n \n dropdownstate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n nkey\n \n as \n \n nkey\n \n, \n \n \n override\n \n as \n \n override\n \n, \n \n \n recordowner\n \n as \n \n recordowner\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address\""}, "model.netsuite_source.stg_netsuite2__location_main_address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_locationmainaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp", "model.netsuite_source.stg_netsuite2__location_main_address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__location_main_address"], "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__location_main_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__location_main_address_tmp')),\n staging_columns=get_locationmainaddress_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__location_main_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__location_main_address.sql", "name": "stg_netsuite2__location_main_address", "alias": "stg_netsuite2__location_main_address", "checksum": {"name": "sha256", "checksum": "71d9ec2fd5ab6d7c0a577fc3bbdc4444c6c266d474e88c3906f12a2d3798dfaf"}, "tags": [], "refs": [["stg_netsuite2__location_main_address_tmp"], ["stg_netsuite2__location_main_address_tmp"]], "sources": [], "metrics": [], "description": "A table containing the location main addresses.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__location_main_address.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.618846, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n addr1\n \n as \n \n addr1\n \n, \n \n \n addr2\n \n as \n \n addr2\n \n, \n \n \n addr3\n \n as \n \n addr3\n \n, \n \n \n addressee\n \n as \n \n addressee\n \n, \n \n \n addrphone\n \n as \n \n addrphone\n \n, \n \n \n addrtext\n \n as \n \n addrtext\n \n, \n \n \n attention\n \n as \n \n attention\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n dropdownstate\n \n as \n \n dropdownstate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n nkey\n \n as \n \n nkey\n \n, \n \n \n override\n \n as \n \n override\n \n, \n \n \n recordowner\n \n as \n \n recordowner\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address\""}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendorcategory_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendor_categories"], "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_vendor_categories', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__vendor_categories_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__vendor_categories_tmp')),\n staging_columns=get_vendorcategory_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as vendor_category_id,\n name,\n _fivetran_synced\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__vendor_categories.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendor_categories.sql", "name": "stg_netsuite2__vendor_categories", "alias": "stg_netsuite2__vendor_categories", "checksum": {"name": "sha256", "checksum": "97c7d63cfd24e9435a2fdb5c2754a8ced8122a34eb4ca8261ba58c1d0d6b85ad"}, "tags": [], "refs": [["stg_netsuite2__vendor_categories_tmp"], ["stg_netsuite2__vendor_categories_tmp"]], "sources": [], "metrics": [], "description": "A table containing categories and how they map to vendors.", "columns": {"vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendor_categories.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.630173, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n istaxagency\n \n as \n \n istaxagency\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as vendor_category_id,\n name,\n _fivetran_synced\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\""}, "model.netsuite_source.stg_netsuite2__departments": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_departments_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__departments_tmp", "model.netsuite_source.stg_netsuite2__departments_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__departments"], "unique_id": "model.netsuite_source.stg_netsuite2__departments", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__departments_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__departments_tmp')),\n staging_columns=get_netsuite2_departments_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as department_id,\n parent as parent_id,\n name,\n fullname as full_name,\n subsidiary as subsidiary_id,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('departments_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__departments.sql", "original_file_path": "models/netsuite2/stg_netsuite2__departments.sql", "name": "stg_netsuite2__departments", "alias": "stg_netsuite2__departments", "checksum": {"name": "sha256", "checksum": "11fa478222fba8dfc22c4d63b005fe315d9fb8f98dbf5e5e3af23a3304d763ed"}, "tags": [], "refs": [["stg_netsuite2__departments_tmp"], ["stg_netsuite2__departments_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all departments set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the department is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__departments.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.609663, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as department_id,\n parent as parent_id,\n name,\n fullname as full_name,\n subsidiary as subsidiary_id,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\""}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transactionaccountingline_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_accounting_lines"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transaction_accounting_lines_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transaction_accounting_lines_tmp')),\n staging_columns=get_transactionaccountingline_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n transaction as transaction_id,\n transactionline as transaction_line_id,\n accountingbook as accounting_book_id,\n account as account_id,\n posting = 'T' as is_posting,\n amount,\n credit as credit_amount,\n debit as debit_amount,\n netamount as net_amount,\n amountpaid as paid_amount,\n amountunpaid as unpaid_amount\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "name": "stg_netsuite2__transaction_accounting_lines", "alias": "stg_netsuite2__transaction_accounting_lines", "checksum": {"name": "sha256", "checksum": "8f11b9036edda818da5d940ba0b8f012be8602910c6488dac1b8f0c854165e1a"}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines_tmp"], ["stg_netsuite2__transaction_accounting_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The tra \"The transaction id of referenced for the record.\"nsaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "net_amount": {"name": "net_amount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Reference to the accounting book of the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the entry is posting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_amount": {"name": "credit_amount", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "debit_amount": {"name": "debit_amount", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "paid_amount": {"name": "paid_amount", "description": "Total amount paid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unpaid_amount": {"name": "unpaid_amount", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.62384, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account\n \n as \n \n account\n \n, \n \n \n accountingbook\n \n as \n \n accountingbook\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amountlinked\n \n as \n \n amountlinked\n \n, \n \n \n amountpaid\n \n as \n \n amountpaid\n \n, \n \n \n amountunpaid\n \n as \n \n amountunpaid\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n debit\n \n as \n \n debit\n \n, \n \n \n exchangerate\n \n as \n \n exchangerate\n \n, \n \n \n netamount\n \n as \n \n netamount\n \n, \n \n \n overheadparentitem\n \n as \n \n overheadparentitem\n \n, \n \n \n paymentamountunused\n \n as \n \n paymentamountunused\n \n, \n \n \n paymentamountused\n \n as \n \n paymentamountused\n \n, \n \n \n posting\n \n as \n \n posting\n \n, \n \n \n transaction\n \n as \n \n transaction\n \n, \n \n \n transactionline\n \n as \n \n transactionline\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n transaction as transaction_id,\n transactionline as transaction_line_id,\n accountingbook as accounting_book_id,\n account as account_id,\n posting = 'T' as is_posting,\n amount,\n credit as credit_amount,\n debit as debit_amount,\n netamount as net_amount,\n amountpaid as paid_amount,\n amountunpaid as unpaid_amount\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\""}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__consolidated_exchange_rates"], "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__consolidated_exchange_rates_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__consolidated_exchange_rates_tmp')),\n staging_columns=get_netsuite2_consolidated_exchange_rates_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as consolidated_exchange_rate_id,\n postingperiod as accounting_period_id,\n fromcurrency as from_currency_id,\n fromsubsidiary as from_subsidiary_id,\n tocurrency as to_currency_id,\n tosubsidiary as to_subsidiary_id,\n currentrate as current_rate, \n averagerate as average_rate,\n historicalrate as historical_rate\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('consolidated_exchange_rates_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "name": "stg_netsuite2__consolidated_exchange_rates", "alias": "stg_netsuite2__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "d818a9207416d913242d57089bfdf69d9c3f9e0c0d865ec51ae24b6b36a93c34"}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates_tmp"], ["stg_netsuite2__consolidated_exchange_rates_tmp"]], "sources": [], "metrics": [], "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"consolidated_exchange_rate_id": {"name": "consolidated_exchange_rate_id", "description": "unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_currency_id": {"name": "from_currency_id", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_currency_id": {"name": "to_currency_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.604864, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n averagerate\n \n as \n \n averagerate\n \n, \n \n \n currentrate\n \n as \n \n currentrate\n \n, \n \n \n fromcurrency\n \n as \n \n fromcurrency\n \n, \n \n \n fromsubsidiary\n \n as \n \n fromsubsidiary\n \n, \n \n \n historicalrate\n \n as \n \n historicalrate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n postingperiod\n \n as \n \n postingperiod\n \n, \n \n \n tocurrency\n \n as \n \n tocurrency\n \n, \n \n \n tosubsidiary\n \n as \n \n tosubsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as consolidated_exchange_rate_id,\n postingperiod as accounting_period_id,\n fromcurrency as from_currency_id,\n fromsubsidiary as from_subsidiary_id,\n tocurrency as to_currency_id,\n tosubsidiary as to_subsidiary_id,\n currentrate as current_rate, \n averagerate as average_rate,\n historicalrate as historical_rate\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\""}, "model.netsuite_source.stg_netsuite2__accounting_books": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounting_books_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp", "model.netsuite_source.stg_netsuite2__accounting_books_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_books"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_books_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_books_tmp')),\n staging_columns=get_netsuite2_accounting_books_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_book_id,\n name as accounting_book_name,\n basebook as base_book_id,\n effectiveperiod as effective_period_id,\n isadjustmentonly = 'T' as is_adjustment_only,\n isconsolidated = 'T' as is_consolidated,\n contingentrevenuehandling as is_contingent_revenue_handling,\n isprimary = 'T' as is_primary,\n twosteprevenueallocation as is_two_step_revenue_allocation\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_books.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_books.sql", "name": "stg_netsuite2__accounting_books", "alias": "stg_netsuite2__accounting_books", "checksum": {"name": "sha256", "checksum": "e788e1638657cbb7b1ed9812d6cfb43592b178e898dc43019c94f3c309dc2339"}, "tags": [], "refs": [["stg_netsuite2__accounting_books_tmp"], ["stg_netsuite2__accounting_books_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_book_id": {"name": "base_book_id", "description": "Reference to the base book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_period_id": {"name": "effective_period_id", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment_only": {"name": "is_adjustment_only", "description": "Boolean indicating if the accounting book is an adjustment only.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_consolidated": {"name": "is_consolidated", "description": "Boolean indicating if the accounting book is a consolidated entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_contingent_revenue_handling": {"name": "is_contingent_revenue_handling", "description": "Boolean indicating if the accounting book is contingent revenue handling.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating if the accounting book is a primary entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_two_step_revenue_allocation": {"name": "is_two_step_revenue_allocation", "description": "Boolean indicating if the accounting book is a two step revenue allocation entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_books.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.595814, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n basebook\n \n as \n \n basebook\n \n, \n cast(null as TEXT) as \n \n contingentrevenuehandling\n \n , \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n effectiveperiod\n \n as \n \n effectiveperiod\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isadjustmentonly\n \n as \n \n isadjustmentonly\n \n, \n \n \n isconsolidated\n \n as \n \n isconsolidated\n \n, \n \n \n isprimary\n \n as \n \n isprimary\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n subsidiariesstring\n \n as \n \n subsidiariesstring\n \n, \n cast(null as TEXT) as \n \n twosteprevenueallocation\n \n , \n cast(null as TEXT) as \n \n unbilledreceivablegrouping\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_book_id,\n name as accounting_book_name,\n basebook as base_book_id,\n effectiveperiod as effective_period_id,\n isadjustmentonly = 'T' as is_adjustment_only,\n isconsolidated = 'T' as is_consolidated,\n contingentrevenuehandling as is_contingent_revenue_handling,\n isprimary = 'T' as is_primary,\n twosteprevenueallocation as is_two_step_revenue_allocation\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\""}, "model.netsuite_source.stg_netsuite2__items": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_items_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__items_tmp", "model.netsuite_source.stg_netsuite2__items_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__items"], "unique_id": "model.netsuite_source.stg_netsuite2__items", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__items_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__items_tmp')),\n staging_columns=get_netsuite2_items_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as item_id,\n fullname as name,\n itemtype as type_name,\n description as sales_description,\n department as department_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n assetaccount as asset_account_id,\n expenseaccount as expense_account_id,\n gainlossaccount as gain_loss_account_id,\n incomeaccount as income_account_id,\n intercoexpenseaccount as interco_expense_account_id,\n intercoincomeaccount as interco_income_account_id,\n deferralaccount as deferred_expense_account_id,\n deferredrevenueaccount as deferred_revenue_account_id,\n parent as parent_item_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__items.sql", "original_file_path": "models/netsuite2/stg_netsuite2__items.sql", "name": "stg_netsuite2__items", "alias": "stg_netsuite2__items", "checksum": {"name": "sha256", "checksum": "4ab457d19f1ffedf51a61dd39255596ec7199e281ebda2927355ee002d5b2614"}, "tags": [], "refs": [["stg_netsuite2__items_tmp"], ["stg_netsuite2__items_tmp"]], "sources": [], "metrics": [], "description": "Table detailing information about the items created in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "Item type name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "gain_loss_account_id": {"name": "gain_loss_account_id", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "interco_expense_account_id": {"name": "interco_expense_account_id", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "interco_income_account_id": {"name": "interco_income_account_id", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferred_expense_account_id": {"name": "deferred_expense_account_id", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferred_revenue_account_id": {"name": "deferred_revenue_account_id", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__items.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.6157892, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items_tmp\"\n\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as INT) as \n \n alternatedemandsourceitem\n \n , \n cast(null as INT) as \n \n amortizationperiod\n \n , \n cast(null as INT) as \n \n amortizationtemplate\n \n , \n \n \n assetaccount\n \n as \n \n assetaccount\n \n, \n cast(null as TEXT) as \n \n atpmethod\n \n , \n cast(null as TEXT) as \n \n autoexpandkitforrevenuemgmt\n \n , \n cast(null as FLOAT) as \n \n averagecost\n \n , \n cast(null as INT) as \n \n backwardconsumptiondays\n \n , \n cast(null as INT) as \n \n billexchratevarianceacct\n \n , \n cast(null as INT) as \n \n billingschedule\n \n , \n cast(null as INT) as \n \n billpricevarianceacct\n \n , \n cast(null as INT) as \n \n billqtyvarianceacct\n \n , \n cast(null as TEXT) as \n \n buildentireassembly\n \n , \n cast(null as FLOAT) as \n \n buildtime\n \n , \n \n \n class\n \n as \n \n class\n \n, \n cast(null as INT) as \n \n consumptionunit\n \n , \n cast(null as TEXT) as \n \n copydescription\n \n , \n cast(null as FLOAT) as \n \n cost\n \n , \n cast(null as FLOAT) as \n \n costestimate\n \n , \n cast(null as TEXT) as \n \n costestimatetype\n \n , \n cast(null as TEXT) as \n \n costingmethod\n \n , \n cast(null as TEXT) as \n \n costingmethoddisplay\n \n , \n cast(null as TEXT) as \n \n countryofmanufacture\n \n , \n cast(null as TIMESTAMP) as \n \n createddate\n \n , \n cast(null as INT) as \n \n createexpenseplanson\n \n , \n cast(null as TEXT) as \n \n createjob\n \n , \n cast(null as INT) as \n \n createrevenueplanson\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n \n \n deferralaccount\n \n as \n \n deferralaccount\n \n, \n cast(null as INT) as \n \n deferredrevenueaccount\n \n , \n cast(null as TEXT) as \n \n deferrevrec\n \n , \n cast(null as FLOAT) as \n \n demandmodifier\n \n , \n cast(null as TEXT) as \n \n demandsource\n \n , \n cast(null as INT) as \n \n demandtimefence\n \n , \n \n \n department\n \n as \n \n department\n \n, \n \n \n description\n \n as \n \n description\n \n, \n cast(null as TEXT) as \n \n directrevenueposting\n \n , \n cast(null as TEXT) as \n \n displayname\n \n , \n cast(null as INT) as \n \n dropshipexpenseaccount\n \n , \n cast(null as TEXT) as \n \n enforceminqtyinternally\n \n , \n cast(null as TEXT) as \n \n excludefromsitemap\n \n , \n \n \n expenseaccount\n \n as \n \n expenseaccount\n \n, \n cast(null as INT) as \n \n expenseamortizationrule\n \n , \n cast(null as TEXT) as \n \n externalid\n \n , \n cast(null as FLOAT) as \n \n fixedlotsize\n \n , \n cast(null as INT) as \n \n forwardconsumptiondays\n \n , \n cast(null as TEXT) as \n \n froogleproductfeed\n \n , \n \n \n fullname\n \n as \n \n fullname\n \n, \n cast(null as FLOAT) as \n \n fxcost\n \n , \n \n \n gainlossaccount\n \n as \n \n gainlossaccount\n \n, \n cast(null as TEXT) as \n \n generateaccruals\n \n , \n cast(null as FLOAT) as \n \n handlingcost\n \n , \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n includechildren\n \n , \n \n \n incomeaccount\n \n as \n \n incomeaccount\n \n, \n cast(null as INT) as \n \n intercodefrevaccount\n \n , \n cast(null as INT) as \n \n intercoexpenseaccount\n \n , \n cast(null as INT) as \n \n intercoincomeaccount\n \n , \n cast(null as TEXT) as \n \n isdropshipitem\n \n , \n cast(null as TEXT) as \n \n isfulfillable\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n islotitem\n \n , \n cast(null as TEXT) as \n \n isonline\n \n , \n cast(null as TEXT) as \n \n isphantom\n \n , \n cast(null as TEXT) as \n \n isserialitem\n \n , \n cast(null as TEXT) as \n \n isspecialorderitem\n \n , \n cast(null as TEXT) as \n \n isspecialworkorderitem\n \n , \n cast(null as TEXT) as \n \n itemid\n \n , \n cast(null as INT) as \n \n itemrevenuecategory\n \n , \n \n \n itemtype\n \n as \n \n itemtype\n \n, \n cast(null as TIMESTAMP) as \n \n lastmodifieddate\n \n , \n cast(null as FLOAT) as \n \n lastpurchaseprice\n \n , \n cast(null as INT) as \n \n leadtime\n \n , \n \n \n location\n \n as \n \n location\n \n, \n cast(null as TEXT) as \n \n manufacturer\n \n , \n cast(null as TEXT) as \n \n matchbilltoreceipt\n \n , \n cast(null as TEXT) as \n \n matrixitemnametemplate\n \n , \n cast(null as TEXT) as \n \n matrixtype\n \n , \n cast(null as INT) as \n \n maximumquantity\n \n , \n cast(null as INT) as \n \n minimumquantity\n \n , \n cast(null as TEXT) as \n \n mpn\n \n , \n cast(null as TEXT) as \n \n nextagcategory\n \n , \n cast(null as TEXT) as \n \n nextagproductfeed\n \n , \n cast(null as TEXT) as \n \n overallquantitypricingtype\n \n , \n \n \n parent\n \n as \n \n parent\n \n, \n cast(null as INT) as \n \n periodiclotsizedays\n \n , \n cast(null as TEXT) as \n \n periodiclotsizetype\n \n , \n cast(null as INT) as \n \n preferredlocation\n \n , \n cast(null as INT) as \n \n pricinggroup\n \n , \n cast(null as TEXT) as \n \n printitems\n \n , \n cast(null as INT) as \n \n prodpricevarianceacct\n \n , \n cast(null as INT) as \n \n prodqtyvarianceacct\n \n , \n cast(null as INT) as \n \n projectexpensetype\n \n , \n cast(null as INT) as \n \n projecttemplate\n \n , \n cast(null as TEXT) as \n \n purchasedescription\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as INT) as \n \n purchasepricevarianceacct\n \n , \n cast(null as INT) as \n \n purchaseunit\n \n , \n cast(null as INT) as \n \n quantitypricingschedule\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as TEXT) as \n \n relateditemsdescription\n \n , \n cast(null as INT) as \n \n rescheduleindays\n \n , \n cast(null as INT) as \n \n rescheduleoutdays\n \n , \n cast(null as FLOAT) as \n \n residual\n \n , \n cast(null as INT) as \n \n revenueallocationgroup\n \n , \n cast(null as INT) as \n \n revenuerecognitionrule\n \n , \n cast(null as INT) as \n \n revrecforecastrule\n \n , \n cast(null as INT) as \n \n revreclassfxaccount\n \n , \n cast(null as TEXT) as \n \n roundupascomponent\n \n , \n cast(null as FLOAT) as \n \n safetystocklevel\n \n , \n cast(null as INT) as \n \n saleunit\n \n , \n cast(null as INT) as \n \n scrapacct\n \n , \n cast(null as TEXT) as \n \n searchkeywords\n \n , \n cast(null as TEXT) as \n \n seasonaldemand\n \n , \n cast(null as TEXT) as \n \n shipindividually\n \n , \n cast(null as INT) as \n \n shippackage\n \n , \n cast(null as FLOAT) as \n \n shippingcost\n \n , \n cast(null as TEXT) as \n \n shoppingdotcomcategory\n \n , \n cast(null as TEXT) as \n \n shoppingproductfeed\n \n , \n cast(null as INT) as \n \n shopzillacategoryid\n \n , \n cast(null as TEXT) as \n \n shopzillaproductfeed\n \n , \n cast(null as TEXT) as \n \n sitemappriority\n \n , \n cast(null as TEXT) as \n \n stockdescription\n \n , \n cast(null as INT) as \n \n stockunit\n \n , \n cast(null as TEXT) as \n \n storedescription\n \n , \n cast(null as INT) as \n \n storedisplayimage\n \n , \n cast(null as TEXT) as \n \n storedisplayname\n \n , \n cast(null as INT) as \n \n storedisplaythumbnail\n \n , \n \n \n subsidiary\n \n as \n \n subsidiary\n \n, \n cast(null as TEXT) as \n \n subtype\n \n , \n cast(null as TEXT) as \n \n supplylotsizingmethod\n \n , \n cast(null as TEXT) as \n \n supplyreplenishmentmethod\n \n , \n cast(null as INT) as \n \n supplytimefence\n \n , \n cast(null as TEXT) as \n \n supplytype\n \n , \n cast(null as FLOAT) as \n \n totalquantityonhand\n \n , \n cast(null as FLOAT) as \n \n totalvalue\n \n , \n cast(null as FLOAT) as \n \n transferprice\n \n , \n cast(null as INT) as \n \n unbuildvarianceaccount\n \n , \n cast(null as INT) as \n \n unitstype\n \n , \n cast(null as TEXT) as \n \n upccode\n \n , \n cast(null as TEXT) as \n \n usebins\n \n , \n cast(null as TEXT) as \n \n usemarginalrates\n \n , \n cast(null as TEXT) as \n \n vendorname\n \n , \n cast(null as INT) as \n \n vendreturnvarianceaccount\n \n , \n cast(null as TEXT) as \n \n vsoedelivered\n \n , \n cast(null as TEXT) as \n \n vsoepermitdiscount\n \n , \n cast(null as TEXT) as \n \n vsoesopgroup\n \n , \n cast(null as FLOAT) as \n \n weight\n \n , \n cast(null as INT) as \n \n weightunit\n \n , \n cast(null as TEXT) as \n \n weightunits\n \n , \n cast(null as INT) as \n \n wipacct\n \n , \n cast(null as INT) as \n \n wipvarianceacct\n \n , \n cast(null as TEXT) as \n \n yahooproductfeed\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as item_id,\n fullname as name,\n itemtype as type_name,\n description as sales_description,\n department as department_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n assetaccount as asset_account_id,\n expenseaccount as expense_account_id,\n gainlossaccount as gain_loss_account_id,\n incomeaccount as income_account_id,\n intercoexpenseaccount as interco_expense_account_id,\n intercoincomeaccount as interco_income_account_id,\n deferralaccount as deferred_expense_account_id,\n deferredrevenueaccount as deferred_revenue_account_id,\n parent as parent_item_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\""}, "model.netsuite_source.stg_netsuite2__currencies": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies_tmp", "model.netsuite_source.stg_netsuite2__currencies_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__currencies"], "unique_id": "model.netsuite_source.stg_netsuite2__currencies", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__currencies_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__currencies_tmp')),\n staging_columns=get_netsuite2_currencies_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as currency_id,\n name,\n symbol\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__currencies.sql", "original_file_path": "models/netsuite2/stg_netsuite2__currencies.sql", "name": "stg_netsuite2__currencies", "alias": "stg_netsuite2__currencies", "checksum": {"name": "sha256", "checksum": "1732f9e10cdf1c28cb34fff21a98ce324488fb97373e28f948479653fddb4f52"}, "tags": [], "refs": [["stg_netsuite2__currencies_tmp"], ["stg_netsuite2__currencies_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all currency information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__currencies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.6056561, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n currencyprecision\n \n as \n \n currencyprecision\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n displaysymbol\n \n as \n \n displaysymbol\n \n, \n \n \n exchangerate\n \n as \n \n exchangerate\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fxrateupdatetimezone\n \n as \n \n fxrateupdatetimezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includeinfxrateupdates\n \n as \n \n includeinfxrateupdates\n \n, \n \n \n isbasecurrency\n \n as \n \n isbasecurrency\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n overridecurrencyformat\n \n as \n \n overridecurrencyformat\n \n, \n \n \n symbol\n \n as \n \n symbol\n \n, \n \n \n symbolplacement\n \n as \n \n symbolplacement\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as currency_id,\n name,\n symbol\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\""}, "model.netsuite_source.stg_netsuite2__locations": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_locations_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__locations_tmp", "model.netsuite_source.stg_netsuite2__locations_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__locations"], "unique_id": "model.netsuite_source.stg_netsuite2__locations", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__locations_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__locations_tmp')),\n staging_columns=get_netsuite2_locations_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as location_id,\n name,\n fullname as full_name,\n mainaddress as main_address_id,\n parent as parent_id,\n subsidiary as subsidiary_id\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('locations_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__locations.sql", "original_file_path": "models/netsuite2/stg_netsuite2__locations.sql", "name": "stg_netsuite2__locations", "alias": "stg_netsuite2__locations", "checksum": {"name": "sha256", "checksum": "f209763d31da50bf88ec1381c272ebc8800cec9be699a5d2bb3d35ee83a213c3"}, "tags": [], "refs": [["stg_netsuite2__locations_tmp"], ["stg_netsuite2__locations_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__locations.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.620047, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n mainaddress\n \n as \n \n mainaddress\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as location_id,\n name,\n fullname as full_name,\n mainaddress as main_address_id,\n parent as parent_id,\n subsidiary as subsidiary_id\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\""}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.subsidiary"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "name": "stg_netsuite2__subsidiaries_tmp", "alias": "stg_netsuite2__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "6666ee27a531fb4f909f1a5bb1ed78860aaab0fce53c3a7d64110b1bb94f8978"}, "tags": [], "refs": [], "sources": [["netsuite2", "subsidiary"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.071636, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transactions_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transactions') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "name": "stg_netsuite2__transactions_tmp", "alias": "stg_netsuite2__transactions_tmp", "checksum": {"name": "sha256", "checksum": "1625f18a3c8501316cb07107ba8fa7193670933f4257bbb1d9af4ba906a2dad0"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.0754728, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions_tmp\""}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity_address"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entity_address_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_entity_address') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "name": "stg_netsuite2__entity_address_tmp", "alias": "stg_netsuite2__entity_address_tmp", "checksum": {"name": "sha256", "checksum": "fcf2a49835607b81e8b532e6103522e1ae39c31c40cab59ac1afe6d989ddf459"}, "tags": [], "refs": [], "sources": [["netsuite2", "entity_address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.079575, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address_tmp\""}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account_type"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__account_types_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_account_types') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "name": "stg_netsuite2__account_types_tmp", "alias": "stg_netsuite2__account_types_tmp", "checksum": {"name": "sha256", "checksum": "3415db1a2707377cc7b0653882967c59ed725db0dd959536151d511a41c678c1"}, "tags": [], "refs": [], "sources": [["netsuite2", "account_type"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.083173, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_periods_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_accounting_periods') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "name": "stg_netsuite2__accounting_periods_tmp", "alias": "stg_netsuite2__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "0149cbd8d601dfcba0487e44f82d6ec166fb513775670cf614d6c6be4164c437"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_period"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.086814, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods_tmp\""}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.job"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__jobs_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_jobs') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "name": "stg_netsuite2__jobs_tmp", "alias": "stg_netsuite2__jobs_tmp", "checksum": {"name": "sha256", "checksum": "14799bd78ef93ef464b4dca07908e6ee44a7ff9881faf86757d39b5f4b1d0fd9"}, "tags": [], "refs": [], "sources": [["netsuite2", "job"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.090452, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs_tmp\""}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_line"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transaction_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "name": "stg_netsuite2__transaction_lines_tmp", "alias": "stg_netsuite2__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "15ebc09543829a7c09c0e49c546ffa8aae2b509054f26f5cbf06f3aa31731c80"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.0941818, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines_tmp\""}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "name": "stg_netsuite2__accounts_tmp", "alias": "stg_netsuite2__accounts_tmp", "checksum": {"name": "sha256", "checksum": "2a8d008c5c30f44eca40fa5871ea2579d0b51cf45cf10a39addb620fd870259f"}, "tags": [], "refs": [], "sources": [["netsuite2", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.097894, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts_tmp\""}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.customer"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__customers_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_customers') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "name": "stg_netsuite2__customers_tmp", "alias": "stg_netsuite2__customers_tmp", "checksum": {"name": "sha256", "checksum": "e2db5f557cfe416e87f1b8fb38e2b62277871d2ed4c8b3f0ba83f35bcda6ecba"}, "tags": [], "refs": [], "sources": [["netsuite2", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.102211, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers_tmp\""}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entities_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_entities') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "name": "stg_netsuite2__entities_tmp", "alias": "stg_netsuite2__entities_tmp", "checksum": {"name": "sha256", "checksum": "bb55a24286c0f26fd9e40a0f56b694fed4a736385a94deeb64ee3360c1310c29"}, "tags": [], "refs": [], "sources": [["netsuite2", "entity"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.10587, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities_tmp\""}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.currency"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__currencies_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_currencies') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "name": "stg_netsuite2__currencies_tmp", "alias": "stg_netsuite2__currencies_tmp", "checksum": {"name": "sha256", "checksum": "1f06a4a8f01197479386859c92462ba485f304e6c944130f66424fb4511a5799"}, "tags": [], "refs": [], "sources": [["netsuite2", "currency"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.109623, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies_tmp\""}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendors_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_vendors') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "name": "stg_netsuite2__vendors_tmp", "alias": "stg_netsuite2__vendors_tmp", "checksum": {"name": "sha256", "checksum": "e18a924a82a09bd660ba8517d492632efd1c2eabb10e4979e93f422e558d8022"}, "tags": [], "refs": [], "sources": [["netsuite2", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.113313, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors_tmp\""}, "model.netsuite_source.stg_netsuite2__items_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.item"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__items_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_items') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__items_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "name": "stg_netsuite2__items_tmp", "alias": "stg_netsuite2__items_tmp", "checksum": {"name": "sha256", "checksum": "521a428cea21fb1a256cb1a87335aebc92154e37ead547e3e21b5deeae0ea6c2"}, "tags": [], "refs": [], "sources": [["netsuite2", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.1168928, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_books_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_books') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "name": "stg_netsuite2__accounting_books_tmp", "alias": "stg_netsuite2__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "c5d1ee56d0181cee10a2ab0599060ec8954702bfebc8663cc523ae85849de31d"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_book"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.1204748, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_period_fiscal_cal_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_period_fiscal_calendars') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "alias": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "checksum": {"name": "sha256", "checksum": "d88060ffff63d2d9030c23de1a17a15dd7a34ecda89e323dc7e9cf140a04b03a"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_period_fiscal_calendars"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.124979, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal_tmp\""}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor_category"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendor_categories_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_vendor_categories', true))) }}\n\nselect * \nfrom {{ var('netsuite2_vendor_categories') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "name": "stg_netsuite2__vendor_categories_tmp", "alias": "stg_netsuite2__vendor_categories_tmp", "checksum": {"name": "sha256", "checksum": "6dd5fe29284858908fa31920941227618d5bc33eee62ff15e447357c5f1d791a"}, "tags": [], "refs": [], "sources": [["netsuite2", "vendor_category"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.128723, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_book_subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_book_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "alias": "stg_netsuite2__accounting_book_subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "c7c5eee54b160ba7e7cc3ca69b4ff74939dcb9ca44966e3e1ef95650743e4d03"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_book_subsidiaries"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.1325629, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_accounting_line"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_accounting_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transaction_accounting_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "alias": "stg_netsuite2__transaction_accounting_lines_tmp", "checksum": {"name": "sha256", "checksum": "91bfd0a5babb67c22979bdb03a16a185b90199fc905d8f55ec34516aa3674991"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction_accounting_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.1363862, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines_tmp\""}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location_main_address"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__location_main_address_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_location_main_address') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "name": "stg_netsuite2__location_main_address_tmp", "alias": "stg_netsuite2__location_main_address_tmp", "checksum": {"name": "sha256", "checksum": "360d4cd8b3a246007978c640ed7a423c49b628411bda7d8aab78f431f973d4be"}, "tags": [], "refs": [], "sources": [["netsuite2", "location_main_address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.140054, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address_tmp\""}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__locations_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_locations') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "name": "stg_netsuite2__locations_tmp", "alias": "stg_netsuite2__locations_tmp", "checksum": {"name": "sha256", "checksum": "f9747c40667070b7685c826bbaa541ec10a5dbcb5682fad9e65aa2b28b8b7e42"}, "tags": [], "refs": [], "sources": [["netsuite2", "location"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.143928, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations_tmp\""}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.department"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__departments_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_departments') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "name": "stg_netsuite2__departments_tmp", "alias": "stg_netsuite2__departments_tmp", "checksum": {"name": "sha256", "checksum": "d5a6479a4a567ab3f6c9f85f6a42fb752ab7889065c4f63f1ded657023ff54c9"}, "tags": [], "refs": [], "sources": [["netsuite2", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.148938, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments_tmp\""}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.classification"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__classes_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_classes') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "name": "stg_netsuite2__classes_tmp", "alias": "stg_netsuite2__classes_tmp", "checksum": {"name": "sha256", "checksum": "c5d7c66aef27878ade36b031c9e26b523c76373ac106b0f7b618a8e76f3518a2"}, "tags": [], "refs": [], "sources": [["netsuite2", "classification"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.152852, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes_tmp\""}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__consolidated_exchange_rates_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_consolidated_exchange_rates') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "alias": "stg_netsuite2__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "8cfcb1761c48b4f9b640cc61023b4106f86122fd925bea98200d2453da892c36"}, "tags": [], "refs": [], "sources": [["netsuite2", "consolidated_exchange_rate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.156758, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\""}, "model.netsuite_source.stg_netsuite__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transactions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__transactions_tmp", "model.netsuite_source.stg_netsuite__transactions_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transactions"], "unique_id": "model.netsuite_source.stg_netsuite__transactions", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__transactions_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__transactions_tmp')),\n staging_columns=get_transactions_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n status,\n trandate as transaction_date,\n currency_id,\n accounting_period_id,\n due_date as due_date_at,\n transaction_type,\n is_intercompany,\n is_advanced_intercompany,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transactions_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__transactions.sql", "original_file_path": "models/netsuite/stg_netsuite__transactions.sql", "name": "stg_netsuite__transactions", "alias": "stg_netsuite__transactions", "checksum": {"name": "sha256", "checksum": "229453298c19897d353712750c015e5fb7c80d41715a69a04bdb44c1d42dd50a"}, "tags": [], "refs": [["stg_netsuite__transactions_tmp"], ["stg_netsuite__transactions_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_advanced_intercompany": {"name": "is_advanced_intercompany", "description": "Value indicating whether the transaction is an advanced intercompany journal entry (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.5423949, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n is_advanced_intercompany\n \n as \n \n is_advanced_intercompany\n \n, \n \n \n is_intercompany\n \n as \n \n is_intercompany\n \n, \n \n \n status\n \n as \n \n status\n \n, \n cast(null as TIMESTAMP) as \n \n trandate\n \n , \n \n \n transaction_id\n \n as \n \n transaction_id\n \n, \n \n \n transaction_type\n \n as \n \n transaction_type\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n status,\n trandate as transaction_date,\n currency_id,\n accounting_period_id,\n due_date as due_date_at,\n transaction_type,\n is_intercompany,\n is_advanced_intercompany,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\""}, "model.netsuite_source.stg_netsuite__customers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_customers_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__customers_tmp", "model.netsuite_source.stg_netsuite__customers_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__customers"], "unique_id": "model.netsuite_source.stg_netsuite__customers", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__customers_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__customers_tmp')),\n staging_columns=get_customers_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n customer_id,\n companyname as company_name,\n customer_extid as customer_external_id,\n city,\n state,\n zipcode,\n country,\n date_first_order as date_first_order_at,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('customers_pass_through_columns') }}\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__customers.sql", "original_file_path": "models/netsuite/stg_netsuite__customers.sql", "name": "stg_netsuite__customers", "alias": "stg_netsuite__customers", "checksum": {"name": "sha256", "checksum": "c9e469c13b1608752f66936b6d5f93e6c21385726175cc422a3dcae92ac46025"}, "tags": [], "refs": [["stg_netsuite__customers_tmp"], ["stg_netsuite__customers_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__customers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.533014, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n city\n \n as \n \n city\n \n, \n cast(null as TEXT) as \n \n companyname\n \n , \n \n \n country\n \n as \n \n country\n \n, \n cast(null as TEXT) as \n \n customer_extid\n \n , \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date_first_order\n \n as \n \n date_first_order\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zipcode\n \n as \n \n zipcode\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n customer_id,\n companyname as company_name,\n customer_extid as customer_external_id,\n city,\n state,\n zipcode,\n country,\n date_first_order as date_first_order_at,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n \n\n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\""}, "model.netsuite_source.stg_netsuite__accounting_books": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounting_books_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books_tmp", "model.netsuite_source.stg_netsuite__accounting_books_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_books"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_books", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounting_books_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounting_books_tmp')),\n staging_columns=get_accounting_books_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n accounting_book_id,\n is_primary,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounting_books.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_books.sql", "name": "stg_netsuite__accounting_books", "alias": "stg_netsuite__accounting_books", "checksum": {"name": "sha256", "checksum": "1979e4645a6245ff201816e275fd790f10d92570aa910990ef7ac5a145a904f7"}, "tags": [], "refs": [["stg_netsuite__accounting_books_tmp"], ["stg_netsuite__accounting_books_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_books.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.524349, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n accounting_book_extid\n \n , \n \n \n accounting_book_id\n \n as \n \n accounting_book_id\n \n, \n cast(null as TEXT) as \n \n accounting_book_name\n \n , \n cast(null as FLOAT) as \n \n base_book_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_created\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as FLOAT) as \n \n effective_period_id\n \n , \n cast(null as TEXT) as \n \n form_template_component_id\n \n , \n cast(null as FLOAT) as \n \n form_template_id\n \n , \n cast(null as TEXT) as \n \n is_adjustment_only\n \n , \n cast(null as TEXT) as \n \n is_arrangement_level_reclass\n \n , \n cast(null as TEXT) as \n \n is_consolidated\n \n , \n cast(null as TEXT) as \n \n is_contingent_revenue_handling\n \n , \n cast(null as TEXT) as \n \n is_include_child_subsidiaries\n \n , \n \n \n is_primary\n \n as \n \n is_primary\n \n, \n cast(null as TEXT) as \n \n is_two_step_revenue_allocation\n \n , \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as TEXT) as \n \n unbilled_receivable_grouping\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n accounting_book_id,\n is_primary,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\""}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_consolidated_exchange_rates_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__consolidated_exchange_rates"], "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__consolidated_exchange_rates_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__consolidated_exchange_rates_tmp')),\n staging_columns=get_consolidated_exchange_rates_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n consolidated_exchange_rate_id,\n accounting_book_id,\n accounting_period_id,\n average_rate,\n current_rate,\n historical_rate,\n from_subsidiary_id,\n to_subsidiary_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('consolidated_exchange_rates_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "name": "stg_netsuite__consolidated_exchange_rates", "alias": "stg_netsuite__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "6a4909b08f327411a1947017c8f33d333e541e91c578c6c180dd754ebef85b9c"}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates_tmp"], ["stg_netsuite__consolidated_exchange_rates_tmp"]], "sources": [], "metrics": [], "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"consolidated_exchange_rate_id": {"name": "consolidated_exchange_rate_id", "description": "The unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "The accounting book the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.530654, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n accounting_book_id\n \n as \n \n accounting_book_id\n \n, \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n cast(null as FLOAT) as \n \n average_budget_rate\n \n , \n \n \n average_rate\n \n as \n \n average_rate\n \n, \n \n \n consolidated_exchange_rate_id\n \n as \n \n consolidated_exchange_rate_id\n \n, \n cast(null as FLOAT) as \n \n current_budget_rate\n \n , \n \n \n current_rate\n \n as \n \n current_rate\n \n, \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n \n \n from_subsidiary_id\n \n as \n \n from_subsidiary_id\n \n, \n cast(null as FLOAT) as \n \n historical_budget_rate\n \n , \n \n \n historical_rate\n \n as \n \n historical_rate\n \n, \n \n \n to_subsidiary_id\n \n as \n \n to_subsidiary_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n consolidated_exchange_rate_id,\n accounting_book_id,\n accounting_period_id,\n average_rate,\n current_rate,\n historical_rate,\n from_subsidiary_id,\n to_subsidiary_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\""}, "model.netsuite_source.stg_netsuite__transaction_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transaction_lines_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp", "model.netsuite_source.stg_netsuite__transaction_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transaction_lines"], "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__transaction_lines_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__transaction_lines_tmp')),\n staging_columns=get_transaction_lines_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n transaction_line_id,\n subsidiary_id,\n account_id,\n company_id,\n item_id,\n amount,\n non_posting_line,\n class_id,\n location_id,\n department_id,\n memo\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transaction_lines_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__transaction_lines.sql", "original_file_path": "models/netsuite/stg_netsuite__transaction_lines.sql", "name": "stg_netsuite__transaction_lines", "alias": "stg_netsuite__transaction_lines", "checksum": {"name": "sha256", "checksum": "439d9f1cc5d341305a11759ce2f4be9e154524b992103409aef648f97c471b80"}, "tags": [], "refs": [["stg_netsuite__transaction_lines_tmp"], ["stg_netsuite__transaction_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The subsidiary id of the subsidiary which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The item id of the item which is included in the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "non_posting_line": {"name": "non_posting_line", "description": "Value indicating whether the transaction line is a non posting line (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The class id of the class which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The location id of the location which the transaction line took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transaction_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.540724, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n non_posting_line\n \n as \n \n non_posting_line\n \n, \n \n \n subsidiary_id\n \n as \n \n subsidiary_id\n \n, \n \n \n transaction_id\n \n as \n \n transaction_id\n \n, \n \n \n transaction_line_id\n \n as \n \n transaction_line_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n transaction_line_id,\n subsidiary_id,\n account_id,\n company_id,\n item_id,\n amount,\n non_posting_line,\n class_id,\n location_id,\n department_id,\n memo\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\""}, "model.netsuite_source.stg_netsuite__income_accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_income_accounts_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts_tmp", "model.netsuite_source.stg_netsuite__income_accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__income_accounts"], "unique_id": "model.netsuite_source.stg_netsuite__income_accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__income_accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__income_accounts_tmp')),\n staging_columns=get_income_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n income_account_id,\n name, \n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__income_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__income_accounts.sql", "name": "stg_netsuite__income_accounts", "alias": "stg_netsuite__income_accounts", "checksum": {"name": "sha256", "checksum": "299fb45e200223bd290f01314ad47a4619932d39f3b04fe929a82c5ee8a0fe2b"}, "tags": [], "refs": [["stg_netsuite__income_accounts_tmp"], ["stg_netsuite__income_accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all income accounts.", "columns": {"income_account_id": {"name": "income_account_id", "description": "The unique identifier of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__income_accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.535718, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n account_number\n \n as \n \n account_number\n \n, \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as FLOAT) as \n \n current_balance\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n desription\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n income_account_extid\n \n , \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n cast(null as TEXT) as \n \n is_including_child_subs\n \n , \n cast(null as TEXT) as \n \n is_summary\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n income_account_id,\n name, \n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\""}, "model.netsuite_source.stg_netsuite__expense_accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_expense_accounts_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp", "model.netsuite_source.stg_netsuite__expense_accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__expense_accounts"], "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__expense_accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__expense_accounts_tmp')),\n staging_columns=get_expense_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n expense_account_id,\n name,\n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__expense_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__expense_accounts.sql", "name": "stg_netsuite__expense_accounts", "alias": "stg_netsuite__expense_accounts", "checksum": {"name": "sha256", "checksum": "f7c1276dddff15a68a1de673f503dc127efb4a2932756ea28c09c231aaf52b2c"}, "tags": [], "refs": [["stg_netsuite__expense_accounts_tmp"], ["stg_netsuite__expense_accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all expense accounts.", "columns": {"expense_account_id": {"name": "expense_account_id", "description": "The unique identifier of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__expense_accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.534802, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n account_number\n \n as \n \n account_number\n \n, \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as FLOAT) as \n \n current_balance\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n desription\n \n , \n cast(null as TEXT) as \n \n expense_account_extid\n \n , \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n is_including_child_subs\n \n , \n cast(null as TEXT) as \n \n is_summary\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n expense_account_id,\n name,\n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\""}, "model.netsuite_source.stg_netsuite__vendors": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendors_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__vendors_tmp", "model.netsuite_source.stg_netsuite__vendors_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendors"], "unique_id": "model.netsuite_source.stg_netsuite__vendors", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__vendors_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__vendors_tmp')),\n staging_columns=get_vendors_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n vendor_id,\n companyname as company_name,\n create_date as create_date_at,\n vendor_type_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your vendors_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('vendors_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__vendors.sql", "original_file_path": "models/netsuite/stg_netsuite__vendors.sql", "name": "stg_netsuite__vendors", "alias": "stg_netsuite__vendors", "checksum": {"name": "sha256", "checksum": "c588235e317970753f51be3cb41b70da9823d2476a989705e6f92aab38dd850d"}, "tags": [], "refs": [["stg_netsuite__vendors_tmp"], ["stg_netsuite__vendors_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The vendor's company name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendors.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.544096, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_owner\n \n , \n cast(null as TEXT) as \n \n accountnumber\n \n , \n cast(null as TEXT) as \n \n accounts_email\n \n , \n cast(null as FLOAT) as \n \n annual_revenue\n \n , \n cast(null as TEXT) as \n \n auto_renewals\n \n , \n cast(null as TEXT) as \n \n auto_send_statements\n \n , \n cast(null as TEXT) as \n \n billaddress\n \n , \n cast(null as FLOAT) as \n \n billing_class_id\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as TEXT) as \n \n companyname\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n \n \n create_date\n \n as \n \n create_date\n \n, \n cast(null as FLOAT) as \n \n creditlimit\n \n , \n cast(null as FLOAT) as \n \n currency_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n dic\n \n , \n cast(null as TEXT) as \n \n email\n \n , \n cast(null as TEXT) as \n \n email_bill_payment_vouchers\n \n , \n cast(null as TEXT) as \n \n email_cash_sales\n \n , \n cast(null as TEXT) as \n \n email_credit_notes\n \n , \n cast(null as TEXT) as \n \n email_invoices\n \n , \n cast(null as TEXT) as \n \n email_item_fulfilments\n \n , \n cast(null as TEXT) as \n \n email_purchase_orders\n \n , \n cast(null as TEXT) as \n \n email_quotes\n \n , \n cast(null as TEXT) as \n \n email_sales_orders\n \n , \n cast(null as TEXT) as \n \n email_statements\n \n , \n cast(null as TEXT) as \n \n employee_number\n \n , \n cast(null as TEXT) as \n \n exemption_certificate_no\n \n , \n cast(null as FLOAT) as \n \n expense_account_id\n \n , \n cast(null as TEXT) as \n \n fax\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n home_phone\n \n , \n cast(null as TEXT) as \n \n hris_id\n \n , \n cast(null as TEXT) as \n \n ico\n \n , \n cast(null as TEXT) as \n \n id_number_in_the_country_of_r\n \n , \n cast(null as FLOAT) as \n \n id_type_in_the_country_of_r_id\n \n , \n cast(null as FLOAT) as \n \n in_transit_balance\n \n , \n cast(null as TEXT) as \n \n incoterm\n \n , \n cast(null as FLOAT) as \n \n industry_id\n \n , \n cast(null as TEXT) as \n \n invoice_via_procurement_syste\n \n , \n cast(null as TEXT) as \n \n invoicing_details\n \n , \n cast(null as TEXT) as \n \n is1099eligible\n \n , \n cast(null as TEXT) as \n \n is_partner\n \n , \n cast(null as TEXT) as \n \n is_person\n \n , \n cast(null as TEXT) as \n \n isemailhtml\n \n , \n cast(null as TEXT) as \n \n isemailpdf\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as FLOAT) as \n \n labor_cost\n \n , \n cast(null as TIMESTAMP) as \n \n last_modified_date\n \n , \n cast(null as TIMESTAMP) as \n \n last_sales_activity\n \n , \n cast(null as TEXT) as \n \n line1\n \n , \n cast(null as TEXT) as \n \n line2\n \n , \n cast(null as TEXT) as \n \n line3\n \n , \n cast(null as TEXT) as \n \n loginaccess\n \n , \n cast(null as TEXT) as \n \n lsa_link\n \n , \n cast(null as TEXT) as \n \n lsa_link_name\n \n , \n cast(null as TEXT) as \n \n mobile_phone\n \n , \n cast(null as TIMESTAMP) as \n \n msa_effective_date\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as FLOAT) as \n \n no__of_employees\n \n , \n cast(null as FLOAT) as \n \n openbalance\n \n , \n cast(null as FLOAT) as \n \n openbalance_foreign\n \n , \n cast(null as FLOAT) as \n \n payables_account_id\n \n , \n cast(null as FLOAT) as \n \n payment_terms_id\n \n , \n cast(null as TEXT) as \n \n phone\n \n , \n cast(null as FLOAT) as \n \n prepayment_balance\n \n , \n cast(null as TEXT) as \n \n printoncheckas\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as TEXT) as \n \n purchases_email\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as FLOAT) as \n \n represents_subsidiary_id\n \n , \n cast(null as TEXT) as \n \n restrict_access_to_expensify\n \n , \n cast(null as TEXT) as \n \n salesforce_id\n \n , \n cast(null as TEXT) as \n \n shipaddress\n \n , \n cast(null as TEXT) as \n \n shipping_email\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as FLOAT) as \n \n subsidiary\n \n , \n cast(null as TEXT) as \n \n tax_contact_first_name\n \n , \n cast(null as FLOAT) as \n \n tax_contact_id\n \n , \n cast(null as TEXT) as \n \n tax_contact_last_name\n \n , \n cast(null as TEXT) as \n \n tax_contact_middle_name\n \n , \n cast(null as TEXT) as \n \n tax_number\n \n , \n cast(null as TEXT) as \n \n taxidnum\n \n , \n cast(null as FLOAT) as \n \n time_approver_id\n \n , \n cast(null as TEXT) as \n \n transactions_need_approval\n \n , \n cast(null as TEXT) as \n \n uen\n \n , \n cast(null as FLOAT) as \n \n unbilled_orders\n \n , \n cast(null as FLOAT) as \n \n unbilled_orders_foreign\n \n , \n cast(null as TEXT) as \n \n url\n \n , \n cast(null as TEXT) as \n \n vat_registration_no\n \n , \n cast(null as TEXT) as \n \n vendor_extid\n \n , \n \n \n vendor_id\n \n as \n \n vendor_id\n \n, \n \n \n vendor_type_id\n \n as \n \n vendor_type_id\n \n, \n cast(null as TEXT) as \n \n zipcode\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n vendor_id,\n companyname as company_name,\n create_date as create_date_at,\n vendor_type_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your vendors_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\""}, "model.netsuite_source.stg_netsuite__classes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_classes_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__classes_tmp", "model.netsuite_source.stg_netsuite__classes_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__classes"], "unique_id": "model.netsuite_source.stg_netsuite__classes", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__classes_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__classes_tmp')),\n staging_columns=get_classes_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n class_id,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('classes_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__classes.sql", "original_file_path": "models/netsuite/stg_netsuite__classes.sql", "name": "stg_netsuite__classes", "alias": "stg_netsuite__classes", "checksum": {"name": "sha256", "checksum": "edf56a2971642640474b042c3ec91efc7aa294b9fb3861a1bd747b61af23205b"}, "tags": [], "refs": [["stg_netsuite__classes_tmp"], ["stg_netsuite__classes_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all classes set up in Netsuite.", "columns": {"class_id": {"name": "class_id", "description": "The unique identifier of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__classes.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.5292091, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n class_id,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\""}, "model.netsuite_source.stg_netsuite__subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_subsidiaries_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp", "model.netsuite_source.stg_netsuite__subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__subsidiaries_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__subsidiaries_tmp')),\n staging_columns=get_subsidiaries_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n subsidiary_id,\n fiscal_calendar_id,\n full_name,\n name,\n parent_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('subsidiaries_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__subsidiaries.sql", "original_file_path": "models/netsuite/stg_netsuite__subsidiaries.sql", "name": "stg_netsuite__subsidiaries", "alias": "stg_netsuite__subsidiaries", "checksum": {"name": "sha256", "checksum": "f6477b555a1708adf2e9853d11edeba88e1fe42f4638d1f377e80f7a5523a622"}, "tags": [], "refs": [["stg_netsuite__subsidiaries_tmp"], ["stg_netsuite__subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id associated with the fiscal calendar the subsidiary is on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.5388858, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n address\n \n , \n cast(null as TEXT) as \n \n address1\n \n , \n cast(null as TEXT) as \n \n address2\n \n , \n cast(null as FLOAT) as \n \n base_currency_id\n \n , \n cast(null as TEXT) as \n \n branch_id\n \n , \n cast(null as TEXT) as \n \n brn\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n edition\n \n , \n cast(null as TEXT) as \n \n federal_number\n \n , \n \n \n fiscal_calendar_id\n \n as \n \n fiscal_calendar_id\n \n, \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n is_elimination\n \n , \n cast(null as TEXT) as \n \n is_moss\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n isinactive_bool\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n cast(null as FLOAT) as \n \n moss_nexus_id\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as TEXT) as \n \n return_address\n \n , \n cast(null as TEXT) as \n \n return_address1\n \n , \n cast(null as TEXT) as \n \n return_address2\n \n , \n cast(null as TEXT) as \n \n return_city\n \n , \n cast(null as TEXT) as \n \n return_country\n \n , \n cast(null as TEXT) as \n \n return_state\n \n , \n cast(null as TEXT) as \n \n return_zipcode\n \n , \n cast(null as TEXT) as \n \n shipping_address\n \n , \n cast(null as TEXT) as \n \n shipping_address1\n \n , \n cast(null as TEXT) as \n \n shipping_address2\n \n , \n cast(null as TEXT) as \n \n shipping_city\n \n , \n cast(null as TEXT) as \n \n shipping_country\n \n , \n cast(null as TEXT) as \n \n shipping_state\n \n , \n cast(null as TEXT) as \n \n shipping_zipcode\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as TEXT) as \n \n state_tax_number\n \n , \n cast(null as FLOAT) as \n \n subnav__searchable_subsidiary\n \n , \n cast(null as TEXT) as \n \n subsidiary_extid\n \n , \n \n \n subsidiary_id\n \n as \n \n subsidiary_id\n \n, \n cast(null as FLOAT) as \n \n taxonomy_reference_id\n \n , \n cast(null as TEXT) as \n \n tran_num_prefix\n \n , \n cast(null as TEXT) as \n \n uen\n \n , \n cast(null as TEXT) as \n \n url\n \n , \n cast(null as TEXT) as \n \n zipcode\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n subsidiary_id,\n fiscal_calendar_id,\n full_name,\n name,\n parent_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\""}, "model.netsuite_source.stg_netsuite__accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounts_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounts_tmp", "model.netsuite_source.stg_netsuite__accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounts"], "unique_id": "model.netsuite_source.stg_netsuite__accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounts_tmp')),\n staging_columns=get_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n account_id,\n parent_id,\n name,\n type_name,\n accountnumber as account_number,\n general_rate_type,\n is_leftside,\n is_balancesheet,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }}\n \n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__accounts.sql", "name": "stg_netsuite__accounts", "alias": "stg_netsuite__accounts", "checksum": {"name": "sha256", "checksum": "510d294af59df7ffa89fbfad25c7b865acc90b656833abb3aacf861889f170d1"}, "tags": [], "refs": [["stg_netsuite__accounts_tmp"], ["stg_netsuite__accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounts set up in Netsuite.", "columns": {"account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the type of the account (ie. Bank, Equity, Income, Expense).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.527921, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as TEXT) as \n \n accountnumber\n \n , \n \n \n general_rate_type\n \n as \n \n general_rate_type\n \n, \n \n \n is_balancesheet\n \n as \n \n is_balancesheet\n \n, \n \n \n is_leftside\n \n as \n \n is_leftside\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n type_name\n \n as \n \n type_name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n account_id,\n parent_id,\n name,\n type_name,\n accountnumber as account_number,\n general_rate_type,\n is_leftside,\n is_balancesheet,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\""}, "model.netsuite_source.stg_netsuite__items": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_items_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__items_tmp", "model.netsuite_source.stg_netsuite__items_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__items"], "unique_id": "model.netsuite_source.stg_netsuite__items", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__items_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__items_tmp')),\n staging_columns=get_items_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n item_id,\n name,\n type_name,\n salesdescription as sales_description,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your items_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('items_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__items.sql", "original_file_path": "models/netsuite/stg_netsuite__items.sql", "name": "stg_netsuite__items", "alias": "stg_netsuite__items", "checksum": {"name": "sha256", "checksum": "fba43c296243f470c88afcb940b71f6808f5ba3f6f9e00d086463b14d4e79e73"}, "tags": [], "refs": [["stg_netsuite__items_tmp"], ["stg_netsuite__items_tmp"]], "sources": [], "metrics": [], "description": "Table detailing information about the items created in Netsuite.", "columns": {"item_id": {"name": "item_id", "description": "The unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "The items sales description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__items.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.536746, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n allow_drop_ship\n \n , \n cast(null as FLOAT) as \n \n alt_demand_source_item_id\n \n , \n cast(null as FLOAT) as \n \n asset_account_id\n \n , \n cast(null as FLOAT) as \n \n atp_lead_time\n \n , \n cast(null as TEXT) as \n \n atp_method\n \n , \n cast(null as TEXT) as \n \n available_to_partners\n \n , \n cast(null as TEXT) as \n \n avatax_taxcode\n \n , \n cast(null as FLOAT) as \n \n averagecost\n \n , \n cast(null as FLOAT) as \n \n backward_consumption_days\n \n , \n cast(null as TEXT) as \n \n build_sub_assemblies\n \n , \n cast(null as FLOAT) as \n \n class_id\n \n , \n cast(null as FLOAT) as \n \n code_of_supply_id\n \n , \n cast(null as TEXT) as \n \n commodity_code\n \n , \n cast(null as FLOAT) as \n \n consumption_unit_id\n \n , \n cast(null as FLOAT) as \n \n cost_0\n \n , \n cast(null as TEXT) as \n \n cost_category\n \n , \n cast(null as TEXT) as \n \n cost_estimate_type\n \n , \n cast(null as TEXT) as \n \n costing_method\n \n , \n cast(null as TEXT) as \n \n country_of_manufacture\n \n , \n cast(null as TEXT) as \n \n create_plan_on_event_type\n \n , \n cast(null as TIMESTAMP) as \n \n created\n \n , \n cast(null as FLOAT) as \n \n current_on_order_count\n \n , \n cast(null as FLOAT) as \n \n custreturn_variance_account_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TIMESTAMP) as \n \n date_of_last_transaction\n \n , \n cast(null as FLOAT) as \n \n default_return_cost\n \n , \n cast(null as FLOAT) as \n \n deferred_expense_account_id\n \n , \n cast(null as FLOAT) as \n \n deferred_revenue_account_id\n \n , \n cast(null as TEXT) as \n \n demand_source\n \n , \n cast(null as FLOAT) as \n \n demand_time_fence\n \n , \n cast(null as FLOAT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n deposit\n \n , \n cast(null as TEXT) as \n \n displayname\n \n , \n cast(null as TEXT) as \n \n distribution_category\n \n , \n cast(null as TEXT) as \n \n distribution_network\n \n , \n cast(null as FLOAT) as \n \n dropship_expense_account_id\n \n , \n cast(null as TEXT) as \n \n effective_bom_control_type\n \n , \n cast(null as FLOAT) as \n \n expense_account_id\n \n , \n cast(null as TEXT) as \n \n featureddescription\n \n , \n cast(null as TEXT) as \n \n featureditem\n \n , \n cast(null as FLOAT) as \n \n fixed_lot_size\n \n , \n cast(null as FLOAT) as \n \n forward_consumption_days\n \n , \n cast(null as TEXT) as \n \n fraud_risk\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as FLOAT) as \n \n fx_adjustment_account_id\n \n , \n cast(null as FLOAT) as \n \n gain_loss_account_id\n \n , \n cast(null as FLOAT) as \n \n handling_cost\n \n , \n cast(null as TEXT) as \n \n hazmat\n \n , \n cast(null as TEXT) as \n \n hazmat_hazard_class\n \n , \n cast(null as TEXT) as \n \n hazmat_id\n \n , \n cast(null as TEXT) as \n \n hazmat_item_units\n \n , \n cast(null as FLOAT) as \n \n hazmat_item_units_qty\n \n , \n cast(null as TEXT) as \n \n hazmat_packing_group\n \n , \n cast(null as TEXT) as \n \n hazmat_shipping_name\n \n , \n cast(null as TEXT) as \n \n include_child_subsidiaries\n \n , \n cast(null as FLOAT) as \n \n income_account_id\n \n , \n cast(null as FLOAT) as \n \n interco_expense_account_id\n \n , \n cast(null as FLOAT) as \n \n interco_income_account_id\n \n , \n cast(null as FLOAT) as \n \n invt_count_classification\n \n , \n cast(null as FLOAT) as \n \n invt_count_interval\n \n , \n cast(null as TEXT) as \n \n is_cont_rev_handling\n \n , \n cast(null as TEXT) as \n \n is_enforce_min_qty_internally\n \n , \n cast(null as TEXT) as \n \n is_hold_rev_rec\n \n , \n cast(null as TEXT) as \n \n is_moss\n \n , \n cast(null as TEXT) as \n \n is_phantom\n \n , \n cast(null as TEXT) as \n \n is_special_order_item\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n isonline\n \n , \n cast(null as TEXT) as \n \n istaxable\n \n , \n cast(null as FLOAT) as \n \n item_defined_cost\n \n , \n cast(null as TEXT) as \n \n item_extid\n \n , \n \n \n item_id\n \n as \n \n item_id\n \n, \n cast(null as FLOAT) as \n \n item_image\n \n , \n cast(null as TEXT) as \n \n item_revenue_category\n \n , \n cast(null as FLOAT) as \n \n item_term_id\n \n , \n cast(null as TIMESTAMP) as \n \n last_cogs_correction\n \n , \n cast(null as TIMESTAMP) as \n \n last_invt_count_date\n \n , \n cast(null as FLOAT) as \n \n last_purchase_price\n \n , \n cast(null as FLOAT) as \n \n location_id\n \n , \n cast(null as TEXT) as \n \n lot_numbered_item\n \n , \n cast(null as TEXT) as \n \n lot_sizing_method\n \n , \n cast(null as TEXT) as \n \n manufacturer\n \n , \n cast(null as TEXT) as \n \n manufacturing_charge_item\n \n , \n cast(null as TEXT) as \n \n match_bill_to_receipt\n \n , \n cast(null as TEXT) as \n \n matrix_type\n \n , \n cast(null as FLOAT) as \n \n maximum_quantity\n \n , \n cast(null as FLOAT) as \n \n minimum_quantity\n \n , \n cast(null as TIMESTAMP) as \n \n modified\n \n , \n cast(null as TEXT) as \n \n mpn\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n nature_of_transaction_codes_id\n \n , \n cast(null as TIMESTAMP) as \n \n next_invt_count_date\n \n , \n cast(null as FLOAT) as \n \n ng_asset_type_id\n \n , \n cast(null as FLOAT) as \n \n ns_lead_time\n \n , \n cast(null as TEXT) as \n \n offersupport\n \n , \n cast(null as TEXT) as \n \n onspecial\n \n , \n cast(null as TEXT) as \n \n overhead_type\n \n , \n cast(null as FLOAT) as \n \n parent_id\n \n , \n cast(null as FLOAT) as \n \n payment_method_id\n \n , \n cast(null as FLOAT) as \n \n periodic_lot_size_days\n \n , \n cast(null as TEXT) as \n \n periodic_lot_size_type\n \n , \n cast(null as FLOAT) as \n \n pref_purchase_tax_id\n \n , \n cast(null as FLOAT) as \n \n pref_sale_tax_id\n \n , \n cast(null as FLOAT) as \n \n pref_stock_level\n \n , \n cast(null as TEXT) as \n \n prices_include_tax\n \n , \n cast(null as FLOAT) as \n \n pricing_group_id\n \n , \n cast(null as TEXT) as \n \n print_sub_items\n \n , \n cast(null as FLOAT) as \n \n prod_price_var_account_id\n \n , \n cast(null as FLOAT) as \n \n prod_qty_var_account_id\n \n , \n cast(null as TEXT) as \n \n prompt_payment_discount_item\n \n , \n cast(null as FLOAT) as \n \n purchase_price_var_account_id\n \n , \n cast(null as FLOAT) as \n \n purchase_unit_id\n \n , \n cast(null as TEXT) as \n \n purchasedescription\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as FLOAT) as \n \n quantityavailable\n \n , \n cast(null as FLOAT) as \n \n quantitybackordered\n \n , \n cast(null as FLOAT) as \n \n quantityonhand\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as FLOAT) as \n \n reorder_multiple\n \n , \n cast(null as FLOAT) as \n \n reorderpoint\n \n , \n cast(null as TEXT) as \n \n replenishment_method\n \n , \n cast(null as TEXT) as \n \n resalable\n \n , \n cast(null as FLOAT) as \n \n reschedule_in_days\n \n , \n cast(null as FLOAT) as \n \n reschedule_out_days\n \n , \n cast(null as FLOAT) as \n \n rev_rec_forecast_rule_id\n \n , \n cast(null as FLOAT) as \n \n rev_rec_rule_id\n \n , \n cast(null as TEXT) as \n \n revenue_allocation_group\n \n , \n cast(null as TEXT) as \n \n round_up_as_component\n \n , \n cast(null as FLOAT) as \n \n safety_stock_days\n \n , \n cast(null as FLOAT) as \n \n safety_stock_level\n \n , \n cast(null as FLOAT) as \n \n sale_unit_id\n \n , \n cast(null as TEXT) as \n \n salesdescription\n \n , \n cast(null as TEXT) as \n \n salesforce_id\n \n , \n cast(null as TEXT) as \n \n salesprice\n \n , \n cast(null as FLOAT) as \n \n scrap_account_id\n \n , \n cast(null as TEXT) as \n \n serialized_item\n \n , \n cast(null as FLOAT) as \n \n shippingcost\n \n , \n cast(null as TEXT) as \n \n special_work_order_item\n \n , \n cast(null as TEXT) as \n \n specialsdescription\n \n , \n cast(null as FLOAT) as \n \n stock_unit_id\n \n , \n cast(null as TEXT) as \n \n storedescription\n \n , \n cast(null as TEXT) as \n \n storedetaileddescription\n \n , \n cast(null as TEXT) as \n \n storedisplayname\n \n , \n cast(null as TEXT) as \n \n subtype\n \n , \n cast(null as TEXT) as \n \n supplementary_unit__abberviat\n \n , \n cast(null as FLOAT) as \n \n supplementary_unit_id\n \n , \n cast(null as FLOAT) as \n \n supply_time_fence\n \n , \n cast(null as TEXT) as \n \n supply_type\n \n , \n cast(null as FLOAT) as \n \n tax_item_id\n \n , \n cast(null as FLOAT) as \n \n totalvalue\n \n , \n cast(null as FLOAT) as \n \n transferprice\n \n , \n \n \n type_name\n \n as \n \n type_name\n \n, \n cast(null as FLOAT) as \n \n type_of_goods_id\n \n , \n cast(null as TEXT) as \n \n udf1\n \n , \n cast(null as TEXT) as \n \n udf2\n \n , \n cast(null as TEXT) as \n \n un_number\n \n , \n cast(null as FLOAT) as \n \n unbuild_variance_account_id\n \n , \n cast(null as FLOAT) as \n \n units_type_id\n \n , \n cast(null as TEXT) as \n \n upc_code\n \n , \n cast(null as TEXT) as \n \n use_component_yield\n \n , \n cast(null as FLOAT) as \n \n vendor_id\n \n , \n cast(null as TEXT) as \n \n vendorname\n \n , \n cast(null as FLOAT) as \n \n vendreturn_variance_account_id\n \n , \n cast(null as TEXT) as \n \n vsoe_deferral\n \n , \n cast(null as TEXT) as \n \n vsoe_delivered\n \n , \n cast(null as TEXT) as \n \n vsoe_discount\n \n , \n cast(null as FLOAT) as \n \n vsoe_price\n \n , \n cast(null as FLOAT) as \n \n weight\n \n , \n cast(null as FLOAT) as \n \n weight_in_user_defined_unit\n \n , \n cast(null as FLOAT) as \n \n weight_unit_index\n \n , \n cast(null as FLOAT) as \n \n wip_account_id\n \n , \n cast(null as FLOAT) as \n \n wip_cost_variance_account_id\n \n , \n cast(null as FLOAT) as \n \n work_order_lead_time\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n item_id,\n name,\n type_name,\n salesdescription as sales_description,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your items_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\""}, "model.netsuite_source.stg_netsuite__locations": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_locations_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__locations_tmp", "model.netsuite_source.stg_netsuite__locations_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__locations"], "unique_id": "model.netsuite_source.stg_netsuite__locations", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__locations_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__locations_tmp')),\n staging_columns=get_locations_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n location_id,\n name,\n full_name,\n city,\n country,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('locations_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__locations.sql", "original_file_path": "models/netsuite/stg_netsuite__locations.sql", "name": "stg_netsuite__locations", "alias": "stg_netsuite__locations", "checksum": {"name": "sha256", "checksum": "0e5129658fedf16df7b26cf25ad2351302ce70723e60b4b4b9d12a1e252c9254"}, "tags": [], "refs": [["stg_netsuite__locations_tmp"], ["stg_netsuite__locations_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"location_id": {"name": "location_id", "description": "The unique identifier of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__locations.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.537781, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n location_id,\n name,\n full_name,\n city,\n country,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\""}, "model.netsuite_source.stg_netsuite__departments": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_departments_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__departments_tmp", "model.netsuite_source.stg_netsuite__departments_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__departments"], "unique_id": "model.netsuite_source.stg_netsuite__departments", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__departments_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__departments_tmp')),\n staging_columns=get_departments_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n department_id,\n name,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('departments_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__departments.sql", "original_file_path": "models/netsuite/stg_netsuite__departments.sql", "name": "stg_netsuite__departments", "alias": "stg_netsuite__departments", "checksum": {"name": "sha256", "checksum": "48851e18603bddeadb3b3992c83d3c779dada4b760fba2a2da68fe2bc9b431db"}, "tags": [], "refs": [["stg_netsuite__departments_tmp"], ["stg_netsuite__departments_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all departments set up in Netsuite.", "columns": {"department_id": {"name": "department_id", "description": "The unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__departments.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.533878, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n department_id,\n name,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\""}, "model.netsuite_source.stg_netsuite__currencies": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__currencies_tmp", "model.netsuite_source.stg_netsuite__currencies_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__currencies"], "unique_id": "model.netsuite_source.stg_netsuite__currencies", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__currencies_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__currencies_tmp')),\n staging_columns=get_currencies_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n currency_id,\n name,\n symbol,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__currencies.sql", "original_file_path": "models/netsuite/stg_netsuite__currencies.sql", "name": "stg_netsuite__currencies", "alias": "stg_netsuite__currencies", "checksum": {"name": "sha256", "checksum": "64b53f34b5bf46bcf43e5753e5eb67143e96eaffad215604e424f4769791e793"}, "tags": [], "refs": [["stg_netsuite__currencies_tmp"], ["stg_netsuite__currencies_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all currency information.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__currencies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.531543, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n currency_extid\n \n , \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n is_inactive\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n precision_0\n \n , \n \n \n symbol\n \n as \n \n symbol\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n currency_id,\n name,\n symbol,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\""}, "model.netsuite_source.stg_netsuite__vendor_types": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendor_types_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types_tmp", "model.netsuite_source.stg_netsuite__vendor_types_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendor_types"], "unique_id": "model.netsuite_source.stg_netsuite__vendor_types", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__vendor_types_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__vendor_types_tmp')),\n staging_columns=get_vendor_types_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n vendor_type_id,\n name,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__vendor_types.sql", "original_file_path": "models/netsuite/stg_netsuite__vendor_types.sql", "name": "stg_netsuite__vendor_types", "alias": "stg_netsuite__vendor_types", "checksum": {"name": "sha256", "checksum": "6d96a09d56ad4edb4011a0ce09eee13c465195ce03bec4902450ab57e9d2f74d"}, "tags": [], "refs": [["stg_netsuite__vendor_types_tmp"], ["stg_netsuite__vendor_types_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all the various types of vendors.", "columns": {"vendor_type_id": {"name": "vendor_type_id", "description": "The unique identifier of the vendor type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendor_types.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.5430698, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n parent_id\n \n , \n cast(null as TEXT) as \n \n vendor_type_extid\n \n , \n \n \n vendor_type_id\n \n as \n \n vendor_type_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n vendor_type_id,\n name,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\""}, "model.netsuite_source.stg_netsuite__accounting_periods": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounting_periods_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp", "model.netsuite_source.stg_netsuite__accounting_periods_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_periods"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounting_periods_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounting_periods_tmp')),\n staging_columns=get_accounting_periods_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n accounting_period_id,\n name,\n full_name,\n fiscal_calendar_id,\n year_id,\n starting as starting_at,\n ending as ending_at,\n quarter,\n year_0,\n is_adjustment,\n closed as is_closed,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounting_periods.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_periods.sql", "name": "stg_netsuite__accounting_periods", "alias": "stg_netsuite__accounting_periods", "checksum": {"name": "sha256", "checksum": "bd47f06946086147dacee032fd6ad9a36577fae371fa05c51336b3bac1c5f9cc"}, "tags": [], "refs": [["stg_netsuite__accounting_periods_tmp"], ["stg_netsuite__accounting_periods_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_0": {"name": "year_0", "description": "Value indicating whether the accounting period is in it's initial year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Value indicating whether the accounting period is an adjustment (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_periods.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.526471, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TEXT) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n cast(null as TEXT) as \n \n closed_accounts_payable\n \n , \n cast(null as TEXT) as \n \n closed_accounts_receivable\n \n , \n cast(null as TEXT) as \n \n closed_all\n \n , \n cast(null as TIMESTAMP) as \n \n closed_on\n \n , \n cast(null as TEXT) as \n \n closed_payroll\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n \n \n ending\n \n as \n \n ending\n \n, \n \n \n fiscal_calendar_id\n \n as \n \n fiscal_calendar_id\n \n, \n cast(null as TEXT) as \n \n fivetran_index\n \n , \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n is_adjustment\n \n as \n \n is_adjustment\n \n, \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n locked_accounts_payable\n \n , \n cast(null as TEXT) as \n \n locked_accounts_receivable\n \n , \n cast(null as TEXT) as \n \n locked_all\n \n , \n cast(null as TEXT) as \n \n locked_payroll\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n parent_id\n \n , \n \n \n quarter\n \n as \n \n quarter\n \n, \n \n \n starting\n \n as \n \n starting\n \n, \n \n \n year_0\n \n as \n \n year_0\n \n, \n \n \n year_id\n \n as \n \n year_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n accounting_period_id,\n name,\n full_name,\n fiscal_calendar_id,\n year_id,\n starting as starting_at,\n ending as ending_at,\n quarter,\n year_0,\n is_adjustment,\n closed as is_closed,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\""}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_periods_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounting_periods') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "name": "stg_netsuite__accounting_periods_tmp", "alias": "stg_netsuite__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "af85ada4c304fe9e0c3fdaf8dca681113d692711ab665fa20a48bf20a3f53513"}, "tags": [], "refs": [], "sources": [["netsuite", "accounting_periods"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.445806, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods_tmp\""}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_books_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounting_books') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "name": "stg_netsuite__accounting_books_tmp", "alias": "stg_netsuite__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "2a71eefcec7c5db5922ea1217879f5e7856b348418cd1698c81dd7ca78e95fbe"}, "tags": [], "refs": [], "sources": [["netsuite", "accounting_books"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.449404, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books_tmp\""}, "model.netsuite_source.stg_netsuite__customers_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.customers"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__customers_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_customers') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__customers_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "name": "stg_netsuite__customers_tmp", "alias": "stg_netsuite__customers_tmp", "checksum": {"name": "sha256", "checksum": "dd42aefc427f9f532fc0d79d50a1db8f9e6ea5f7038c43e2d8ea08ca6986fd2b"}, "tags": [], "refs": [], "sources": [["netsuite", "customers"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.453512, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers_tmp\""}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transaction_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transaction_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "name": "stg_netsuite__transaction_lines_tmp", "alias": "stg_netsuite__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "1e8e8e85dcbf177ac5a8539ed3ca4ab87c6b66bd8e98f8fac81bf8c92ecc4178"}, "tags": [], "refs": [], "sources": [["netsuite", "transaction_lines"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.457002, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines_tmp\""}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__income_accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_income_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "name": "stg_netsuite__income_accounts_tmp", "alias": "stg_netsuite__income_accounts_tmp", "checksum": {"name": "sha256", "checksum": "db2a368685ddd59347ffb164ea9204f378d33a39a4eebbffe35a22d59d387925"}, "tags": [], "refs": [], "sources": [["netsuite", "income_accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.460456, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts_tmp\""}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "name": "stg_netsuite__accounts_tmp", "alias": "stg_netsuite__accounts_tmp", "checksum": {"name": "sha256", "checksum": "bb440ea013b9eb4fd2654be4f267bf3c08b4a4fbdb88e666c2721e79157bf54c"}, "tags": [], "refs": [], "sources": [["netsuite", "accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.463993, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts_tmp\""}, "model.netsuite_source.stg_netsuite__departments_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.departments"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__departments_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_departments') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__departments_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "name": "stg_netsuite__departments_tmp", "alias": "stg_netsuite__departments_tmp", "checksum": {"name": "sha256", "checksum": "4d20b8f9c501e6642f4ed19fe0d6003244f3132bb8f127e6cd04749a2161a1d5"}, "tags": [], "refs": [], "sources": [["netsuite", "departments"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.46752, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments_tmp\""}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.currencies"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__currencies_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_currencies') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__currencies_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "name": "stg_netsuite__currencies_tmp", "alias": "stg_netsuite__currencies_tmp", "checksum": {"name": "sha256", "checksum": "299203cc57a2fe306df440758d025485e593599f6390c02ce418cc17f6cbf085"}, "tags": [], "refs": [], "sources": [["netsuite", "currencies"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.470999, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies_tmp\""}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendor_types_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendor_types') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "name": "stg_netsuite__vendor_types_tmp", "alias": "stg_netsuite__vendor_types_tmp", "checksum": {"name": "sha256", "checksum": "9418a3d15515e6876d45e9647eef973ee64e92a8ebd36de9ef48b4213362fbb8"}, "tags": [], "refs": [], "sources": [["netsuite", "vendor_types"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.4752178, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types_tmp\""}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendors"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendors_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendors') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendors_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "name": "stg_netsuite__vendors_tmp", "alias": "stg_netsuite__vendors_tmp", "checksum": {"name": "sha256", "checksum": "8e59bcb209c1fbcc2e4d3d45fbfa58520b4664fc1ca095cdc257b866d56bf48f"}, "tags": [], "refs": [], "sources": [["netsuite", "vendors"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.478713, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors_tmp\""}, "model.netsuite_source.stg_netsuite__locations_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.locations"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__locations_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_locations') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__locations_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "name": "stg_netsuite__locations_tmp", "alias": "stg_netsuite__locations_tmp", "checksum": {"name": "sha256", "checksum": "ef49c17ad5f2ebc7ef36e8327bf47863dd5e5cae56eb79239babc1db36a64083"}, "tags": [], "refs": [], "sources": [["netsuite", "locations"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.482155, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations_tmp\""}, "model.netsuite_source.stg_netsuite__items_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.items"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__items_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__items_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_items') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__items_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__items_tmp.sql", "name": "stg_netsuite__items_tmp", "alias": "stg_netsuite__items_tmp", "checksum": {"name": "sha256", "checksum": "439132075eae5e14389f7542772d7ca936ea1489e7cdac59de46e8cb7173eb0a"}, "tags": [], "refs": [], "sources": [["netsuite", "items"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__items_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.4856372, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items_tmp\""}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "name": "stg_netsuite__subsidiaries_tmp", "alias": "stg_netsuite__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "a6ac0f509e1ac21ecc3f89a4d5c0eed5c703a57e8fc4af43e01bdcf75ea2e679"}, "tags": [], "refs": [], "sources": [["netsuite", "subsidiaries"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.48912, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transactions"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transactions_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transactions') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__transactions_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "name": "stg_netsuite__transactions_tmp", "alias": "stg_netsuite__transactions_tmp", "checksum": {"name": "sha256", "checksum": "3784b104dd5b534cf77958a0db3b7a596311f53fe6cbc065385ded88577cfdd0"}, "tags": [], "refs": [], "sources": [["netsuite", "transactions"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.4926028, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions_tmp\""}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__consolidated_exchange_rates_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_consolidated_exchange_rates') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "alias": "stg_netsuite__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "adef1eae799060e22040088aae3f36771a563821178b7986be7863221df9283e"}, "tags": [], "refs": [], "sources": [["netsuite", "consolidated_exchange_rates"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.496865, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates_tmp\""}, "model.netsuite_source.stg_netsuite__classes_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.classes"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__classes_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_classes') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__classes_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "name": "stg_netsuite__classes_tmp", "alias": "stg_netsuite__classes_tmp", "checksum": {"name": "sha256", "checksum": "d0e5d095963df0342aa32dab6b3385cee09e2ee9a404972e692675a5e82c9fb0"}, "tags": [], "refs": [], "sources": [["netsuite", "classes"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.500339, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes_tmp\""}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__expense_accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_expense_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "name": "stg_netsuite__expense_accounts_tmp", "alias": "stg_netsuite__expense_accounts_tmp", "checksum": {"name": "sha256", "checksum": "a47ced403e84ab6ca539aa177139c53e021b0c56d15dd9dfc83dcb0ebe7cd797"}, "tags": [], "refs": [], "sources": [["netsuite", "expense_accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1666643120.503907, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts_tmp\""}, "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__accounting_books_accounting_book_id", "alias": "unique_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.548395, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is not null\ngroup by accounting_book_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_books_accounting_book_id", "alias": "not_null_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.549525, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "alias": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.550501, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "fiscal_calendar_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "alias": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.551467, "compiled_code": "\n \n \n\n\n\nselect fiscal_calendar_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere fiscal_calendar_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "fiscal_calendar_id", "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["accounting_period_id", "fiscal_calendar_id"], "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "original_file_path": "models/stg_netsuite.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id", "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d"}, "created_at": 1666643120.5525372, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n accounting_period_id, fiscal_calendar_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\n group by accounting_period_id, fiscal_calendar_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__accounts_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__accounts_account_id", "alias": "unique_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.559617, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts"}, "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounts_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounts_account_id", "alias": "not_null_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.560595, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts"}, "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__classes_class_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__classes_class_id", "alias": "unique_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.561553, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is not null\ngroup by class_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes"}, "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__classes_class_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__classes_class_id", "alias": "not_null_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.562646, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes"}, "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee"}, "created_at": 1666643120.5636008, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is not null\ngroup by consolidated_exchange_rate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates"}, "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86"}, "created_at": 1666643120.5645509, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates"}, "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__currencies_currency_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__currencies_currency_id", "alias": "unique_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.565504, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is not null\ngroup by currency_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies"}, "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__currencies_currency_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__currencies_currency_id", "alias": "not_null_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5665789, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies"}, "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__customers_customer_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__customers_customer_id", "alias": "unique_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.567538, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers"}, "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__customers_customer_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__customers_customer_id", "alias": "not_null_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.568484, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers"}, "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__departments_department_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__departments_department_id", "alias": "unique_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.569429, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is not null\ngroup by department_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments"}, "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__departments_department_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__departments_department_id", "alias": "not_null_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.570716, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments"}, "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "expense_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__expense_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__expense_accounts_expense_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__expense_accounts_expense_account_id", "alias": "unique_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__expense_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__expense_accounts_expense_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.571645, "compiled_code": "\n \n \n\nselect\n expense_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is not null\ngroup by expense_account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts"}, "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "expense_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__expense_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__expense_accounts_expense_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__expense_accounts_expense_account_id", "alias": "not_null_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__expense_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.572574, "compiled_code": "\n \n \n\n\n\nselect expense_account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts"}, "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "income_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__income_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__income_accounts_income_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__income_accounts_income_account_id", "alias": "unique_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__income_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__income_accounts_income_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.573521, "compiled_code": "\n \n \n\nselect\n income_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is not null\ngroup by income_account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts"}, "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "income_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__income_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__income_accounts_income_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__income_accounts_income_account_id", "alias": "not_null_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__income_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__income_accounts_income_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.574594, "compiled_code": "\n \n \n\n\n\nselect income_account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts"}, "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__items_item_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__items_item_id", "alias": "unique_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.57554, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items"}, "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__items_item_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__items_item_id", "alias": "not_null_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.57648, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items"}, "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__locations_location_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__locations_location_id", "alias": "unique_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5774221, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is not null\ngroup by location_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations"}, "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__locations_location_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__locations_location_id", "alias": "not_null_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.578488, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations"}, "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__subsidiaries_subsidiary_id", "alias": "unique_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.579433, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is not null\ngroup by subsidiary_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "alias": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.58037, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transaction_lines_transaction_id", "alias": "not_null_stg_netsuite__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.58132, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "alias": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5823889, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "original_file_path": "models/stg_netsuite.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad"}, "created_at": 1666643120.583315, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__transactions_transaction_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__transactions_transaction_id", "alias": "unique_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.586227, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is not null\ngroup by transaction_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions"}, "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transactions_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transactions_transaction_id", "alias": "not_null_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5871959, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions"}, "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendor_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__vendor_types_vendor_type_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__vendor_types_vendor_type_id", "alias": "unique_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendor_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendor_types_vendor_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.58817, "compiled_code": "\n \n \n\nselect\n vendor_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is not null\ngroup by vendor_type_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types"}, "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendor_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendor_types_vendor_type_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__vendor_types_vendor_type_id", "alias": "not_null_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendor_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.589264, "compiled_code": "\n \n \n\n\n\nselect vendor_type_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types"}, "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__vendors_vendor_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__vendors_vendor_id", "alias": "unique_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.5902069, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors"}, "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendors_vendor_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__vendors_vendor_id", "alias": "not_null_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.591155, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors"}, "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__account_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__account_types_account_type_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__account_types_account_type_id", "alias": "unique_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__account_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__account_types_account_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.631642, "compiled_code": "\n \n \n\nselect\n account_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is not null\ngroup by account_type_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types"}, "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__account_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__account_types_account_type_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__account_types_account_type_id", "alias": "not_null_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__account_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__account_types_account_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.632709, "compiled_code": "\n \n \n\n\n\nselect account_type_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types"}, "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_book_subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "alias": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.633686, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_book_subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127"}, "created_at": 1666643120.6347709, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries"}, "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_books_accounting_book_id", "alias": "unique_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6357381, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is not null\ngroup by accounting_book_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "alias": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6366909, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books"}, "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_period_fiscal_cal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "alias": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6376379, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_period_fiscal_cal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415"}, "created_at": 1666643120.638711, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal"}, "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "alias": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.639665, "compiled_code": "\n \n \n\nselect\n accounting_period_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is not null\ngroup by accounting_period_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "alias": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.640599, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods"}, "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounts_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounts_account_id", "alias": "unique_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.641537, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts"}, "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounts_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounts_account_id", "alias": "not_null_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.642744, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts"}, "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__classes_class_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__classes_class_id", "alias": "unique_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6437, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is not null\ngroup by class_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes"}, "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__classes_class_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__classes_class_id", "alias": "not_null_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.644639, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes"}, "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1"}, "created_at": 1666643120.645581, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is not null\ngroup by consolidated_exchange_rate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates"}, "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511"}, "created_at": 1666643120.6466691, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates"}, "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__currencies_currency_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__currencies_currency_id", "alias": "unique_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.647615, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is not null\ngroup by currency_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies"}, "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__currencies_currency_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__currencies_currency_id", "alias": "not_null_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6485498, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies"}, "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__customers_customer_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__customers_customer_id", "alias": "unique_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.649485, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers"}, "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__customers_customer_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__customers_customer_id", "alias": "not_null_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.650569, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers"}, "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__departments_department_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__departments_department_id", "alias": "unique_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.65152, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is not null\ngroup by department_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments"}, "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__departments_department_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__departments_department_id", "alias": "not_null_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.652448, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments"}, "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "entity_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__entities')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__entities_entity_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__entities_entity_id", "alias": "unique_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__entities"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__entities_entity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.653356, "compiled_code": "\n \n \n\nselect\n entity_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is not null\ngroup by entity_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities"}, "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "entity_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__entities')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__entities_entity_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__entities_entity_id", "alias": "not_null_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__entities"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__entities_entity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.654381, "compiled_code": "\n \n \n\n\n\nselect entity_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities"}, "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__items_item_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__items_item_id", "alias": "unique_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.655319, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items"}, "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__items_item_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__items_item_id", "alias": "not_null_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.656257, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items"}, "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "job_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__jobs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__jobs_job_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__jobs_job_id", "alias": "unique_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__jobs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__jobs_job_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.657194, "compiled_code": "\n \n \n\nselect\n job_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is not null\ngroup by job_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs"}, "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__jobs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__jobs_job_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__jobs_job_id", "alias": "not_null_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__jobs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__jobs_job_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.658258, "compiled_code": "\n \n \n\n\n\nselect job_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs"}, "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__locations_location_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__locations_location_id", "alias": "unique_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6591942, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is not null\ngroup by location_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations"}, "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__locations_location_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__locations_location_id", "alias": "not_null_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.66013, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations"}, "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "alias": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6610718, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is not null\ngroup by subsidiary_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "alias": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6621351, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id", "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc"}, "created_at": 1666643120.663083, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id", "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54"}, "created_at": 1666643120.6640372, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6"}, "created_at": 1666643120.664969, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "alias": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.667897, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_lines_transaction_id", "alias": "not_null_stg_netsuite2__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.668861, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145"}, "created_at": 1666643120.6699798, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__transactions_transaction_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__transactions_transaction_id", "alias": "unique_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6727538, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is not null\ngroup by transaction_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions"}, "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transactions_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transactions_transaction_id", "alias": "not_null_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.673729, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions"}, "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_category_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendor_categories')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendor_categories_vendor_category_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "alias": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendor_categories"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.6746938, "compiled_code": "\n \n \n\nselect\n vendor_category_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is not null\ngroup by vendor_category_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories"}, "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_category_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendor_categories')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendor_categories_vendor_category_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "alias": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendor_categories"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.675644, "compiled_code": "\n \n \n\n\n\nselect vendor_category_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories"}, "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendors_vendor_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__vendors_vendor_id", "alias": "unique_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.676728, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors"}, "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendors_vendor_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__vendors_vendor_id", "alias": "not_null_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1666643120.677678, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors"}}, "sources": {"source.netsuite_source.netsuite2.account_type": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "account_type"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.account_type", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "account_type", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_type_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the various account types within Netsuite.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balancesheet": {"name": "balancesheet", "description": "Boolean indicating if the account type is a balance sheet account. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "left": {"name": "left", "description": "Boolean indicating if the account type is leftside. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longname": {"name": "longname", "description": "The name of the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\"", "created_at": 1666643120.751615}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book_subsidiaries"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_book_subsidiaries", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_sub_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the various account books and the respective subsidiaries.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\"", "created_at": 1666643120.751731}, "source.netsuite_source.netsuite2.accounting_book": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_book", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_book", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "basebook": {"name": "basebook", "description": "Reference to the base book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effectiveperiod": {"name": "effectiveperiod", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isadjustmentonly": {"name": "isadjustmentonly", "description": "Boolean indicating if the accounting book is an adjustment only. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isconsolidated": {"name": "isconsolidated", "description": "Boolean indicating if the accounting book is a consolidated entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contingentrevenuehandling": {"name": "contingentrevenuehandling", "description": "Boolean indicating if the accounting book is contingent revenue handling. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isprimary": {"name": "isprimary", "description": "Boolean indicating if the accounting book is a primary entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "twosteprevenueallocation": {"name": "twosteprevenueallocation", "description": "Boolean indicating if the accounting book is a two step revenue allocation entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unbilledreceivablegrouping": {"name": "unbilledreceivablegrouping", "description": "Boolean indicating if the accounting book is an unbilled receivable grouping. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\"", "created_at": 1666643120.7518148}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period_fiscal_calendars"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_period_fiscal_calendars", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_fiscal_cal_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the accounting fiscal calendar periods.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingperiod": {"name": "accountingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\"", "created_at": 1666643120.751887}, "source.netsuite_source.netsuite2.accounting_period": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_period", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_period", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "periodname": {"name": "periodname", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "startdate": {"name": "startdate", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "enddate": {"name": "enddate", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closedondate": {"name": "closedondate", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isquarter": {"name": "isquarter", "description": "Boolean indicating if the accounting period is the initial quarter. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isyear": {"name": "isyear", "description": "Boolean indicating if the accounting period is the initial period. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isadjust": {"name": "isadjust", "description": "Boolean indicating if the accounting period is an adjustment. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isposting": {"name": "isposting", "description": "Boolean indicating if the accounting period is posting. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Boolean indicating if the accounting period is closed. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "alllocked": {"name": "alllocked", "description": "Boolean indicating if all the accounting periods are locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "arlocked": {"name": "arlocked", "description": "Boolean indicating if the ar accounting period is locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "aplocked": {"name": "aplocked", "description": "Boolean indicating if the ap accounting period is locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\"", "created_at": 1666643120.751968}, "source.netsuite_source.netsuite2.account": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "account"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.account", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "account", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounts set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external account,", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "acctnumber": {"name": "acctnumber", "description": "Netsuite generated account number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accttype": {"name": "accttype", "description": "Reference to the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferralacct": {"name": "deferralacct", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cashflowrate": {"name": "cashflowrate", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "generalrate": {"name": "generalrate", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "includechildren": {"name": "includechildren", "description": "Boolean indicating if the account includes sub accounts. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the account is inactive. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "issummary": {"name": "issummary", "description": "Boolean indicating if the account is a summary account. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\"", "created_at": 1666643120.75205}, "source.netsuite_source.netsuite2.classification": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "classification"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.classification", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "classification", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_classification_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all classes set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the class is active. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\"", "created_at": 1666643120.7521229}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "consolidated_exchange_rate"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "consolidated_exchange_rate", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_consolidated_exchange_rate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"id": {"name": "id", "description": "unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postingperiod": {"name": "postingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fromcurrency": {"name": "fromcurrency", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fromsubsidiary": {"name": "fromsubsidiary", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tocurrency": {"name": "tocurrency", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tosubsidiary": {"name": "tosubsidiary", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currentrate": {"name": "currentrate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "averagerate": {"name": "averagerate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historicalrate": {"name": "historicalrate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\"", "created_at": 1666643120.752196}, "source.netsuite_source.netsuite2.currency": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "currency"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.currency", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "currency", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_currency_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all currency information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\"", "created_at": 1666643120.7522671}, "source.netsuite_source.netsuite2.customer": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "customer"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.customer", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "customer", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all customer information.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Boolean indicating if the customer is an individual person. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "firstname": {"name": "firstname", "description": "First name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lastname": {"name": "lastname", "description": "Last name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Customers email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivablesaccount": {"name": "receivablesaccount", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "firstorderdate": {"name": "firstorderdate", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\"", "created_at": 1666643120.7523541}, "source.netsuite_source.netsuite2.department": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "department"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.department", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "department", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all departments set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the department is active. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\"", "created_at": 1666643120.7524312}, "source.netsuite_source.netsuite2.entity": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.entity", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "entity", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entities_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all entities in Netsuite.", "columns": {"id": {"name": "id", "description": "Th \"The entity id of the entity used for the record.\"e unique identifier of the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact": {"name": "contact", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee": {"name": "employee", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entitytitle": {"name": "entitytitle", "description": "The entity name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Value indicating whether the entity is a person (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "project": {"name": "project", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor": {"name": "vendor", "description": "The unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\"", "created_at": 1666643120.752507}, "source.netsuite_source.netsuite2.entity_address": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity_address"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.entity_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "entity_address", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entity_address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing addresses and the various entities which they map.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\"", "created_at": 1666643120.752583}, "source.netsuite_source.netsuite2.item": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "item"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.item", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "item", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing information about the items created in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "itemtype": {"name": "itemtype", "description": "Item type name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "assetaccount": {"name": "assetaccount", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expenseaccount": {"name": "expenseaccount", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "gainlossaccount": {"name": "gainlossaccount", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "incomeaccount": {"name": "incomeaccount", "description": "Reference to the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoexpenseaccount": {"name": "intercoexpenseaccount", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoincomeaccount": {"name": "intercoincomeaccount", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferralaccount": {"name": "deferralaccount", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferredrevenueaccount": {"name": "deferredrevenueaccount", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\"", "created_at": 1666643120.7526689}, "source.netsuite_source.netsuite2.job": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "job"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.job", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "job", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_job_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all jobs.", "columns": {"id": {"name": "id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "Reference the the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Default billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\"", "created_at": 1666643120.7527401}, "source.netsuite_source.netsuite2.location_main_address": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "location_main_address"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.location_main_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "location_main_address", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_main_address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the location main addresses.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\"", "created_at": 1666643120.752856}, "source.netsuite_source.netsuite2.location": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "location"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.location", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "location", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\"", "created_at": 1666643120.752929}, "source.netsuite_source.netsuite2.subsidiary": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "subsidiary"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.subsidiary", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "subsidiary", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_subsidiary_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\"", "created_at": 1666643120.75301}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_accounting_line"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction_accounting_line", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_tran_acct_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction": {"name": "transaction", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transactionline": {"name": "transactionline", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "netamount": {"name": "netamount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Reference to the accounting book of the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account": {"name": "account", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting": {"name": "posting", "description": "Boolean indicating if the entry is posting. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "debit": {"name": "debit", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amountpaid": {"name": "amountpaid", "description": "Total amount paid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amountunpaid": {"name": "amountunpaid", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\"", "created_at": 1666643120.753087}, "source.netsuite_source.netsuite2.transaction_line": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_line"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction_line", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction_line", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction": {"name": "transaction", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linesequencenumber": {"name": "linesequencenumber", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item": {"name": "item", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isclosed": {"name": "isclosed", "description": "Boolean indicating if the transaction line is closed. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isbillable": {"name": "isbillable", "description": "Boolean indicating if the transaction line is billable. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "iscogs": {"name": "iscogs", "description": "Boolean indicating if the transaction line is a cost of goods sold entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cleared": {"name": "cleared", "description": "Boolean indicating if the transaction line is cleared. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "commitmentfirm": {"name": "commitmentfirm", "description": "Boolean indicating if the transaction line is a commitment firm. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainline": {"name": "mainline", "description": "Boolean indicating if the transaction line is a main line entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxline": {"name": "taxline", "description": "Boolean indicating if the transaction line is a tax line. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\"", "created_at": 1666643120.7531679}, "source.netsuite_source.netsuite2.transaction": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transactionnumber": {"name": "transactionnumber", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "createddate": {"name": "createddate", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duedate": {"name": "duedate", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closedate": {"name": "closedate", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postingperiod": {"name": "postingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting": {"name": "posting", "description": "Boolean indicating if the transaction is a posting event. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoadj": {"name": "intercoadj", "description": "Boolean indicating if the transaction is an intercompany adjustment. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isreversal": {"name": "isreversal", "description": "Boolean indicating if the transaction is a reversal entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\"", "created_at": 1666643120.753249}, "source.netsuite_source.netsuite2.vendor_category": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor_category"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.vendor_category", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "vendor_category", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_category_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing categories and how they map to vendors.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\"", "created_at": 1666643120.7533178}, "source.netsuite_source.netsuite2.vendor": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.vendor", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "vendor", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all vendor information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "datecreated": {"name": "datecreated", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\"", "created_at": 1666643120.7533891}, "source.netsuite_source.netsuite.accounting_books": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_books"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounting_books", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounting_books", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_books_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\"", "created_at": 1666643120.7534568}, "source.netsuite_source.netsuite.accounting_periods": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_periods"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounting_periods", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounting_periods", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_periods_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting": {"name": "starting", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending": {"name": "ending", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_0": {"name": "year_0", "description": "Value indicating whether the accounting period is in it's initial year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Value indicating whether the accounting period is an adjustment (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\"", "created_at": 1666643120.753533}, "source.netsuite_source.netsuite.accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table that provides a complete listing of every account in the accounting system.", "columns": {"account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the type of the account (ie. Bank, Equity, Income, Expense).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingnumber": {"name": "accountingnumber", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\"", "created_at": 1666643120.75361}, "source.netsuite_source.netsuite.classes": {"fqn": ["netsuite_source", "netsuite", "netsuite", "classes"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.classes", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "classes", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_classes_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all classes set up in Netsuite.", "columns": {"class_id": {"name": "class_id", "description": "The unique identifier of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\"", "created_at": 1666643120.753678}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"fqn": ["netsuite_source", "netsuite", "netsuite", "consolidated_exchange_rates"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "consolidated_exchange_rates", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_consolidated_exchange_rates_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The accounting book the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "THe subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\"", "created_at": 1666643120.753751}, "source.netsuite_source.netsuite.currencies": {"fqn": ["netsuite_source", "netsuite", "netsuite", "currencies"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.currencies", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "currencies", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_currencies_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "The names and symbols for all currencies set up in Netsuite.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\"", "created_at": 1666643120.753823}, "source.netsuite_source.netsuite.customers": {"fqn": ["netsuite_source", "netsuite", "netsuite", "customers"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.customers", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "customers", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_customers_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_extid": {"name": "customer_extid", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order": {"name": "date_first_order", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\"", "created_at": 1666643120.753897}, "source.netsuite_source.netsuite.departments": {"fqn": ["netsuite_source", "netsuite", "netsuite", "departments"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.departments", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "departments", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_departments_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all departments set up in Netsuite.", "columns": {"department_id": {"name": "department_id", "description": "The unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\"", "created_at": 1666643120.753966}, "source.netsuite_source.netsuite.expense_accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "expense_accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.expense_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "expense_accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_expense_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all expense accounts.", "columns": {"expense_account_id": {"name": "expense_account_id", "description": "The unique identifier of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\"", "created_at": 1666643120.754037}, "source.netsuite_source.netsuite.income_accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "income_accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.income_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "income_accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_income_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all income accounts.", "columns": {"income_account_id": {"name": "income_account_id", "description": "The unique identifier of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\"", "created_at": 1666643120.754127}, "source.netsuite_source.netsuite.items": {"fqn": ["netsuite_source", "netsuite", "netsuite", "items"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.items", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "items", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_items_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing information about the items created in Netsuite.", "columns": {"item_id": {"name": "item_id", "description": "The unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salesdescription": {"name": "salesdescription", "description": "The items sales description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\"", "created_at": 1666643120.754199}, "source.netsuite_source.netsuite.locations": {"fqn": ["netsuite_source", "netsuite", "netsuite", "locations"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.locations", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "locations", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_locations_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"location_id": {"name": "location_id", "description": "The unique identifier of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\"", "created_at": 1666643120.754271}, "source.netsuite_source.netsuite.subsidiaries": {"fqn": ["netsuite_source", "netsuite", "netsuite", "subsidiaries"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "subsidiaries", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_subsidiaries_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id associated with the fiscal calendar the subsidiary is on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\"", "created_at": 1666643120.754345}, "source.netsuite_source.netsuite.transaction_lines": {"fqn": ["netsuite_source", "netsuite", "netsuite", "transaction_lines"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.transaction_lines", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "transaction_lines", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transaction_lines_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The subsidiary id of the subsidiary which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The item id of the item which is included in the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "non_posting_line": {"name": "non_posting_line", "description": "Value indicating whether the transaction line is a non posting line (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The class id of the class which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The location id of the location which the transaction line took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\"", "created_at": 1666643120.754424}, "source.netsuite_source.netsuite.transactions": {"fqn": ["netsuite_source", "netsuite", "netsuite", "transactions"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.transactions", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "transactions", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transactions_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_advanced_intercompany": {"name": "is_advanced_intercompany", "description": "Value indicating whether the transaction is an advanced intercompany journal entry (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\"", "created_at": 1666643120.754498}, "source.netsuite_source.netsuite.vendor_types": {"fqn": ["netsuite_source", "netsuite", "netsuite", "vendor_types"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.vendor_types", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "vendor_types", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendor_types_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all the various types of vendors.", "columns": {"vendor_type_id": {"name": "vendor_type_id", "description": "The unique identifier of the vendor type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\"", "created_at": 1666643120.7545621}, "source.netsuite_source.netsuite.vendors": {"fqn": ["netsuite_source", "netsuite", "netsuite", "vendors"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.vendors", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "vendors", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendors_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The vendor's company name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\"", "created_at": 1666643120.7546299}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9249861, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.92522, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9253309, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.925445, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9255512, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.926689, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.927383, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.932843, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.933393, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.933702, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.934019, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9344761, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.934838, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.93501, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.935361, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.935761, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.936618, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.936817, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9371352, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.93741, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.937836, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9380631, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.938661, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.938868, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.938984, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9395058, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.940275, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.940566, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.941233, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.944447, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.944675, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.945212, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9456692, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.94675, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.946947, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.947089, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9472299, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.947368, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9478002, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.948094, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.948394, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.948865, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.949143, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9525208, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.952692, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9529128, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.953629, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.953792, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.953963, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.955347, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.956706, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9605062, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.96079, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.96096, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.961046, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.961189, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.961302, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.961508, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.962382, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.962574, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.962821, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.963253, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.969179, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.971262, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.971791, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.972099, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.972546, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9729202, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.974475, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.975007, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.975657, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9758878, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.976594, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.980829, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.982466, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.982709, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.983447, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.983714, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.984354, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9850628, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.985941, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.986172, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.986353, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9866052, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.986784, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.987039, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9872289, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.987495, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.987679, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.987829, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.988108, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.992953, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.9980328, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643118.999242, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.000437, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.001388, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.00405, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0046458, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.004836, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.005267, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0056949, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.008266, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.008652, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0088792, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.01042, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.010849, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.011014, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0111969, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0114508, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.014852, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0194829, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.020378, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.020627, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021238, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021482, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021624, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021769, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.021884, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.022047, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.022163, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.022652, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.02284, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.024089, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.024576, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0248, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.025357, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.025616, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.025901, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0263581, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0266082, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0270321, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0274189, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.027742, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.02836, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0298638, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0305102, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0308092, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.032738, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.033979, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.03476, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0350049, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.035396, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0354729, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.035878, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0360541, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.03648, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.036618, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.03698, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0370932, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0374951, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.037656, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0379462, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0380192, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.038347, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.038482, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.03883, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.039037, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.039693, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.040085, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0404701, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.040628, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0409658, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0410979, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.041409, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.041573, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0418859, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.042044, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.042366, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04247, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.042807, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04294, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.043249, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.043351, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0442848, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.044437, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.044658, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.044807, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.044964, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.045108, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04526, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04543, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.045588, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0457358, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.045891, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.046029, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0461829, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.046323, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0466628, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04679, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.047091, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0471869, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0475678, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0478249, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.047968, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.048508, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.048668, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.048942, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.049265, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.04939, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0498078, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.050048, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.050377, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.050504, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.050915, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.051098, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0512588, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0514371, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.05195, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0521019, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.052236, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.052335, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.052491, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.052564, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.05272, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0528781, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.053365, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.053561, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0537128, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.054102, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0570931, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.057256, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.057468, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0577521, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0579882, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.058298, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.058476, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.058679, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0588531, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0590038, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0591948, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.059467, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0597088, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.060271, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.060574, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.060721, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0609221, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.061433, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0618649, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.063584, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.063709, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0638819, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.063999, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.064351, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0645509, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.064657, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0648909, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.065087, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0653179, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.065514, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.065747, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.066447, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.066721, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.066978, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0672169, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.068396, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.069207, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.069386, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.069598, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.069777, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.070056, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.070558, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.072078, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0723488, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.072542, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0726988, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.072882, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.073131, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0733418, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0736482, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.073843, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.074007, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0757492, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.076001, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.076326, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.076517, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0768661, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.07719, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.077847, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.078124, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.078946, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0805519, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.081047, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.081522, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.081944, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0820181, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.082645, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.082884, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0831811, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.083476, "supported_languages": null}, "macro.dbt_utils.xdb_deprecation_warning_without_replacement": {"unique_id": "macro.dbt_utils.xdb_deprecation_warning_without_replacement", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "original_file_path": "macros/cross_db_utils/deprecated/xdb_deprecation_warning.sql", "name": "xdb_deprecation_warning_without_replacement", "macro_sql": "{% macro xdb_deprecation_warning_without_replacement(macro, package, model) %}\n {%- set error_message = \"Warning: the `\" ~ macro ~\"` macro is deprecated and will be removed in a future version of the package, once equivalent functionality is implemented in dbt Core. The \" ~ package ~ \".\" ~ model ~ \" model triggered this warning.\" -%}\n {%- do exceptions.warn(error_message) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.083908, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.084331, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n split_part(\n split_part(\n replace(\n replace(\n replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.084787, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.085332, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n replace(\n replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ position(\"'/'\", stripped_url) }}, 0),\n {{ position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n split_part(\n right(\n stripped_url,\n length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ safe_cast(\n parsed_path,\n type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.086029, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0864289, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = split_part(split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.086748, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0878851, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.088922, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.089921, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0910022, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0918431, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0921862, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.092854, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, group_by_columns) %}\n\n{% set threshold = dateadd(datepart, interval * -1, current_timestamp_backcompat()) %}\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n max({{field}}) as most_recent\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.093481, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.094015, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.094487, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.095176, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0956511, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.096266, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.096645, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.097172, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0977228, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.0984042, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.099072, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.099689, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.100018, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None, condition='1=1') %}\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name, condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1005719, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name, condition) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nwith meet_condition as (\n select * from {{ model }} where {{ condition }}\n)\n\nselect\n {{ column_list }}\nfrom meet_condition\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.10097, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1016572, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.102478, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.103418, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ type_timestamp() }})= cast({{ dateadd(datepart, interval, previous_column_name) }} as {{ type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.104278, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1050508, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.10592, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.106503, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1067939, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.110038, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1118789, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1122491, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.11242, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1129348, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.113284, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.113485, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.113808, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.113983, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.11451, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.11539, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.116124, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1167161, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1169531, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1173089, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.117696, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1180391, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1187682, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.119696, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.120567, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1209888, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1211782, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.12169, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.122415, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.123262, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.123738, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.124025, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.124761, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='') -%}\n {%- do dbt_utils._is_relation(from, 'star') -%}\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('*') }}\n {%- endif -%}\n\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\n\n {%- if cols|length <= 0 -%}\n {{- return('*') -}}\n {%- else -%}\n {%- for col in cols %}\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}{{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\n {%- if not loop.last %},{{ '\\n ' }}{% endif %}\n {%- endfor -%}\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.125749, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1270888, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.128744, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.131777, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ string_literal(relation) }} as {{ type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.135157, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.135566, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.135818, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.136607, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.136825, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.137028, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.137218, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.137384, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.137558, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.138009, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a variable scoped to the dbt_utils package called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.138253, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.138697, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.139242, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.139644, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1399791, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1416361, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.141998, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1427882, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.143295, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.144434, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.145896, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.146972, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.147823, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.148345, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1490822, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.150528, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1509728, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1514182, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1516101, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.152066, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1526668, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1531808, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ hash(concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.153816, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1542668, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.154405, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.154539, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.155618, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.155982, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.156551, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.157362, "supported_languages": null}, "macro.netsuite_source.get_expense_accounts_columns": {"unique_id": "macro.netsuite_source.get_expense_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_expense_accounts_columns.sql", "original_file_path": "macros/get_expense_accounts_columns.sql", "name": "get_expense_accounts_columns", "macro_sql": "{% macro get_expense_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"current_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"desription\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_including_child_subs\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.1593049, "supported_languages": null}, "macro.netsuite_source.get_locationmainaddress_columns": {"unique_id": "macro.netsuite_source.get_locationmainaddress_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locationmainaddress_columns.sql", "original_file_path": "macros/get_locationmainaddress_columns.sql", "name": "get_locationmainaddress_columns", "macro_sql": "{% macro get_locationmainaddress_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"addr1\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr2\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr3\", \"datatype\": dbt.type_string()},\n {\"name\": \"addressee\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrtext\", \"datatype\": dbt.type_string()},\n {\"name\": \"attention\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dropdownstate\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"nkey\", \"datatype\": dbt.type_int()},\n {\"name\": \"override\", \"datatype\": dbt.type_string()},\n {\"name\": \"recordowner\", \"datatype\": dbt.type_int()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.161442, "supported_languages": null}, "macro.netsuite_source.get_accounts_columns": {"unique_id": "macro.netsuite_source.get_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "name": "get_accounts_columns", "macro_sql": "{% macro get_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"general_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_balancesheet\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_leftside\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"type_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.16312, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounts_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "name": "get_netsuite2_accounts_columns", "macro_sql": "{% macro get_netsuite2_accounts_columns() %}\n\n{% set columns = [\n\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"acctnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"accttype\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"deferralacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"cashflowrate\", \"datatype\": dbt.type_string()},\n {\"name\": \"generalrate\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"includechildren\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"issummary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.16496, "supported_languages": null}, "macro.netsuite_source.get_classes_columns": {"unique_id": "macro.netsuite_source.get_classes_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "name": "get_classes_columns", "macro_sql": "{% macro get_classes_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.165792, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_classes_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_classes_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "name": "get_netsuite2_classes_columns", "macro_sql": "{% macro get_netsuite2_classes_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.166595, "supported_languages": null}, "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns": {"unique_id": "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "original_file_path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "name": "get_accountingperiodfiscalcalendars_columns", "macro_sql": "{% macro get_accountingperiodfiscalcalendars_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fiscalcalendar\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.16752, "supported_languages": null}, "macro.netsuite_source.get_accountingbooksubsidiaries_columns": {"unique_id": "macro.netsuite_source.get_accountingbooksubsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accountingbooksubsidiaries_columns.sql", "original_file_path": "macros/get_accountingbooksubsidiaries_columns.sql", "name": "get_accountingbooksubsidiaries_columns", "macro_sql": "{% macro get_accountingbooksubsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.16845, "supported_languages": null}, "macro.netsuite_source.get_items_columns": {"unique_id": "macro.netsuite_source.get_items_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "name": "get_items_columns", "macro_sql": "{% macro get_items_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_drop_ship\", \"datatype\": dbt.type_string()},\n {\"name\": \"alt_demand_source_item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"atp_lead_time\", \"datatype\": dbt.type_float()},\n {\"name\": \"atp_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_to_partners\", \"datatype\": dbt.type_string()},\n {\"name\": \"avatax_taxcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"averagecost\", \"datatype\": dbt.type_float()},\n {\"name\": \"backward_consumption_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"build_sub_assemblies\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"code_of_supply_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"commodity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"consumption_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_0\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_estimate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"costing_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_manufacture\", \"datatype\": dbt.type_string()},\n {\"name\": \"create_plan_on_event_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"created\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"current_on_order_count\", \"datatype\": dbt.type_float()},\n {\"name\": \"custreturn_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_of_last_transaction\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_return_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"deferred_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"deferred_revenue_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"demand_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"demand_time_fence\", \"datatype\": dbt.type_float()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_string()},\n {\"name\": \"displayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"distribution_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"distribution_network\", \"datatype\": dbt.type_string()},\n {\"name\": \"dropship_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"effective_bom_control_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"featureddescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"featureditem\", \"datatype\": dbt.type_string()},\n {\"name\": \"fixed_lot_size\", \"datatype\": dbt.type_float()},\n {\"name\": \"forward_consumption_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"fraud_risk\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fx_adjustment_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"gain_loss_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"handling_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"hazmat\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_hazard_class\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_item_units\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_item_units_qty\", \"datatype\": dbt.type_float()},\n {\"name\": \"hazmat_packing_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_shipping_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"include_child_subsidiaries\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"interco_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"interco_income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"invt_count_classification\", \"datatype\": dbt.type_float()},\n {\"name\": \"invt_count_interval\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_cont_rev_handling\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_enforce_min_qty_internally\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_hold_rev_rec\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_moss\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_phantom\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_special_order_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isonline\", \"datatype\": dbt.type_string()},\n {\"name\": \"istaxable\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_defined_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_image\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_revenue_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_term_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"last_cogs_correction\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_invt_count_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_purchase_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"lot_numbered_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"lot_sizing_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturing_charge_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_bill_to_receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrix_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"maximum_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"minimum_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"mpn\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"nature_of_transaction_codes_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"next_invt_count_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ng_asset_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"ns_lead_time\", \"datatype\": dbt.type_float()},\n {\"name\": \"offersupport\", \"datatype\": dbt.type_string()},\n {\"name\": \"onspecial\", \"datatype\": dbt.type_string()},\n {\"name\": \"overhead_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"periodic_lot_size_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"periodic_lot_size_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pref_purchase_tax_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"pref_sale_tax_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"pref_stock_level\", \"datatype\": dbt.type_float()},\n {\"name\": \"prices_include_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"pricing_group_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"print_sub_items\", \"datatype\": dbt.type_string()},\n {\"name\": \"prod_price_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"prod_qty_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"prompt_payment_discount_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_price_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchasedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantityavailable\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantitybackordered\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantityonhand\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"reorder_multiple\", \"datatype\": dbt.type_float()},\n {\"name\": \"reorderpoint\", \"datatype\": dbt.type_float()},\n {\"name\": \"replenishment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"resalable\", \"datatype\": dbt.type_string()},\n {\"name\": \"reschedule_in_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"reschedule_out_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"rev_rec_forecast_rule_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"rev_rec_rule_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"revenue_allocation_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"round_up_as_component\", \"datatype\": dbt.type_string()},\n {\"name\": \"safety_stock_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"safety_stock_level\", \"datatype\": dbt.type_float()},\n {\"name\": \"sale_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"salesdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesforce_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesprice\", \"datatype\": dbt.type_string()},\n {\"name\": \"scrap_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"serialized_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"shippingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"special_work_order_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"specialsdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"storedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedetaileddescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplementary_unit__abberviat\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplementary_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"supply_time_fence\", \"datatype\": dbt.type_float()},\n {\"name\": \"supply_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"totalvalue\", \"datatype\": dbt.type_float()},\n {\"name\": \"transferprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"type_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type_of_goods_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"udf1\", \"datatype\": dbt.type_string()},\n {\"name\": \"udf2\", \"datatype\": dbt.type_string()},\n {\"name\": \"un_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbuild_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"units_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"upc_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"use_component_yield\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendorname\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendreturn_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vsoe_deferral\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_delivered\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_discount\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_in_user_defined_unit\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit_index\", \"datatype\": dbt.type_float()},\n {\"name\": \"wip_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"wip_cost_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"work_order_lead_time\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('items_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.209292, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_items_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_items_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "name": "get_netsuite2_items_columns", "macro_sql": "{% macro get_netsuite2_items_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"alternatedemandsourceitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"amortizationperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"amortizationtemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"assetaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"atpmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"autoexpandkitforrevenuemgmt\", \"datatype\": dbt.type_string()},\n {\"name\": \"averagecost\", \"datatype\": dbt.type_float()},\n {\"name\": \"backwardconsumptiondays\", \"datatype\": dbt.type_int()},\n {\"name\": \"billexchratevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"billingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"billpricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"billqtyvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"buildentireassembly\", \"datatype\": dbt.type_string()},\n {\"name\": \"buildtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"consumptionunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"copydescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"costestimate\", \"datatype\": dbt.type_float()},\n {\"name\": \"costestimatetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"costingmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"costingmethoddisplay\", \"datatype\": dbt.type_string()},\n {\"name\": \"countryofmanufacture\", \"datatype\": dbt.type_string()},\n {\"name\": \"createddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"createexpenseplanson\", \"datatype\": dbt.type_int()},\n {\"name\": \"createjob\", \"datatype\": dbt.type_string()},\n {\"name\": \"createrevenueplanson\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deferralaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"deferredrevenueaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"deferrevrec\", \"datatype\": dbt.type_string()},\n {\"name\": \"demandmodifier\", \"datatype\": dbt.type_float()},\n {\"name\": \"demandsource\", \"datatype\": dbt.type_string()},\n {\"name\": \"demandtimefence\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"directrevenueposting\", \"datatype\": dbt.type_string()},\n {\"name\": \"displayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"dropshipexpenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"enforceminqtyinternally\", \"datatype\": dbt.type_string()},\n {\"name\": \"excludefromsitemap\", \"datatype\": dbt.type_string()},\n {\"name\": \"expenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"expenseamortizationrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fixedlotsize\", \"datatype\": dbt.type_float()},\n {\"name\": \"forwardconsumptiondays\", \"datatype\": dbt.type_int()},\n {\"name\": \"froogleproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"gainlossaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"generateaccruals\", \"datatype\": dbt.type_string()},\n {\"name\": \"handlingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includechildren\", \"datatype\": dbt.type_string()},\n {\"name\": \"incomeaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercodefrevaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercoexpenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercoincomeaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"isdropshipitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isfulfillable\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"islotitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isonline\", \"datatype\": dbt.type_string()},\n {\"name\": \"isphantom\", \"datatype\": dbt.type_string()},\n {\"name\": \"isserialitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isspecialorderitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isspecialworkorderitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"itemid\", \"datatype\": dbt.type_string()},\n {\"name\": \"itemrevenuecategory\", \"datatype\": dbt.type_int()},\n {\"name\": \"itemtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastpurchaseprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"leadtime\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"manufacturer\", \"datatype\": dbt.type_string()},\n {\"name\": \"matchbilltoreceipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrixitemnametemplate\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrixtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"maximumquantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"minimumquantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"mpn\", \"datatype\": dbt.type_string()},\n {\"name\": \"nextagcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"nextagproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"overallquantitypricingtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodiclotsizedays\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodiclotsizetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferredlocation\", \"datatype\": dbt.type_int()},\n {\"name\": \"pricinggroup\", \"datatype\": dbt.type_int()},\n {\"name\": \"printitems\", \"datatype\": dbt.type_string()},\n {\"name\": \"prodpricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"prodqtyvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"projectexpensetype\", \"datatype\": dbt.type_int()},\n {\"name\": \"projecttemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchasedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchasepricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchaseunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantitypricingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"relateditemsdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"rescheduleindays\", \"datatype\": dbt.type_int()},\n {\"name\": \"rescheduleoutdays\", \"datatype\": dbt.type_int()},\n {\"name\": \"residual\", \"datatype\": dbt.type_float()},\n {\"name\": \"revenueallocationgroup\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenuerecognitionrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"revrecforecastrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"revreclassfxaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"roundupascomponent\", \"datatype\": dbt.type_string()},\n {\"name\": \"safetystocklevel\", \"datatype\": dbt.type_float()},\n {\"name\": \"saleunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"scrapacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"searchkeywords\", \"datatype\": dbt.type_string()},\n {\"name\": \"seasonaldemand\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipindividually\", \"datatype\": dbt.type_string()},\n {\"name\": \"shippackage\", \"datatype\": dbt.type_int()},\n {\"name\": \"shippingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"shoppingdotcomcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"shoppingproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"shopzillacategoryid\", \"datatype\": dbt.type_int()},\n {\"name\": \"shopzillaproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"sitemappriority\", \"datatype\": dbt.type_string()},\n {\"name\": \"stockdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"stockunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"storedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplayimage\", \"datatype\": dbt.type_int()},\n {\"name\": \"storedisplayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplaythumbnail\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplylotsizingmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplyreplenishmentmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplytimefence\", \"datatype\": dbt.type_int()},\n {\"name\": \"supplytype\", \"datatype\": dbt.type_string()},\n {\"name\": \"totalquantityonhand\", \"datatype\": dbt.type_float()},\n {\"name\": \"totalvalue\", \"datatype\": dbt.type_float()},\n {\"name\": \"transferprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbuildvarianceaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"unitstype\", \"datatype\": dbt.type_int()},\n {\"name\": \"upccode\", \"datatype\": dbt.type_string()},\n {\"name\": \"usebins\", \"datatype\": dbt.type_string()},\n {\"name\": \"usemarginalrates\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendorname\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendreturnvarianceaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"vsoedelivered\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoepermitdiscount\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoesopgroup\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weightunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"weightunits\", \"datatype\": dbt.type_string()},\n {\"name\": \"wipacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"wipvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"yahooproductfeed\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('items_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2228758, "supported_languages": null}, "macro.netsuite_source.get_transaction_lines_columns": {"unique_id": "macro.netsuite_source.get_transaction_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "name": "get_transaction_lines_columns", "macro_sql": "{% macro get_transaction_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"company_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"non_posting_line\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_line_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.22501, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_lines_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transaction_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "name": "get_netsuite2_transaction_lines_columns", "macro_sql": "{% macro get_netsuite2_transaction_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"linesequencenumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"entity\", \"datatype\": dbt.type_int()},\n {\"name\": \"item\", \"datatype\": dbt.type_int()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"isclosed\", \"datatype\": dbt.type_string()},\n {\"name\": \"isbillable\", \"datatype\": dbt.type_string()},\n {\"name\": \"iscogs\", \"datatype\": dbt.type_string()},\n {\"name\": \"cleared\", \"datatype\": dbt.type_string()},\n {\"name\": \"commitmentfirm\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainline\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxline\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.226866, "supported_languages": null}, "macro.netsuite_source.get_vendors_columns": {"unique_id": "macro.netsuite_source.get_vendors_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "name": "get_vendors_columns", "macro_sql": "{% macro get_vendors_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"accounts_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_revenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"auto_renewals\", \"datatype\": dbt.type_string()},\n {\"name\": \"auto_send_statements\", \"datatype\": dbt.type_string()},\n {\"name\": \"billaddress\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"create_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creditlimit\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dic\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_bill_payment_vouchers\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_cash_sales\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_credit_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_invoices\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_item_fulfilments\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_purchase_orders\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_quotes\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_sales_orders\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_statements\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exemption_certificate_no\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"hris_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ico\", \"datatype\": dbt.type_string()},\n {\"name\": \"id_number_in_the_country_of_r\", \"datatype\": dbt.type_string()},\n {\"name\": \"id_type_in_the_country_of_r_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"in_transit_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"incoterm\", \"datatype\": dbt.type_string()},\n {\"name\": \"industry_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"invoice_via_procurement_syste\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoicing_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"is1099eligible\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_partner\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_person\", \"datatype\": dbt.type_string()},\n {\"name\": \"isemailhtml\", \"datatype\": dbt.type_string()},\n {\"name\": \"isemailpdf\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"labor_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_sales_activity\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"line1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line3\", \"datatype\": dbt.type_string()},\n {\"name\": \"loginaccess\", \"datatype\": dbt.type_string()},\n {\"name\": \"lsa_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"lsa_link_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"msa_effective_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"no__of_employees\", \"datatype\": dbt.type_float()},\n {\"name\": \"openbalance\", \"datatype\": dbt.type_float()},\n {\"name\": \"openbalance_foreign\", \"datatype\": dbt.type_float()},\n {\"name\": \"payables_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"payment_terms_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"prepayment_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"printoncheckas\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchases_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"represents_subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"restrict_access_to_expensify\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesforce_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipaddress\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_contact_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_contact_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_contact_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_contact_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxidnum\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_approver_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transactions_need_approval\", \"datatype\": dbt.type_string()},\n {\"name\": \"uen\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilled_orders\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbilled_orders_foreign\", \"datatype\": dbt.type_float()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"vat_registration_no\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendor_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('vendors_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2431161, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_vendors_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_vendors_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "name": "get_netsuite2_vendors_columns", "macro_sql": "{% macro get_netsuite2_vendors_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"altemail\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"altphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balanceprimary\", \"datatype\": dbt.type_float()},\n {\"name\": \"billingclass\", \"datatype\": dbt.type_int()},\n {\"name\": \"category\", \"datatype\": dbt.type_int()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"contactlist\", \"datatype\": dbt.type_string()},\n {\"name\": \"creditlimit\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultbankaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultvendorpaymentaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"emailpreference\", \"datatype\": dbt.type_string()},\n {\"name\": \"emailtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"expenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"faxtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"giveaccess\", \"datatype\": dbt.type_string()},\n {\"name\": \"homephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"incoterm\", \"datatype\": dbt.type_int()},\n {\"name\": \"isautogeneratedrepresentingentity\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isjobresourcevend\", \"datatype\": dbt.type_string()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"laborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"legalname\", \"datatype\": dbt.type_string()},\n {\"name\": \"middlename\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobilephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"payablesaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"printoncheckas\", \"datatype\": dbt.type_string()},\n {\"name\": \"printtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"representingsubsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"rolesforsearch\", \"datatype\": dbt.type_string()},\n {\"name\": \"salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiaryedition\", \"datatype\": dbt.type_string()},\n {\"name\": \"terms\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilledorders\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbilledordersprimary\", \"datatype\": dbt.type_float()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"workcalendar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('vendors_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.24892, "supported_languages": null}, "macro.netsuite_source.get_transactionaccountingline_columns": {"unique_id": "macro.netsuite_source.get_transactionaccountingline_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactionaccountingline_columns.sql", "original_file_path": "macros/get_transactionaccountingline_columns.sql", "name": "get_transactionaccountingline_columns", "macro_sql": "{% macro get_transactionaccountingline_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account\", \"datatype\": dbt.type_int()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountlinked\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountunpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"debit\", \"datatype\": dbt.type_float()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"netamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"overheadparentitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"paymentamountunused\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountused\", \"datatype\": dbt.type_float()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionline\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.25121, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_accounting_lines_columns.sql", "original_file_path": "macros/get_transaction_accounting_lines_columns.sql", "name": "get_netsuite2_transaction_accounting_lines_columns", "macro_sql": "{% macro get_netsuite2_transaction_accounting_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account\", \"datatype\": dbt.type_int()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountunpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"debit\", \"datatype\": dbt.type_float()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"netamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountunused\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountused\", \"datatype\": dbt.type_float()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionline\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.253164, "supported_languages": null}, "macro.netsuite_source.get_vendorcategory_columns": {"unique_id": "macro.netsuite_source.get_vendorcategory_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendorcategory_columns.sql", "original_file_path": "macros/get_vendorcategory_columns.sql", "name": "get_vendorcategory_columns", "macro_sql": "{% macro get_vendorcategory_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"istaxagency\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.254291, "supported_languages": null}, "macro.netsuite_source.get_accounttype_columns": {"unique_id": "macro.netsuite_source.get_accounttype_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounttype_columns.sql", "original_file_path": "macros/get_accounttype_columns.sql", "name": "get_accounttype_columns", "macro_sql": "{% macro get_accounttype_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balancesheet\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultcashflowratetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"defaultgeneralratetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"eliminationalgo\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"includeinrevaldefault\", \"datatype\": dbt.type_string()},\n {\"name\": \"internalid\", \"datatype\": dbt.type_int()},\n {\"name\": \"left\", \"datatype\": dbt.type_string(), \"quote\": True},\n {\"name\": \"longname\", \"datatype\": dbt.type_string()},\n {\"name\": \"seqnum\", \"datatype\": dbt.type_int()},\n {\"name\": \"usercanchangerevaloption\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2559512, "supported_languages": null}, "macro.netsuite_source.get_accounting_books_columns": {"unique_id": "macro.netsuite_source.get_accounting_books_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "name": "get_accounting_books_columns", "macro_sql": "{% macro get_accounting_books_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_book_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"accounting_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accounting_book_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"base_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_created\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"form_template_component_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"form_template_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_adjustment_only\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_arrangement_level_reclass\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_consolidated\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_contingent_revenue_handling\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_include_child_subsidiaries\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_two_step_revenue_allocation\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilled_receivable_grouping\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2586, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_books_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounting_books_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "name": "get_netsuite2_accounting_books_columns", "macro_sql": "{% macro get_netsuite2_accounting_books_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"basebook\", \"datatype\": dbt.type_int()},\n {\"name\": \"contingentrevenuehandling\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effectiveperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isadjustmentonly\", \"datatype\": dbt.type_string()},\n {\"name\": \"isconsolidated\", \"datatype\": dbt.type_string()},\n {\"name\": \"isprimary\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiariesstring\", \"datatype\": dbt.type_string()},\n {\"name\": \"twosteprevenueallocation\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilledreceivablegrouping\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.260113, "supported_languages": null}, "macro.netsuite_source.get_departments_columns": {"unique_id": "macro.netsuite_source.get_departments_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "name": "get_departments_columns", "macro_sql": "{% macro get_departments_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.261068, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_departments_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_departments_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "name": "get_netsuite2_departments_columns", "macro_sql": "{% macro get_netsuite2_departments_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2619572, "supported_languages": null}, "macro.netsuite_source.get_transactions_columns": {"unique_id": "macro.netsuite_source.get_transactions_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "name": "get_transactions_columns", "macro_sql": "{% macro get_transactions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"is_advanced_intercompany\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_intercompany\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"trandate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.263666, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transactions_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transactions_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "name": "get_netsuite2_transactions_columns", "macro_sql": "{% macro get_netsuite2_transactions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"trandate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"createddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"closedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"entity\", \"datatype\": dbt.type_int()},\n {\"name\": \"postingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"intercoadj\", \"datatype\": dbt.type_string()},\n {\"name\": \"isreversal\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.265377, "supported_languages": null}, "macro.netsuite_source.get_entity_columns": {"unique_id": "macro.netsuite_source.get_entity_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_entity_columns.sql", "original_file_path": "macros/get_entity_columns.sql", "name": "get_entity_columns", "macro_sql": "{% macro get_entity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"altemail\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"altphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee\", \"datatype\": dbt.type_int()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"genericresource\", \"datatype\": dbt.type_int()},\n {\"name\": \"homephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"laborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"middlename\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobilephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"othername\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"partner\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"project\", \"datatype\": dbt.type_int()},\n {\"name\": \"projecttemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"toplevelparent\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.269762, "supported_languages": null}, "macro.netsuite_source.get_accounting_periods_columns": {"unique_id": "macro.netsuite_source.get_accounting_periods_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "name": "get_accounting_periods_columns", "macro_sql": "{% macro get_accounting_periods_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"closed\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_accounts_payable\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_accounts_receivable\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_all\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"closed_payroll\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ending\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fiscal_calendar_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"fivetran_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_adjustment\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_accounts_payable\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_accounts_receivable\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_all\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_payroll\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"quarter\", \"datatype\": dbt.type_string()},\n {\"name\": \"starting\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"year_0\", \"datatype\": dbt.type_string()},\n {\"name\": \"year_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.273397, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_periods_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounting_periods_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "name": "get_netsuite2_accounting_periods_columns", "macro_sql": "{% macro get_netsuite2_accounting_periods_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"alllocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"allownonglchanges\", \"datatype\": dbt.type_string()},\n {\"name\": \"aplocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"arlocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed\", \"datatype\": dbt.type_string()},\n {\"name\": \"closedondate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"enddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isadjust\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isposting\", \"datatype\": dbt.type_string()},\n {\"name\": \"isquarter\", \"datatype\": dbt.type_string()},\n {\"name\": \"isyear\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodname\", \"datatype\": dbt.type_string()},\n {\"name\": \"startdate\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.27524, "supported_languages": null}, "macro.netsuite_source.get_consolidated_exchange_rates_columns": {"unique_id": "macro.netsuite_source.get_consolidated_exchange_rates_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "name": "get_consolidated_exchange_rates_columns", "macro_sql": "{% macro get_consolidated_exchange_rates_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"consolidated_exchange_rate_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"current_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"current_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"historical_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"historical_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"to_subsidiary_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.27727, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "name": "get_netsuite2_consolidated_exchange_rates_columns", "macro_sql": "{% macro get_netsuite2_consolidated_exchange_rates_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"averagerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"currentrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"fromcurrency\", \"datatype\": dbt.type_int()},\n {\"name\": \"fromsubsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"historicalrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"postingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"tocurrency\", \"datatype\": dbt.type_int()},\n {\"name\": \"tosubsidiary\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.278403, "supported_languages": null}, "macro.netsuite_source.get_income_accounts_columns": {"unique_id": "macro.netsuite_source.get_income_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_income_accounts_columns.sql", "original_file_path": "macros/get_income_accounts_columns.sql", "name": "get_income_accounts_columns", "macro_sql": "{% macro get_income_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"current_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"desription\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_including_child_subs\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.280326, "supported_languages": null}, "macro.netsuite_source.get_customers_columns": {"unique_id": "macro.netsuite_source.get_customers_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "name": "get_customers_columns", "macro_sql": "{% macro get_customers_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_first_order\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.28193, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_customers_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_customers_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "name": "get_netsuite2_customers_columns", "macro_sql": "{% macro get_netsuite2_customers_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"receivablesaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"firstorderdate\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.283502, "supported_languages": null}, "macro.netsuite_source.get_locations_columns": {"unique_id": "macro.netsuite_source.get_locations_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "name": "get_locations_columns", "macro_sql": "{% macro get_locations_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.284718, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_locations_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_locations_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "name": "get_netsuite2_locations_columns", "macro_sql": "{% macro get_netsuite2_locations_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2856052, "supported_languages": null}, "macro.netsuite_source.get_entityaddress_columns": {"unique_id": "macro.netsuite_source.get_entityaddress_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_entityaddress_columns.sql", "original_file_path": "macros/get_entityaddress_columns.sql", "name": "get_entityaddress_columns", "macro_sql": "{% macro get_entityaddress_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"addr1\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr2\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr3\", \"datatype\": dbt.type_string()},\n {\"name\": \"addressee\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrtext\", \"datatype\": dbt.type_string()},\n {\"name\": \"attention\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dropdownstate\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"nkey\", \"datatype\": dbt.type_int()},\n {\"name\": \"override\", \"datatype\": dbt.type_string()},\n {\"name\": \"recordowner\", \"datatype\": dbt.type_int()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.287709, "supported_languages": null}, "macro.netsuite_source.get_vendor_types_columns": {"unique_id": "macro.netsuite_source.get_vendor_types_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendor_types_columns.sql", "original_file_path": "macros/get_vendor_types_columns.sql", "name": "get_vendor_types_columns", "macro_sql": "{% macro get_vendor_types_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendor_type_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_type_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.2887292, "supported_languages": null}, "macro.netsuite_source.get_subsidiaries_columns": {"unique_id": "macro.netsuite_source.get_subsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "name": "get_subsidiaries_columns", "macro_sql": "{% macro get_subsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address\", \"datatype\": dbt.type_string()},\n {\"name\": \"address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"base_currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"branch_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"brn\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"edition\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fiscal_calendar_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_elimination\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_moss\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive_bool\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"moss_nexus_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"return_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_zipcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_zipcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"state_tax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"subnav__searchable_subsidiary\", \"datatype\": dbt.type_float()},\n {\"name\": \"subsidiary_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxonomy_reference_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"tran_num_prefix\", \"datatype\": dbt.type_string()},\n {\"name\": \"uen\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.295371, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_subsidiaries_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_subsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "name": "get_netsuite2_subsidiaries_columns", "macro_sql": "{% macro get_netsuite2_subsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"fiscalcalendar\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.296545, "supported_languages": null}, "macro.netsuite_source.get_job_columns": {"unique_id": "macro.netsuite_source.get_job_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_job_columns.sql", "original_file_path": "macros/get_job_columns.sql", "name": "get_job_columns", "macro_sql": "{% macro get_job_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"actualtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"allowallresourcesfortasks\", \"datatype\": dbt.type_string()},\n {\"name\": \"allowexpenses\", \"datatype\": dbt.type_string()},\n {\"name\": \"allowtime\", \"datatype\": dbt.type_string()},\n {\"name\": \"alternatecontact\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"billingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"calculatedenddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"calculatedenddatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"category\", \"datatype\": dbt.type_int()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"contactlist\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"currencyprecision\", \"datatype\": dbt.type_int()},\n {\"name\": \"custentity1\", \"datatype\": dbt.type_string()},\n {\"name\": \"custentity4\", \"datatype\": dbt.type_string()},\n {\"name\": \"custentity5\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"enddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitystatus\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimatedcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedgrossprofit\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedgrossprofitpercent\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborcostbaseline\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborrevenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedrevenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtimeoverride\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtimeoverridebaseline\", \"datatype\": dbt.type_float()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"files\", \"datatype\": dbt.type_string()},\n {\"name\": \"forecastchargerunondemand\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includecrmtasksintotals\", \"datatype\": dbt.type_string()},\n {\"name\": \"isexempttime\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isproductivetime\", \"datatype\": dbt.type_string()},\n {\"name\": \"isutilizedtime\", \"datatype\": dbt.type_string()},\n {\"name\": \"jobbillingtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"jobitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"jobprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"jobtype\", \"datatype\": dbt.type_int()},\n {\"name\": \"lastbaselinedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"limittimetoassignees\", \"datatype\": dbt.type_string()},\n {\"name\": \"materializetime\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"percentcomplete\", \"datatype\": dbt.type_float()},\n {\"name\": \"percenttimecomplete\", \"datatype\": dbt.type_float()},\n {\"name\": \"primarycontact\", \"datatype\": dbt.type_string()},\n {\"name\": \"projectedenddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"projectedenddatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"projectmanager\", \"datatype\": dbt.type_int()},\n {\"name\": \"startdate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"startdatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"timeapproval\", \"datatype\": dbt.type_int()},\n {\"name\": \"timeremaining\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.305096, "supported_languages": null}, "macro.netsuite_source.get_currencies_columns": {"unique_id": "macro.netsuite_source.get_currencies_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "name": "get_currencies_columns", "macro_sql": "{% macro get_currencies_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"is_inactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"precision_0\", \"datatype\": dbt.type_float()},\n {\"name\": \"symbol\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.306714, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_currencies_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_currencies_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "name": "get_netsuite2_currencies_columns", "macro_sql": "{% macro get_netsuite2_currencies_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currencyprecision\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"displaysymbol\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxrateupdatetimezone\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includeinfxrateupdates\", \"datatype\": dbt.type_string()},\n {\"name\": \"isbasecurrency\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"overridecurrencyformat\", \"datatype\": dbt.type_string()},\n {\"name\": \"symbol\", \"datatype\": dbt.type_string()},\n {\"name\": \"symbolplacement\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.308226, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3086982, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3096352, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3098052, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3099709, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.310134, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3102772, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.310441, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.310946, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.311646, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3127801, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3130398, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3132968, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.313545, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.313795, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3140721, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3144178, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.314846, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3149529, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.315056, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3151622, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3156219, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3162858, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.316979, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.31752, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3176541, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.317784, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.31791, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.318041, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.320811, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.320971, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.321128, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.321279, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.323027, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.323921, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3240619, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.324338, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.324626, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.324759, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.324886, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3250098, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.325558, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.326139, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3266912, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.326895, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.327113, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.327436, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.328322, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt_utils.string_literal(relation) }} as {{ dbt_utils.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.332335, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.332698, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.333153, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.334729, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.335271, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.335886, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.336041, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3361878, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.336352, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.336502, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3366442, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.33736, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3383338, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3390741, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3392372, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3393972, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.339556, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.33971, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3398862, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.340214, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.340317, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3404858, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.341182, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.342565, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.345067, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.346565, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3469062, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.3470058, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.347101, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.347542, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1666643119.347981, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "netsuite_source.account_periods_table": {"unique_id": "netsuite_source.account_periods_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_periods_table", "block_contents": "Table detailing all accounting periods, including monthly, quarterly and yearly."}, "netsuite_source.accounting_books_table": {"unique_id": "netsuite_source.accounting_books_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_books_table", "block_contents": "Table detailing all accounting books set up in Netsuite."}, "netsuite_source.accounts_table": {"unique_id": "netsuite_source.accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounts_table", "block_contents": "Table detailing all accounts set up in Netsuite."}, "netsuite_source.classes_table": {"unique_id": "netsuite_source.classes_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "classes_table", "block_contents": "Table detailing all classes set up in Netsuite."}, "netsuite_source.consolidated_exchange_rates_table": {"unique_id": "netsuite_source.consolidated_exchange_rates_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "consolidated_exchange_rates_table", "block_contents": "Table detailing average, historical and current exchange rates for all accounting periods."}, "netsuite_source.customers_table": {"unique_id": "netsuite_source.customers_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customers_table", "block_contents": "Table detailing all customer information."}, "netsuite_source.currencies_table": {"unique_id": "netsuite_source.currencies_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currencies_table", "block_contents": "Table detailing all currency information."}, "netsuite_source.departments_table": {"unique_id": "netsuite_source.departments_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "departments_table", "block_contents": "Table detailing all departments set up in Netsuite."}, "netsuite_source.expense_accounts_table": {"unique_id": "netsuite_source.expense_accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expense_accounts_table", "block_contents": "Table detailing all expense accounts."}, "netsuite_source.income_accounts_table": {"unique_id": "netsuite_source.income_accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "income_accounts_table", "block_contents": "Table detailing all income accounts."}, "netsuite_source.items_table": {"unique_id": "netsuite_source.items_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "items_table", "block_contents": "Table detailing information about the items created in Netsuite."}, "netsuite_source.locations_table": {"unique_id": "netsuite_source.locations_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "locations_table", "block_contents": "Table detailing all locations, including store, warehouse and office locations."}, "netsuite_source.subsidiaries_table": {"unique_id": "netsuite_source.subsidiaries_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "subsidiaries_table", "block_contents": "Table detailing all subsidiaries."}, "netsuite_source.transaction_lines_table": {"unique_id": "netsuite_source.transaction_lines_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "netsuite_source.transaction_table": {"unique_id": "netsuite_source.transaction_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_table", "block_contents": "A table detailing all transactions."}, "netsuite_source.vendor_types_table": {"unique_id": "netsuite_source.vendor_types_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_types_table", "block_contents": "A table detailing all the various types of vendors."}, "netsuite_source.vendor_table": {"unique_id": "netsuite_source.vendor_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "A table detailing all vendor information."}, "netsuite_source.entities_table": {"unique_id": "netsuite_source.entities_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entities_table", "block_contents": "Table detailing all entities in Netsuite."}, "netsuite_source.jobs_table": {"unique_id": "netsuite_source.jobs_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "jobs_table", "block_contents": "Table detailing all jobs."}, "netsuite_source.transaction_accounting_lines_table": {"unique_id": "netsuite_source.transaction_accounting_lines_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_accounting_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "netsuite_source.vendor_categories_table": {"unique_id": "netsuite_source.vendor_categories_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_categories_table", "block_contents": "A table containing categories and how they map to vendors."}, "netsuite_source.accounting_book_subsidiaries_table": {"unique_id": "netsuite_source.accounting_book_subsidiaries_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_book_subsidiaries_table", "block_contents": "A table containing the various account books and the respective subsidiaries."}, "netsuite_source.accounting_period_fiscal_calendars_table": {"unique_id": "netsuite_source.accounting_period_fiscal_calendars_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_period_fiscal_calendars_table", "block_contents": "A table containing the accounting fiscal calendar periods."}, "netsuite_source.account_types_table": {"unique_id": "netsuite_source.account_types_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_types_table", "block_contents": "A table containing the various account types within Netsuite."}, "netsuite_source.entity_address_table": {"unique_id": "netsuite_source.entity_address_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entity_address_table", "block_contents": "A table containing addresses and the various entities which they map."}, "netsuite_source.location_main_address_table": {"unique_id": "netsuite_source.location_main_address_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "location_main_address_table", "block_contents": "A table containing the location main addresses."}, "netsuite_source._fivetran_id": {"unique_id": "netsuite_source._fivetran_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "netsuite_source._fivetran_synced": {"unique_id": "netsuite_source._fivetran_synced", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "netsuite_source._fivetran_deleted": {"unique_id": "netsuite_source._fivetran_deleted", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Timestamp of when a record was deleted."}, "netsuite_source.vendor_id": {"unique_id": "netsuite_source.vendor_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_id", "block_contents": "The unique identifier of the vendor."}, "netsuite_source.company_name": {"unique_id": "netsuite_source.company_name", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "company_name", "block_contents": "Name of the company."}, "netsuite_source.create_date_at": {"unique_id": "netsuite_source.create_date_at", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "create_date_at", "block_contents": "Timestamp of the record creation."}, "netsuite_source.vendor_category_id": {"unique_id": "netsuite_source.vendor_category_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_category_id", "block_contents": "Unique identifier of the vendor category."}, "netsuite_source.accounting_period_id": {"unique_id": "netsuite_source.accounting_period_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_period_id", "block_contents": "The accounting period id of the accounting period which the transaction took place in."}, "netsuite_source.created_at": {"unique_id": "netsuite_source.created_at", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of when the record was created."}, "netsuite_source.currency_id": {"unique_id": "netsuite_source.currency_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "The currency id of the currency used within the record."}, "netsuite_source.entity_id": {"unique_id": "netsuite_source.entity_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entity_id", "block_contents": "The entity id of the entity used for the record."}, "netsuite_source.transaction_id": {"unique_id": "netsuite_source.transaction_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "The transaction id of referenced for the record."}, "netsuite_source.department_id": {"unique_id": "netsuite_source.department_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "The unique identifier of the department used for the record."}, "netsuite_source.subsidiary_id": {"unique_id": "netsuite_source.subsidiary_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "subsidiary_id", "block_contents": "The unique identifier of the subsidiary used for the record."}, "netsuite_source.location_id": {"unique_id": "netsuite_source.location_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "location_id", "block_contents": "The unique identifier of the location used for the record."}, "netsuite_source.class_id": {"unique_id": "netsuite_source.class_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "The unique identifier of the class used for the record."}, "netsuite_source.item_id": {"unique_id": "netsuite_source.item_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "The unique identifier of the item used within the record."}, "netsuite_source.fiscal_calendar_id": {"unique_id": "netsuite_source.fiscal_calendar_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "fiscal_calendar_id", "block_contents": "Reference to the fiscal calendar used for the record."}, "netsuite_source.main_address_id": {"unique_id": "netsuite_source.main_address_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "main_address_id", "block_contents": "Reference to the main address used for the record."}, "netsuite_source.addr1": {"unique_id": "netsuite_source.addr1", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr1", "block_contents": "The associated address 1."}, "netsuite_source.addr2": {"unique_id": "netsuite_source.addr2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr2", "block_contents": "The associated address 2."}, "netsuite_source.addr3": {"unique_id": "netsuite_source.addr3", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr3", "block_contents": "The associated address 3."}, "netsuite_source.addressee": {"unique_id": "netsuite_source.addressee", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addressee", "block_contents": "The individual associated with the address"}, "netsuite_source.full_address": {"unique_id": "netsuite_source.full_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "full_address", "block_contents": "The full address associated."}, "netsuite_source.city": {"unique_id": "netsuite_source.city", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "city", "block_contents": "The associated city."}, "netsuite_source.country": {"unique_id": "netsuite_source.country", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "country", "block_contents": "The associated country."}, "netsuite_source.state": {"unique_id": "netsuite_source.state", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "state", "block_contents": "The associated state."}, "netsuite_source.nkey": {"unique_id": "netsuite_source.nkey", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "nkey", "block_contents": "The associated Netsuite key."}, "netsuite_source.zipcode": {"unique_id": "netsuite_source.zipcode", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "zipcode", "block_contents": "The associated zipcode."}, "netsuite_source.customer_id": {"unique_id": "netsuite_source.customer_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Unique identifier of the customer."}, "netsuite_source.accounting_book_id": {"unique_id": "netsuite_source.accounting_book_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_book_id", "block_contents": "Unique identifier of the accounting book."}, "netsuite_source.account_type_id": {"unique_id": "netsuite_source.account_type_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type_id", "block_contents": "Unique identifier of thea account type."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": [], "seed.netsuite_source_integration_tests.netsuite_vendors_data": [], "seed.netsuite_source_integration_tests.netsuite2_classification_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_source_integration_tests.netsuite2_entities_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_source_integration_tests.netsuite_customers_data": [], "seed.netsuite_source_integration_tests.netsuite_locations_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_data": [], "seed.netsuite_source_integration_tests.netsuite_items_data": [], "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_source_integration_tests.netsuite_classes_data": [], "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_source_integration_tests.netsuite_departments_data": [], "seed.netsuite_source_integration_tests.netsuite2_customer_data": [], "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_department_data": [], "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite_currencies_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_source_integration_tests.netsuite_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_source_integration_tests.netsuite2_job_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_data": [], "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_source_integration_tests.netsuite2_item_data": [], "seed.netsuite_source_integration_tests.netsuite_transactions_data": [], "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["model.netsuite_source.stg_netsuite2__transactions_tmp", "model.netsuite_source.stg_netsuite2__transactions_tmp"], "model.netsuite_source.stg_netsuite2__jobs": ["model.netsuite_source.stg_netsuite2__jobs_tmp", "model.netsuite_source.stg_netsuite2__jobs_tmp"], "model.netsuite_source.stg_netsuite2__vendors": ["model.netsuite_source.stg_netsuite2__vendors_tmp", "model.netsuite_source.stg_netsuite2__vendors_tmp"], "model.netsuite_source.stg_netsuite2__classes": ["model.netsuite_source.stg_netsuite2__classes_tmp", "model.netsuite_source.stg_netsuite2__classes_tmp"], "model.netsuite_source.stg_netsuite2__account_types": ["model.netsuite_source.stg_netsuite2__account_types_tmp", "model.netsuite_source.stg_netsuite2__account_types_tmp"], "model.netsuite_source.stg_netsuite2__entities": ["model.netsuite_source.stg_netsuite2__entities_tmp", "model.netsuite_source.stg_netsuite2__entities_tmp"], "model.netsuite_source.stg_netsuite2__accounting_periods": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"], "model.netsuite_source.stg_netsuite2__customers": ["model.netsuite_source.stg_netsuite2__customers_tmp", "model.netsuite_source.stg_netsuite2__customers_tmp"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"], "model.netsuite_source.stg_netsuite2__accounts": ["model.netsuite_source.stg_netsuite2__accounts_tmp", "model.netsuite_source.stg_netsuite2__accounts_tmp"], "model.netsuite_source.stg_netsuite2__transaction_lines": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"], "model.netsuite_source.stg_netsuite2__subsidiaries": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"], "model.netsuite_source.stg_netsuite2__entity_address": ["model.netsuite_source.stg_netsuite2__entity_address_tmp", "model.netsuite_source.stg_netsuite2__entity_address_tmp"], "model.netsuite_source.stg_netsuite2__location_main_address": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp", "model.netsuite_source.stg_netsuite2__location_main_address_tmp"], "model.netsuite_source.stg_netsuite2__vendor_categories": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"], "model.netsuite_source.stg_netsuite2__departments": ["model.netsuite_source.stg_netsuite2__departments_tmp", "model.netsuite_source.stg_netsuite2__departments_tmp"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"], "model.netsuite_source.stg_netsuite2__accounting_books": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp", "model.netsuite_source.stg_netsuite2__accounting_books_tmp"], "model.netsuite_source.stg_netsuite2__items": ["model.netsuite_source.stg_netsuite2__items_tmp", "model.netsuite_source.stg_netsuite2__items_tmp"], "model.netsuite_source.stg_netsuite2__currencies": ["model.netsuite_source.stg_netsuite2__currencies_tmp", "model.netsuite_source.stg_netsuite2__currencies_tmp"], "model.netsuite_source.stg_netsuite2__locations": ["model.netsuite_source.stg_netsuite2__locations_tmp", "model.netsuite_source.stg_netsuite2__locations_tmp"], "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": ["source.netsuite_source.netsuite2.subsidiary"], "model.netsuite_source.stg_netsuite2__transactions_tmp": ["source.netsuite_source.netsuite2.transaction"], "model.netsuite_source.stg_netsuite2__entity_address_tmp": ["source.netsuite_source.netsuite2.entity_address"], "model.netsuite_source.stg_netsuite2__account_types_tmp": ["source.netsuite_source.netsuite2.account_type"], "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": ["source.netsuite_source.netsuite2.accounting_period"], "model.netsuite_source.stg_netsuite2__jobs_tmp": ["source.netsuite_source.netsuite2.job"], "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": ["source.netsuite_source.netsuite2.transaction_line"], "model.netsuite_source.stg_netsuite2__accounts_tmp": ["source.netsuite_source.netsuite2.account"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["source.netsuite_source.netsuite2.customer"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["source.netsuite_source.netsuite2.entity"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["source.netsuite_source.netsuite2.currency"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["source.netsuite_source.netsuite2.vendor"], "model.netsuite_source.stg_netsuite2__items_tmp": ["source.netsuite_source.netsuite2.item"], "model.netsuite_source.stg_netsuite2__accounting_books_tmp": ["source.netsuite_source.netsuite2.accounting_book"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"], "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": ["source.netsuite_source.netsuite2.vendor_category"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": ["source.netsuite_source.netsuite2.transaction_accounting_line"], "model.netsuite_source.stg_netsuite2__location_main_address_tmp": ["source.netsuite_source.netsuite2.location_main_address"], "model.netsuite_source.stg_netsuite2__locations_tmp": ["source.netsuite_source.netsuite2.location"], "model.netsuite_source.stg_netsuite2__departments_tmp": ["source.netsuite_source.netsuite2.department"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["source.netsuite_source.netsuite2.classification"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"], "model.netsuite_source.stg_netsuite__transactions": ["model.netsuite_source.stg_netsuite__transactions_tmp", "model.netsuite_source.stg_netsuite__transactions_tmp"], "model.netsuite_source.stg_netsuite__customers": ["model.netsuite_source.stg_netsuite__customers_tmp", "model.netsuite_source.stg_netsuite__customers_tmp"], "model.netsuite_source.stg_netsuite__accounting_books": ["model.netsuite_source.stg_netsuite__accounting_books_tmp", "model.netsuite_source.stg_netsuite__accounting_books_tmp"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"], "model.netsuite_source.stg_netsuite__transaction_lines": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp", "model.netsuite_source.stg_netsuite__transaction_lines_tmp"], "model.netsuite_source.stg_netsuite__income_accounts": ["model.netsuite_source.stg_netsuite__income_accounts_tmp", "model.netsuite_source.stg_netsuite__income_accounts_tmp"], "model.netsuite_source.stg_netsuite__expense_accounts": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp", "model.netsuite_source.stg_netsuite__expense_accounts_tmp"], "model.netsuite_source.stg_netsuite__vendors": ["model.netsuite_source.stg_netsuite__vendors_tmp", "model.netsuite_source.stg_netsuite__vendors_tmp"], "model.netsuite_source.stg_netsuite__classes": ["model.netsuite_source.stg_netsuite__classes_tmp", "model.netsuite_source.stg_netsuite__classes_tmp"], "model.netsuite_source.stg_netsuite__subsidiaries": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp", "model.netsuite_source.stg_netsuite__subsidiaries_tmp"], "model.netsuite_source.stg_netsuite__accounts": ["model.netsuite_source.stg_netsuite__accounts_tmp", "model.netsuite_source.stg_netsuite__accounts_tmp"], "model.netsuite_source.stg_netsuite__items": ["model.netsuite_source.stg_netsuite__items_tmp", "model.netsuite_source.stg_netsuite__items_tmp"], "model.netsuite_source.stg_netsuite__locations": ["model.netsuite_source.stg_netsuite__locations_tmp", "model.netsuite_source.stg_netsuite__locations_tmp"], "model.netsuite_source.stg_netsuite__departments": ["model.netsuite_source.stg_netsuite__departments_tmp", "model.netsuite_source.stg_netsuite__departments_tmp"], "model.netsuite_source.stg_netsuite__currencies": ["model.netsuite_source.stg_netsuite__currencies_tmp", "model.netsuite_source.stg_netsuite__currencies_tmp"], "model.netsuite_source.stg_netsuite__vendor_types": ["model.netsuite_source.stg_netsuite__vendor_types_tmp", "model.netsuite_source.stg_netsuite__vendor_types_tmp"], "model.netsuite_source.stg_netsuite__accounting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp", "model.netsuite_source.stg_netsuite__accounting_periods_tmp"], "model.netsuite_source.stg_netsuite__accounting_periods_tmp": ["source.netsuite_source.netsuite.accounting_periods"], "model.netsuite_source.stg_netsuite__accounting_books_tmp": ["source.netsuite_source.netsuite.accounting_books"], "model.netsuite_source.stg_netsuite__customers_tmp": ["source.netsuite_source.netsuite.customers"], "model.netsuite_source.stg_netsuite__transaction_lines_tmp": ["source.netsuite_source.netsuite.transaction_lines"], "model.netsuite_source.stg_netsuite__income_accounts_tmp": ["source.netsuite_source.netsuite.income_accounts"], "model.netsuite_source.stg_netsuite__accounts_tmp": ["source.netsuite_source.netsuite.accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["source.netsuite_source.netsuite.departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["source.netsuite_source.netsuite.currencies"], "model.netsuite_source.stg_netsuite__vendor_types_tmp": ["source.netsuite_source.netsuite.vendor_types"], "model.netsuite_source.stg_netsuite__vendors_tmp": ["source.netsuite_source.netsuite.vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["source.netsuite_source.netsuite.locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["source.netsuite_source.netsuite.items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["source.netsuite_source.netsuite.subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["source.netsuite_source.netsuite.transactions"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": ["source.netsuite_source.netsuite.consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__classes_tmp": ["source.netsuite_source.netsuite.classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["source.netsuite_source.netsuite.expense_accounts"], "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": ["model.netsuite_source.stg_netsuite__accounting_books"], "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": ["model.netsuite_source.stg_netsuite__accounting_books"], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": ["model.netsuite_source.stg_netsuite__accounts"], "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": ["model.netsuite_source.stg_netsuite__accounts"], "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": ["model.netsuite_source.stg_netsuite__classes"], "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": ["model.netsuite_source.stg_netsuite__classes"], "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": ["model.netsuite_source.stg_netsuite__currencies"], "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": ["model.netsuite_source.stg_netsuite__currencies"], "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": ["model.netsuite_source.stg_netsuite__customers"], "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": ["model.netsuite_source.stg_netsuite__customers"], "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": ["model.netsuite_source.stg_netsuite__departments"], "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": ["model.netsuite_source.stg_netsuite__departments"], "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": ["model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": ["model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": ["model.netsuite_source.stg_netsuite__income_accounts"], "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": ["model.netsuite_source.stg_netsuite__income_accounts"], "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": ["model.netsuite_source.stg_netsuite__items"], "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": ["model.netsuite_source.stg_netsuite__items"], "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": ["model.netsuite_source.stg_netsuite__locations"], "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": ["model.netsuite_source.stg_netsuite__locations"], "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": ["model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": ["model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": ["model.netsuite_source.stg_netsuite__transactions"], "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": ["model.netsuite_source.stg_netsuite__transactions"], "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": ["model.netsuite_source.stg_netsuite__vendor_types"], "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": ["model.netsuite_source.stg_netsuite__vendor_types"], "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": ["model.netsuite_source.stg_netsuite__vendors"], "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": ["model.netsuite_source.stg_netsuite__vendors"], "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": ["model.netsuite_source.stg_netsuite2__account_types"], "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": ["model.netsuite_source.stg_netsuite2__account_types"], "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": ["model.netsuite_source.stg_netsuite2__accounting_books"], "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": ["model.netsuite_source.stg_netsuite2__accounting_books"], "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": ["model.netsuite_source.stg_netsuite2__accounting_periods"], "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": ["model.netsuite_source.stg_netsuite2__accounting_periods"], "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": ["model.netsuite_source.stg_netsuite2__accounts"], "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": ["model.netsuite_source.stg_netsuite2__accounts"], "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": ["model.netsuite_source.stg_netsuite2__classes"], "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": ["model.netsuite_source.stg_netsuite2__classes"], "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": ["model.netsuite_source.stg_netsuite2__currencies"], "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": ["model.netsuite_source.stg_netsuite2__currencies"], "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": ["model.netsuite_source.stg_netsuite2__customers"], "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": ["model.netsuite_source.stg_netsuite2__customers"], "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": ["model.netsuite_source.stg_netsuite2__departments"], "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": ["model.netsuite_source.stg_netsuite2__departments"], "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": ["model.netsuite_source.stg_netsuite2__entities"], "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": ["model.netsuite_source.stg_netsuite2__entities"], "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": ["model.netsuite_source.stg_netsuite2__items"], "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": ["model.netsuite_source.stg_netsuite2__items"], "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": ["model.netsuite_source.stg_netsuite2__jobs"], "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": ["model.netsuite_source.stg_netsuite2__jobs"], "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": ["model.netsuite_source.stg_netsuite2__locations"], "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": ["model.netsuite_source.stg_netsuite2__locations"], "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": ["model.netsuite_source.stg_netsuite2__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": ["model.netsuite_source.stg_netsuite2__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": ["model.netsuite_source.stg_netsuite2__transactions"], "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": ["model.netsuite_source.stg_netsuite2__transactions"], "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": ["model.netsuite_source.stg_netsuite2__vendor_categories"], "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": ["model.netsuite_source.stg_netsuite2__vendor_categories"], "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": ["model.netsuite_source.stg_netsuite2__vendors"], "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": ["model.netsuite_source.stg_netsuite2__vendors"], "source.netsuite_source.netsuite2.account_type": [], "source.netsuite_source.netsuite2.accounting_book_subsidiaries": [], "source.netsuite_source.netsuite2.accounting_book": [], "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": [], "source.netsuite_source.netsuite2.accounting_period": [], "source.netsuite_source.netsuite2.account": [], "source.netsuite_source.netsuite2.classification": [], "source.netsuite_source.netsuite2.consolidated_exchange_rate": [], "source.netsuite_source.netsuite2.currency": [], "source.netsuite_source.netsuite2.customer": [], "source.netsuite_source.netsuite2.department": [], "source.netsuite_source.netsuite2.entity": [], "source.netsuite_source.netsuite2.entity_address": [], "source.netsuite_source.netsuite2.item": [], "source.netsuite_source.netsuite2.job": [], "source.netsuite_source.netsuite2.location_main_address": [], "source.netsuite_source.netsuite2.location": [], "source.netsuite_source.netsuite2.subsidiary": [], "source.netsuite_source.netsuite2.transaction_accounting_line": [], "source.netsuite_source.netsuite2.transaction_line": [], "source.netsuite_source.netsuite2.transaction": [], "source.netsuite_source.netsuite2.vendor_category": [], "source.netsuite_source.netsuite2.vendor": [], "source.netsuite_source.netsuite.accounting_books": [], "source.netsuite_source.netsuite.accounting_periods": [], "source.netsuite_source.netsuite.accounts": [], "source.netsuite_source.netsuite.classes": [], "source.netsuite_source.netsuite.consolidated_exchange_rates": [], "source.netsuite_source.netsuite.currencies": [], "source.netsuite_source.netsuite.customers": [], "source.netsuite_source.netsuite.departments": [], "source.netsuite_source.netsuite.expense_accounts": [], "source.netsuite_source.netsuite.income_accounts": [], "source.netsuite_source.netsuite.items": [], "source.netsuite_source.netsuite.locations": [], "source.netsuite_source.netsuite.subsidiaries": [], "source.netsuite_source.netsuite.transaction_lines": [], "source.netsuite_source.netsuite.transactions": [], "source.netsuite_source.netsuite.vendor_types": [], "source.netsuite_source.netsuite.vendors": []}, "child_map": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": [], "seed.netsuite_source_integration_tests.netsuite_vendors_data": [], "seed.netsuite_source_integration_tests.netsuite2_classification_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_source_integration_tests.netsuite2_entities_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_source_integration_tests.netsuite_customers_data": [], "seed.netsuite_source_integration_tests.netsuite_locations_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_data": [], "seed.netsuite_source_integration_tests.netsuite_items_data": [], "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_source_integration_tests.netsuite_classes_data": [], "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_source_integration_tests.netsuite_departments_data": [], "seed.netsuite_source_integration_tests.netsuite2_customer_data": [], "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_department_data": [], "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite_currencies_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_source_integration_tests.netsuite_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_source_integration_tests.netsuite2_job_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_data": [], "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_source_integration_tests.netsuite2_item_data": [], "seed.netsuite_source_integration_tests.netsuite_transactions_data": [], "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4"], "model.netsuite_source.stg_netsuite2__jobs": ["test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c"], "model.netsuite_source.stg_netsuite2__vendors": ["test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d"], "model.netsuite_source.stg_netsuite2__classes": ["test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98"], "model.netsuite_source.stg_netsuite2__account_types": ["test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f"], "model.netsuite_source.stg_netsuite2__entities": ["test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50"], "model.netsuite_source.stg_netsuite2__accounting_periods": ["test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": ["test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348"], "model.netsuite_source.stg_netsuite2__customers": ["test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": ["test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396"], "model.netsuite_source.stg_netsuite2__accounts": ["test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17"], "model.netsuite_source.stg_netsuite2__transaction_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1"], "model.netsuite_source.stg_netsuite2__subsidiaries": ["test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229"], "model.netsuite_source.stg_netsuite2__entity_address": [], "model.netsuite_source.stg_netsuite2__location_main_address": [], "model.netsuite_source.stg_netsuite2__vendor_categories": ["test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6"], "model.netsuite_source.stg_netsuite2__departments": ["test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": ["test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a"], "model.netsuite_source.stg_netsuite2__accounting_books": ["test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230"], "model.netsuite_source.stg_netsuite2__items": ["test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee"], "model.netsuite_source.stg_netsuite2__currencies": ["test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78"], "model.netsuite_source.stg_netsuite2__locations": ["test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149"], "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite_source.stg_netsuite2__transactions_tmp": ["model.netsuite_source.stg_netsuite2__transactions", "model.netsuite_source.stg_netsuite2__transactions"], "model.netsuite_source.stg_netsuite2__entity_address_tmp": ["model.netsuite_source.stg_netsuite2__entity_address", "model.netsuite_source.stg_netsuite2__entity_address"], "model.netsuite_source.stg_netsuite2__account_types_tmp": ["model.netsuite_source.stg_netsuite2__account_types", "model.netsuite_source.stg_netsuite2__account_types"], "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": ["model.netsuite_source.stg_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__accounting_periods"], "model.netsuite_source.stg_netsuite2__jobs_tmp": ["model.netsuite_source.stg_netsuite2__jobs", "model.netsuite_source.stg_netsuite2__jobs"], "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": ["model.netsuite_source.stg_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transaction_lines"], "model.netsuite_source.stg_netsuite2__accounts_tmp": ["model.netsuite_source.stg_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__accounts"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["model.netsuite_source.stg_netsuite2__customers", "model.netsuite_source.stg_netsuite2__customers"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["model.netsuite_source.stg_netsuite2__entities", "model.netsuite_source.stg_netsuite2__entities"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__currencies"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["model.netsuite_source.stg_netsuite2__vendors", "model.netsuite_source.stg_netsuite2__vendors"], "model.netsuite_source.stg_netsuite2__items_tmp": ["model.netsuite_source.stg_netsuite2__items", "model.netsuite_source.stg_netsuite2__items"], "model.netsuite_source.stg_netsuite2__accounting_books_tmp": ["model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__accounting_books"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": ["model.netsuite_source.stg_netsuite2__vendor_categories", "model.netsuite_source.stg_netsuite2__vendor_categories"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "model.netsuite_source.stg_netsuite2__location_main_address_tmp": ["model.netsuite_source.stg_netsuite2__location_main_address", "model.netsuite_source.stg_netsuite2__location_main_address"], "model.netsuite_source.stg_netsuite2__locations_tmp": ["model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__locations"], "model.netsuite_source.stg_netsuite2__departments_tmp": ["model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__departments"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__classes"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__transactions": ["test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79"], "model.netsuite_source.stg_netsuite__customers": ["test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9"], "model.netsuite_source.stg_netsuite__accounting_books": ["test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": ["test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54"], "model.netsuite_source.stg_netsuite__transaction_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c"], "model.netsuite_source.stg_netsuite__income_accounts": ["test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07"], "model.netsuite_source.stg_netsuite__expense_accounts": ["test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff"], "model.netsuite_source.stg_netsuite__vendors": ["test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39"], "model.netsuite_source.stg_netsuite__classes": ["test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b"], "model.netsuite_source.stg_netsuite__subsidiaries": ["test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0"], "model.netsuite_source.stg_netsuite__accounts": ["test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281"], "model.netsuite_source.stg_netsuite__items": ["test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654"], "model.netsuite_source.stg_netsuite__locations": ["test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2"], "model.netsuite_source.stg_netsuite__departments": ["test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1"], "model.netsuite_source.stg_netsuite__currencies": ["test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c"], "model.netsuite_source.stg_netsuite__vendor_types": ["test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69"], "model.netsuite_source.stg_netsuite__accounting_periods": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563"], "model.netsuite_source.stg_netsuite__accounting_periods_tmp": ["model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounting_periods"], "model.netsuite_source.stg_netsuite__accounting_books_tmp": ["model.netsuite_source.stg_netsuite__accounting_books", "model.netsuite_source.stg_netsuite__accounting_books"], "model.netsuite_source.stg_netsuite__customers_tmp": ["model.netsuite_source.stg_netsuite__customers", "model.netsuite_source.stg_netsuite__customers"], "model.netsuite_source.stg_netsuite__transaction_lines_tmp": ["model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transaction_lines"], "model.netsuite_source.stg_netsuite__income_accounts_tmp": ["model.netsuite_source.stg_netsuite__income_accounts", "model.netsuite_source.stg_netsuite__income_accounts"], "model.netsuite_source.stg_netsuite__accounts_tmp": ["model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["model.netsuite_source.stg_netsuite__currencies", "model.netsuite_source.stg_netsuite__currencies"], "model.netsuite_source.stg_netsuite__vendor_types_tmp": ["model.netsuite_source.stg_netsuite__vendor_types", "model.netsuite_source.stg_netsuite__vendor_types"], "model.netsuite_source.stg_netsuite__vendors_tmp": ["model.netsuite_source.stg_netsuite__vendors", "model.netsuite_source.stg_netsuite__vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["model.netsuite_source.stg_netsuite__items", "model.netsuite_source.stg_netsuite__items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__transactions"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__classes_tmp": ["model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["model.netsuite_source.stg_netsuite__expense_accounts", "model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": [], "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": [], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": [], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": [], "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": [], "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": [], "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": [], "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": [], "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": [], "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": [], "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": [], "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": [], "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": [], "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": [], "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": [], "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": [], "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": [], "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": [], "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": [], "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": [], "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": [], "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": [], "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": [], "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": [], "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": [], "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": [], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": [], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": [], "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": [], "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": [], "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": [], "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": [], "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": [], "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": [], "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": [], "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": [], "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": [], "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": [], "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": [], "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": [], "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": [], "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": [], "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": [], "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": [], "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": [], "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": [], "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": [], "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": [], "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": [], "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": [], "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": [], "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": [], "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": [], "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": [], "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": [], "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": [], "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": [], "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": [], "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": [], "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": [], "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": [], "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": [], "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": [], "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": [], "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": [], "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": [], "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": [], "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": [], "source.netsuite_source.netsuite2.account_type": ["model.netsuite_source.stg_netsuite2__account_types_tmp"], "source.netsuite_source.netsuite2.accounting_book_subsidiaries": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"], "source.netsuite_source.netsuite2.accounting_book": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp"], "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"], "source.netsuite_source.netsuite2.accounting_period": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp"], "source.netsuite_source.netsuite2.account": ["model.netsuite_source.stg_netsuite2__accounts_tmp"], "source.netsuite_source.netsuite2.classification": ["model.netsuite_source.stg_netsuite2__classes_tmp"], "source.netsuite_source.netsuite2.consolidated_exchange_rate": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"], "source.netsuite_source.netsuite2.currency": ["model.netsuite_source.stg_netsuite2__currencies_tmp"], "source.netsuite_source.netsuite2.customer": ["model.netsuite_source.stg_netsuite2__customers_tmp"], "source.netsuite_source.netsuite2.department": ["model.netsuite_source.stg_netsuite2__departments_tmp"], "source.netsuite_source.netsuite2.entity": ["model.netsuite_source.stg_netsuite2__entities_tmp"], "source.netsuite_source.netsuite2.entity_address": ["model.netsuite_source.stg_netsuite2__entity_address_tmp"], "source.netsuite_source.netsuite2.item": ["model.netsuite_source.stg_netsuite2__items_tmp"], "source.netsuite_source.netsuite2.job": ["model.netsuite_source.stg_netsuite2__jobs_tmp"], "source.netsuite_source.netsuite2.location_main_address": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp"], "source.netsuite_source.netsuite2.location": ["model.netsuite_source.stg_netsuite2__locations_tmp"], "source.netsuite_source.netsuite2.subsidiary": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp"], "source.netsuite_source.netsuite2.transaction_accounting_line": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"], "source.netsuite_source.netsuite2.transaction_line": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp"], "source.netsuite_source.netsuite2.transaction": ["model.netsuite_source.stg_netsuite2__transactions_tmp"], "source.netsuite_source.netsuite2.vendor_category": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp"], "source.netsuite_source.netsuite2.vendor": ["model.netsuite_source.stg_netsuite2__vendors_tmp"], "source.netsuite_source.netsuite.accounting_books": ["model.netsuite_source.stg_netsuite__accounting_books_tmp"], "source.netsuite_source.netsuite.accounting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp"], "source.netsuite_source.netsuite.accounts": ["model.netsuite_source.stg_netsuite__accounts_tmp"], "source.netsuite_source.netsuite.classes": ["model.netsuite_source.stg_netsuite__classes_tmp"], "source.netsuite_source.netsuite.consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"], "source.netsuite_source.netsuite.currencies": ["model.netsuite_source.stg_netsuite__currencies_tmp"], "source.netsuite_source.netsuite.customers": ["model.netsuite_source.stg_netsuite__customers_tmp"], "source.netsuite_source.netsuite.departments": ["model.netsuite_source.stg_netsuite__departments_tmp"], "source.netsuite_source.netsuite.expense_accounts": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp"], "source.netsuite_source.netsuite.income_accounts": ["model.netsuite_source.stg_netsuite__income_accounts_tmp"], "source.netsuite_source.netsuite.items": ["model.netsuite_source.stg_netsuite__items_tmp"], "source.netsuite_source.netsuite.locations": ["model.netsuite_source.stg_netsuite__locations_tmp"], "source.netsuite_source.netsuite.subsidiaries": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp"], "source.netsuite_source.netsuite.transaction_lines": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp"], "source.netsuite_source.netsuite.transactions": ["model.netsuite_source.stg_netsuite__transactions_tmp"], "source.netsuite_source.netsuite.vendor_types": ["model.netsuite_source.stg_netsuite__vendor_types_tmp"], "source.netsuite_source.netsuite.vendors": ["model.netsuite_source.stg_netsuite__vendors_tmp"]}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/manifest/v7.json", "dbt_version": "1.3.0", "generated_at": "2022-12-19T16:17:41.074775Z", "invocation_id": "4ff11905-9ed7-4385-88b5-d12865e9ff7e", "env": {}, "project_id": "0161153b585f60374e0a66941a656f43", "user_id": "8929baf0-9bc1-477e-9a57-eb8b0db4da62", "send_anonymous_usage_stats": true, "adapter_type": "postgres"}, "nodes": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_currency_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_currency_data.csv", "original_file_path": "seeds/netsuite2_currency_data.csv", "name": "netsuite2_currency_data", "alias": "netsuite2_currency_data", "checksum": {"name": "sha256", "checksum": "860ccbec95ff9c17e8e40db2c32e28ab56f2ef18f6af775bc982fc5494aae23c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.493073, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\""}, "seed.netsuite_source_integration_tests.netsuite_vendors_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_vendors_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_vendors_data.csv", "original_file_path": "seeds/netsuite_vendors_data.csv", "name": "netsuite_vendors_data", "alias": "netsuite_vendors_data", "checksum": {"name": "sha256", "checksum": "f050ea1d5fa346fcefbe9a5792dfbe9f5aabbec17a359ab2e497be7b3e888e2d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.498764, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\""}, "seed.netsuite_source_integration_tests.netsuite2_classification_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_classification_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_classification_data.csv", "original_file_path": "seeds/netsuite2_classification_data.csv", "name": "netsuite2_classification_data", "alias": "netsuite2_classification_data", "checksum": {"name": "sha256", "checksum": "800dc93b65435dd17dbe1f668890a317bce221193a1ca52d6075c5ab8504e29c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.499973, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounting_books_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounting_books_data.csv", "original_file_path": "seeds/netsuite_accounting_books_data.csv", "name": "netsuite_accounting_books_data", "alias": "netsuite_accounting_books_data", "checksum": {"name": "sha256", "checksum": "45b73583ed0a1425f131de59b6a17b997caec17d9b0884947f27008ae81c1684"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.50122, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\""}, "seed.netsuite_source_integration_tests.netsuite2_entities_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_entities_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_entities_data.csv", "original_file_path": "seeds/netsuite2_entities_data.csv", "name": "netsuite2_entities_data", "alias": "netsuite2_entities_data", "checksum": {"name": "sha256", "checksum": "e28458219e88aecec3f237ff9c58941d13c0e40c478fec9e8727fbb3d9d244c8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.502367, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\""}, "seed.netsuite_source_integration_tests.netsuite2_vendor_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_vendor_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_vendor_data.csv", "original_file_path": "seeds/netsuite2_vendor_data.csv", "name": "netsuite2_vendor_data", "alias": "netsuite2_vendor_data", "checksum": {"name": "sha256", "checksum": "f1f8f8762dd6b7192e2273f12ee86f43eb06933a2055da91d37c82f0ddbec0b8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.503521, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\""}, "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_consolidated_exchange_rates_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_consolidated_exchange_rates_data.csv", "original_file_path": "seeds/netsuite_consolidated_exchange_rates_data.csv", "name": "netsuite_consolidated_exchange_rates_data", "alias": "netsuite_consolidated_exchange_rates_data", "checksum": {"name": "sha256", "checksum": "b8719124e41745363f91f996b99812a9e6c98306ef24034c5efb12b64600a496"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.504777, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\""}, "seed.netsuite_source_integration_tests.netsuite_customers_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_customers_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_customers_data.csv", "original_file_path": "seeds/netsuite_customers_data.csv", "name": "netsuite_customers_data", "alias": "netsuite_customers_data", "checksum": {"name": "sha256", "checksum": "e3ce06d6edaeb9f777c340a597d8de7cfb2d3423a20a2421eae4c86264a9c93a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5059168, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\""}, "seed.netsuite_source_integration_tests.netsuite_locations_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_locations_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_locations_data.csv", "original_file_path": "seeds/netsuite_locations_data.csv", "name": "netsuite_locations_data", "alias": "netsuite_locations_data", "checksum": {"name": "sha256", "checksum": "8a71a79adb44cc02707a75ee10a85f03b472324a894ddc32716eeea7d533bc2f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.50705, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\""}, "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_transaction_line_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_transaction_line_data.csv", "original_file_path": "seeds/netsuite2_transaction_line_data.csv", "name": "netsuite2_transaction_line_data", "alias": "netsuite2_transaction_line_data", "checksum": {"name": "sha256", "checksum": "746773ecc92c2e3e1113ebf7d00fd1a33723016cd3f221fca37fa938315ca5b1"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.508178, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\""}, "seed.netsuite_source_integration_tests.netsuite2_account_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_account_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_account_data.csv", "original_file_path": "seeds/netsuite2_account_data.csv", "name": "netsuite2_account_data", "alias": "netsuite2_account_data", "checksum": {"name": "sha256", "checksum": "689909e17df06e2b189107699467b29cda77e8b4ab1d433c644872c481524747"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5096772, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\""}, "seed.netsuite_source_integration_tests.netsuite_items_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_items_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_items_data.csv", "original_file_path": "seeds/netsuite_items_data.csv", "name": "netsuite_items_data", "alias": "netsuite_items_data", "checksum": {"name": "sha256", "checksum": "567fc2b4c8e46962f9297095017fa529544feafed31503e9fc3ed51bf60b866d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.510815, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\""}, "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_subsidiary_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_subsidiary_data.csv", "original_file_path": "seeds/netsuite2_subsidiary_data.csv", "name": "netsuite2_subsidiary_data", "alias": "netsuite2_subsidiary_data", "checksum": {"name": "sha256", "checksum": "ab5bdff19af5d7a5f923820106bd9aa7fc321d3a1b1397ab2ad33f8d1fce3991"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.511945, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\""}, "seed.netsuite_source_integration_tests.netsuite2_account_type_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_account_type_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_account_type_data.csv", "original_file_path": "seeds/netsuite2_account_type_data.csv", "name": "netsuite2_account_type_data", "alias": "netsuite2_account_type_data", "checksum": {"name": "sha256", "checksum": "a25b940f65942b256bca8c5ac0c5d4f420a9b1e2d6330bd1102da3e8fa664c7f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.513092, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_period_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_period_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_data.csv", "name": "netsuite2_accounting_period_data", "alias": "netsuite2_accounting_period_data", "checksum": {"name": "sha256", "checksum": "8434862ad961a3c3e31effc380b84b721212641ca8623789446401e345cf9dba"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.514354, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_period_fiscal_cal_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_period_fiscal_cal_data.csv", "original_file_path": "seeds/netsuite2_accounting_period_fiscal_cal_data.csv", "name": "netsuite2_accounting_period_fiscal_cal_data", "alias": "netsuite2_accounting_period_fiscal_cal_data", "checksum": {"name": "sha256", "checksum": "ff3ab48ac65713c861da7a5542f14db75c64c4ad7ae4efc8acb2241c10b127c7"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5154839, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\""}, "seed.netsuite_source_integration_tests.netsuite_classes_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_classes_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_classes_data.csv", "original_file_path": "seeds/netsuite_classes_data.csv", "name": "netsuite_classes_data", "alias": "netsuite_classes_data", "checksum": {"name": "sha256", "checksum": "18e8a63665925edfacbeaa443c7f6632c4489bd521df77d945ee657d398588e3"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.51662, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\""}, "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_entity_address_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_entity_address_data.csv", "original_file_path": "seeds/netsuite2_entity_address_data.csv", "name": "netsuite2_entity_address_data", "alias": "netsuite2_entity_address_data", "checksum": {"name": "sha256", "checksum": "194e01a215739408a796ec2d819da0bc650c860e052e2cddf6695c3faab3b059"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5177422, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\""}, "seed.netsuite_source_integration_tests.netsuite_departments_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_departments_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_departments_data.csv", "original_file_path": "seeds/netsuite_departments_data.csv", "name": "netsuite_departments_data", "alias": "netsuite_departments_data", "checksum": {"name": "sha256", "checksum": "9060203f11419c602daf8afc578035d29ef612e1e868b12fa22eaf7b37942607"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.518992, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\""}, "seed.netsuite_source_integration_tests.netsuite2_customer_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_customer_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_customer_data.csv", "original_file_path": "seeds/netsuite2_customer_data.csv", "name": "netsuite2_customer_data", "alias": "netsuite2_customer_data", "checksum": {"name": "sha256", "checksum": "5500a2147bb74338ce1aa8bc059d0f3cae74cdfcf4d0d68b49121540b5ccb573"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.520121, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\""}, "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_tran_acct_line_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_tran_acct_line_data.csv", "original_file_path": "seeds/netsuite2_tran_acct_line_data.csv", "name": "netsuite2_tran_acct_line_data", "alias": "netsuite2_tran_acct_line_data", "checksum": {"name": "sha256", "checksum": "c6e72ec64e0179be9c3f3fb6435a828570cd1cb9ba2092ce78b6a4900bc02ddb"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5212522, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\""}, "seed.netsuite_source_integration_tests.netsuite2_department_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_department_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_department_data.csv", "original_file_path": "seeds/netsuite2_department_data.csv", "name": "netsuite2_department_data", "alias": "netsuite2_department_data", "checksum": {"name": "sha256", "checksum": "6570dc2a4efbac97f87551588b34558d6c5c5b8e071b3cfea59bc9e13a0b7b4a"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5224981, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\""}, "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_expense_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_expense_accounts_data.csv", "original_file_path": "seeds/netsuite_expense_accounts_data.csv", "name": "netsuite_expense_accounts_data", "alias": "netsuite_expense_accounts_data", "checksum": {"name": "sha256", "checksum": "983ef804359afb2c0f7db8c3bb32d5eecdec8c0d9fbf502360944877dc212f9c"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.523631, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite_currencies_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_currencies_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_currencies_data.csv", "original_file_path": "seeds/netsuite_currencies_data.csv", "name": "netsuite_currencies_data", "alias": "netsuite_currencies_data", "checksum": {"name": "sha256", "checksum": "f98ba1751b715296956912fc4c2b43f58875c56740e829c045aefe1172cb2232"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5247612, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_book_sub_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_book_sub_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_sub_data.csv", "name": "netsuite2_accounting_book_sub_data", "alias": "netsuite2_accounting_book_sub_data", "checksum": {"name": "sha256", "checksum": "e95506b5ada820d0a9a79e7759d749a1512beaa8922c3d6e78c105f9029f7992"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.52588, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounts_data.csv", "original_file_path": "seeds/netsuite_accounts_data.csv", "name": "netsuite_accounts_data", "alias": "netsuite_accounts_data", "checksum": {"name": "sha256", "checksum": "a3d24c6bf7438f0bf6e0a725565ea0bb000c6fa01b7ffbdfb1b70689f5ad515b"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5271199, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_vendor_category_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_vendor_category_data.csv", "original_file_path": "seeds/netsuite2_vendor_category_data.csv", "name": "netsuite2_vendor_category_data", "alias": "netsuite2_vendor_category_data", "checksum": {"name": "sha256", "checksum": "498453adb748d03d07147625b2ef67966f7200523eef6d824ce8787212159bf8"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.528252, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\""}, "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_accounting_periods_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_accounting_periods_data.csv", "original_file_path": "seeds/netsuite_accounting_periods_data.csv", "name": "netsuite_accounting_periods_data", "alias": "netsuite_accounting_periods_data", "checksum": {"name": "sha256", "checksum": "673c2f4c76e4cb8bbccecc7e30c0056163d39f53174013f0460a2e4e5efe6e33"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5293891, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\""}, "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_subsidiaries_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_subsidiaries_data.csv", "original_file_path": "seeds/netsuite_subsidiaries_data.csv", "name": "netsuite_subsidiaries_data", "alias": "netsuite_subsidiaries_data", "checksum": {"name": "sha256", "checksum": "4dd2e8b192c4c052a847d6791b5a32da6968a3234d48b85a37ae20f7ee9445de"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.530601, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\""}, "seed.netsuite_source_integration_tests.netsuite2_job_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_job_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_job_data.csv", "original_file_path": "seeds/netsuite2_job_data.csv", "name": "netsuite2_job_data", "alias": "netsuite2_job_data", "checksum": {"name": "sha256", "checksum": "5fa5024df2ff944188a0ada73be30727b1b1552f3a890b9bd244264d2188fd68"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.531905, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\""}, "seed.netsuite_source_integration_tests.netsuite2_transaction_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_transaction_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_transaction_data.csv", "original_file_path": "seeds/netsuite2_transaction_data.csv", "name": "netsuite2_transaction_data", "alias": "netsuite2_transaction_data", "checksum": {"name": "sha256", "checksum": "16b52e72a514adb263e4e26594326996ab0c1089e576155a4f429975b1d54db0"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.5330591, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\""}, "seed.netsuite_source_integration_tests.netsuite2_location_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_location_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_location_data.csv", "original_file_path": "seeds/netsuite2_location_data.csv", "name": "netsuite2_location_data", "alias": "netsuite2_location_data", "checksum": {"name": "sha256", "checksum": "a3ce64b239774b83f9226b8e1f8504147dd5f890a86ab80fda41c0376a6e2d19"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.534212, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\""}, "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_income_accounts_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_income_accounts_data.csv", "original_file_path": "seeds/netsuite_income_accounts_data.csv", "name": "netsuite_income_accounts_data", "alias": "netsuite_income_accounts_data", "checksum": {"name": "sha256", "checksum": "53a81321736b4a42663e253050539eb48b0d179847e23f161927d29c4cbf1367"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.535365, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\""}, "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_consolidated_exchange_rate_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_consolidated_exchange_rate_data.csv", "original_file_path": "seeds/netsuite2_consolidated_exchange_rate_data.csv", "name": "netsuite2_consolidated_exchange_rate_data", "alias": "netsuite2_consolidated_exchange_rate_data", "checksum": {"name": "sha256", "checksum": "d609008a0522dd0e4e60f8967234bd4ec6c6b5b4fcc8d97a7167869d27ab24ef"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.536618, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\""}, "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_accounting_book_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_accounting_book_data.csv", "original_file_path": "seeds/netsuite2_accounting_book_data.csv", "name": "netsuite2_accounting_book_data", "alias": "netsuite2_accounting_book_data", "checksum": {"name": "sha256", "checksum": "e5762b59dceb08e4a5170f2ff5413591cfca97f2a8a9a5080bf96860cf276566"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.537743, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\""}, "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_location_main_address_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_location_main_address_data.csv", "original_file_path": "seeds/netsuite2_location_main_address_data.csv", "name": "netsuite2_location_main_address_data", "alias": "netsuite2_location_main_address_data", "checksum": {"name": "sha256", "checksum": "605372cb4ea25cff3ec9f9c80374d24c71d6848ff3dbda939928851568a7311d"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.538862, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\""}, "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_vendor_types_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_vendor_types_data.csv", "original_file_path": "seeds/netsuite_vendor_types_data.csv", "name": "netsuite_vendor_types_data", "alias": "netsuite_vendor_types_data", "checksum": {"name": "sha256", "checksum": "2111fb5a226e9e73c187a1a1a13caa0c2d3b54bb2eedfe3287f636c049c72b64"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.540101, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\""}, "seed.netsuite_source_integration_tests.netsuite2_item_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite2_item_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite2_item_data.csv", "original_file_path": "seeds/netsuite2_item_data.csv", "name": "netsuite2_item_data", "alias": "netsuite2_item_data", "checksum": {"name": "sha256", "checksum": "73809b7847e14ec59fa08705c6ba1ee6be142717f9bcbe2dde9eeb5b1c14a65f"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.54124, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\""}, "seed.netsuite_source_integration_tests.netsuite_transactions_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_transactions_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_transactions_data.csv", "original_file_path": "seeds/netsuite_transactions_data.csv", "name": "netsuite_transactions_data", "alias": "netsuite_transactions_data", "checksum": {"name": "sha256", "checksum": "c1d88d96de5d5e6ed310a6b008df7390a2aaf7b0d857668e0dfed259f0c704ed"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.542376, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\""}, "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": {"compiled": true, "resource_type": "seed", "depends_on": {"macros": [], "nodes": []}, "config": {"enabled": true, "alias": null, "schema": null, "database": null, "tags": [], "meta": {}, "materialized": "seed", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {"ending": "timestamp", "due_date": "timestamp"}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "quote_columns": true, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests", "fqn": ["netsuite_source_integration_tests", "netsuite_transaction_lines_data"], "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data", "raw_code": "", "language": "sql", "package_name": "netsuite_source_integration_tests", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests", "path": "netsuite_transaction_lines_data.csv", "original_file_path": "seeds/netsuite_transaction_lines_data.csv", "name": "netsuite_transaction_lines_data", "alias": "netsuite_transaction_lines_data", "checksum": {"name": "sha256", "checksum": "6786bdf4b6e00d6243008c46d0bb69a21158ff27265690503aaa9d8b6faa01d2"}, "tags": [], "refs": [], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": null, "build_path": null, "deferred": false, "unrendered_config": {"quote_columns": "{{ true if target.type in ('redshift','postgres') else false }}", "column_types": {"ending": "timestamp", "due_date": "timestamp"}}, "created_at": 1671466639.543494, "compiled_code": "", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\""}, "model.netsuite_source.stg_netsuite2__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_transactions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions_tmp", "model.netsuite_source.stg_netsuite2__transactions_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transactions"], "unique_id": "model.netsuite_source.stg_netsuite2__transactions", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transactions_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transactions_tmp')),\n staging_columns=get_netsuite2_transactions_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_id,\n transactionnumber as transaction_number,\n type as transaction_type,\n memo,\n trandate as transaction_date,\n status,\n createddate as created_at,\n duedate as due_date_at,\n closedate as closed_at,\n currency as currency_id,\n entity as entity_id,\n postingperiod as accounting_period_id,\n posting = 'T' as is_posting,\n intercoadj = 'T' as is_intercompany_adjustment,\n isreversal = 'T' as is_reversal\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transactions_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transactions.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transactions.sql", "name": "stg_netsuite2__transactions", "alias": "stg_netsuite2__transactions", "checksum": {"name": "sha256", "checksum": "6cfa8b003b02cfe90d29c76cb3690de25444fb558c3735c7b2dc4a89fb005251"}, "tags": [], "refs": [["stg_netsuite2__transactions_tmp"], ["stg_netsuite2__transactions_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_number": {"name": "transaction_number", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_at": {"name": "created_at", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the transaction is a posting event.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany_adjustment": {"name": "is_intercompany_adjustment", "description": "Boolean indicating if the transaction is an intercompany adjustment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_reversal": {"name": "is_reversal", "description": "Boolean indicating if the transaction is a reversal entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4608881, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n transactionnumber\n \n as \n \n transactionnumber\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n trandate\n \n as \n \n trandate\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n createddate\n \n as \n \n createddate\n \n, \n \n \n duedate\n \n as \n \n duedate\n \n, \n \n \n closedate\n \n as \n \n closedate\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n entity\n \n as \n \n entity\n \n, \n \n \n postingperiod\n \n as \n \n postingperiod\n \n, \n \n \n posting\n \n as \n \n posting\n \n, \n cast(null as TEXT) as \n \n intercoadj\n \n , \n \n \n isreversal\n \n as \n \n isreversal\n \n, \n cast(null as boolean) as \n \n _fivetran_deleted\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_id,\n transactionnumber as transaction_number,\n type as transaction_type,\n memo,\n trandate as transaction_date,\n status,\n createddate as created_at,\n duedate as due_date_at,\n closedate as closed_at,\n currency as currency_id,\n entity as entity_id,\n postingperiod as accounting_period_id,\n posting = 'T' as is_posting,\n intercoadj = 'T' as is_intercompany_adjustment,\n isreversal = 'T' as is_reversal\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\""}, "model.netsuite_source.stg_netsuite2__jobs": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_job_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs_tmp", "model.netsuite_source.stg_netsuite2__jobs_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__jobs"], "unique_id": "model.netsuite_source.stg_netsuite2__jobs", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__jobs_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__jobs_tmp')),\n staging_columns=get_job_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n id as job_id,\n externalid as job_external_id,\n customer as customer_id,\n entityid as entity_id,\n defaultbillingaddress as billing_address_id,\n defaultshippingaddress as shipping_address_id,\n parent as parent_id\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__jobs.sql", "original_file_path": "models/netsuite2/stg_netsuite2__jobs.sql", "name": "stg_netsuite2__jobs", "alias": "stg_netsuite2__jobs", "checksum": {"name": "sha256", "checksum": "ad872a5592725850b2d219ce6051a429a48a1a0850bec9681dabc65b0b2f7cc9"}, "tags": [], "refs": [["stg_netsuite2__jobs_tmp"], ["stg_netsuite2__jobs_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all jobs.", "columns": {"job_id": {"name": "job_id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_external_id": {"name": "job_external_id", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "Reference the the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "billing_address_id": {"name": "billing_address_id", "description": "Default billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "shipping_address_id": {"name": "shipping_address_id", "description": "Default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__jobs.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.448268, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountnumber\n \n as \n \n accountnumber\n \n, \n \n \n actualtime\n \n as \n \n actualtime\n \n, \n \n \n allowallresourcesfortasks\n \n as \n \n allowallresourcesfortasks\n \n, \n \n \n allowexpenses\n \n as \n \n allowexpenses\n \n, \n \n \n allowtime\n \n as \n \n allowtime\n \n, \n \n \n alternatecontact\n \n as \n \n alternatecontact\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n billingschedule\n \n as \n \n billingschedule\n \n, \n \n \n calculatedenddate\n \n as \n \n calculatedenddate\n \n, \n \n \n calculatedenddatebaseline\n \n as \n \n calculatedenddatebaseline\n \n, \n \n \n category\n \n as \n \n category\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n contactlist\n \n as \n \n contactlist\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n currencyprecision\n \n as \n \n currencyprecision\n \n, \n \n \n custentity1\n \n as \n \n custentity1\n \n, \n \n \n custentity4\n \n as \n \n custentity4\n \n, \n \n \n custentity5\n \n as \n \n custentity5\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n enddate\n \n as \n \n enddate\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitystatus\n \n as \n \n entitystatus\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n estimatedcost\n \n as \n \n estimatedcost\n \n, \n \n \n estimatedgrossprofit\n \n as \n \n estimatedgrossprofit\n \n, \n \n \n estimatedgrossprofitpercent\n \n as \n \n estimatedgrossprofitpercent\n \n, \n \n \n estimatedlaborcost\n \n as \n \n estimatedlaborcost\n \n, \n \n \n estimatedlaborcostbaseline\n \n as \n \n estimatedlaborcostbaseline\n \n, \n \n \n estimatedlaborrevenue\n \n as \n \n estimatedlaborrevenue\n \n, \n \n \n estimatedrevenue\n \n as \n \n estimatedrevenue\n \n, \n \n \n estimatedtime\n \n as \n \n estimatedtime\n \n, \n \n \n estimatedtimeoverride\n \n as \n \n estimatedtimeoverride\n \n, \n \n \n estimatedtimeoverridebaseline\n \n as \n \n estimatedtimeoverridebaseline\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n files\n \n as \n \n files\n \n, \n \n \n forecastchargerunondemand\n \n as \n \n forecastchargerunondemand\n \n, \n \n \n fxrate\n \n as \n \n fxrate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includecrmtasksintotals\n \n as \n \n includecrmtasksintotals\n \n, \n \n \n isexempttime\n \n as \n \n isexempttime\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isproductivetime\n \n as \n \n isproductivetime\n \n, \n \n \n isutilizedtime\n \n as \n \n isutilizedtime\n \n, \n \n \n jobbillingtype\n \n as \n \n jobbillingtype\n \n, \n \n \n jobitem\n \n as \n \n jobitem\n \n, \n \n \n jobprice\n \n as \n \n jobprice\n \n, \n \n \n jobtype\n \n as \n \n jobtype\n \n, \n \n \n lastbaselinedate\n \n as \n \n lastbaselinedate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n limittimetoassignees\n \n as \n \n limittimetoassignees\n \n, \n \n \n materializetime\n \n as \n \n materializetime\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n percentcomplete\n \n as \n \n percentcomplete\n \n, \n \n \n percenttimecomplete\n \n as \n \n percenttimecomplete\n \n, \n \n \n primarycontact\n \n as \n \n primarycontact\n \n, \n \n \n projectedenddate\n \n as \n \n projectedenddate\n \n, \n \n \n projectedenddatebaseline\n \n as \n \n projectedenddatebaseline\n \n, \n \n \n projectmanager\n \n as \n \n projectmanager\n \n, \n \n \n startdate\n \n as \n \n startdate\n \n, \n \n \n startdatebaseline\n \n as \n \n startdatebaseline\n \n, \n \n \n timeapproval\n \n as \n \n timeapproval\n \n, \n \n \n timeremaining\n \n as \n \n timeremaining\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n id as job_id,\n externalid as job_external_id,\n customer as customer_id,\n entityid as entity_id,\n defaultbillingaddress as billing_address_id,\n defaultshippingaddress as shipping_address_id,\n parent as parent_id\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\""}, "model.netsuite_source.stg_netsuite2__vendors": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_vendors_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors_tmp", "model.netsuite_source.stg_netsuite2__vendors_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendors"], "unique_id": "model.netsuite_source.stg_netsuite2__vendors", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__vendors_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__vendors_tmp')),\n staging_columns=get_netsuite2_vendors_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as vendor_id,\n companyname as company_name,\n datecreated as create_date_at,\n category as vendor_category_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__vendors.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendors.sql", "name": "stg_netsuite2__vendors", "alias": "stg_netsuite2__vendors", "checksum": {"name": "sha256", "checksum": "f4b5f8a87be234ed979c5f09110de8a2d32b791a6cc35fad0034b80493c6c4bb"}, "tags": [], "refs": [["stg_netsuite2__vendors_tmp"], ["stg_netsuite2__vendors_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all vendor information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendors.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4624372, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountnumber\n \n as \n \n accountnumber\n \n, \n \n \n altemail\n \n as \n \n altemail\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n altphone\n \n as \n \n altphone\n \n, \n \n \n balance\n \n as \n \n balance\n \n, \n \n \n balanceprimary\n \n as \n \n balanceprimary\n \n, \n cast(null as INT) as \n \n billingclass\n \n , \n \n \n category\n \n as \n \n category\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n contactlist\n \n as \n \n contactlist\n \n, \n \n \n creditlimit\n \n as \n \n creditlimit\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n defaultbankaccount\n \n as \n \n defaultbankaccount\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n defaultvendorpaymentaccount\n \n as \n \n defaultvendorpaymentaccount\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n emailpreference\n \n as \n \n emailpreference\n \n, \n \n \n emailtransactions\n \n as \n \n emailtransactions\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n expenseaccount\n \n as \n \n expenseaccount\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n faxtransactions\n \n as \n \n faxtransactions\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n giveaccess\n \n as \n \n giveaccess\n \n, \n \n \n homephone\n \n as \n \n homephone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n incoterm\n \n as \n \n incoterm\n \n, \n cast(null as TEXT) as \n \n isautogeneratedrepresentingentity\n \n , \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isjobresourcevend\n \n as \n \n isjobresourcevend\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n laborcost\n \n as \n \n laborcost\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n legalname\n \n as \n \n legalname\n \n, \n \n \n middlename\n \n as \n \n middlename\n \n, \n \n \n mobilephone\n \n as \n \n mobilephone\n \n, \n \n \n payablesaccount\n \n as \n \n payablesaccount\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n printoncheckas\n \n as \n \n printoncheckas\n \n, \n \n \n printtransactions\n \n as \n \n printtransactions\n \n, \n \n \n purchaseorderamount\n \n as \n \n purchaseorderamount\n \n, \n \n \n purchaseorderquantity\n \n as \n \n purchaseorderquantity\n \n, \n \n \n purchaseorderquantitydiff\n \n as \n \n purchaseorderquantitydiff\n \n, \n \n \n receiptamount\n \n as \n \n receiptamount\n \n, \n \n \n receiptquantity\n \n as \n \n receiptquantity\n \n, \n \n \n receiptquantitydiff\n \n as \n \n receiptquantitydiff\n \n, \n cast(null as INT) as \n \n representingsubsidiary\n \n , \n \n \n rolesforsearch\n \n as \n \n rolesforsearch\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n subsidiaryedition\n \n as \n \n subsidiaryedition\n \n, \n \n \n terms\n \n as \n \n terms\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n unbilledorders\n \n as \n \n unbilledorders\n \n, \n \n \n unbilledordersprimary\n \n as \n \n unbilledordersprimary\n \n, \n \n \n url\n \n as \n \n url\n \n, \n \n \n workcalendar\n \n as \n \n workcalendar\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as vendor_id,\n companyname as company_name,\n datecreated as create_date_at,\n category as vendor_category_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\""}, "model.netsuite_source.stg_netsuite2__classes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_classes_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__classes_tmp", "model.netsuite_source.stg_netsuite2__classes_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__classes"], "unique_id": "model.netsuite_source.stg_netsuite2__classes", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__classes_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__classes_tmp')),\n staging_columns=get_netsuite2_classes_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as class_id,\n externalid as class_external_id,\n name,\n fullname as full_name,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('classes_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__classes.sql", "original_file_path": "models/netsuite2/stg_netsuite2__classes.sql", "name": "stg_netsuite2__classes", "alias": "stg_netsuite2__classes", "checksum": {"name": "sha256", "checksum": "55d1438c5add45a09f7a06b5edb622b71d7b1fb040fdf473c3db51261844d4a1"}, "tags": [], "refs": [["stg_netsuite2__classes_tmp"], ["stg_netsuite2__classes_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all classes set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_external_id": {"name": "class_external_id", "description": "Reference to the external class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the class is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__classes.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.434494, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as class_id,\n externalid as class_external_id,\n name,\n fullname as full_name,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\""}, "model.netsuite_source.stg_netsuite2__account_types": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounttype_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types_tmp", "model.netsuite_source.stg_netsuite2__account_types_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__account_types"], "unique_id": "model.netsuite_source.stg_netsuite2__account_types", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__account_types_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__account_types_tmp')),\n staging_columns=get_accounttype_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n id as account_type_id,\n balancesheet = 'T' as is_balancesheet,\n {%- if target.type == 'bigquery' -%}\n `left` \n {%- elif target.type == 'snowflake' -%}\n \"LEFT\"\n {%- elif target.type in ('redshift', 'postgres') -%}\n \"left\" \n {%- else -%}\n left\n {%- endif -%} = 'T' as is_leftside,\n longname as type_name\n\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__account_types.sql", "original_file_path": "models/netsuite2/stg_netsuite2__account_types.sql", "name": "stg_netsuite2__account_types", "alias": "stg_netsuite2__account_types", "checksum": {"name": "sha256", "checksum": "899ddfe641e319f7830072bbb040247692af2e25cfd465b838d27b46746b0106"}, "tags": [], "refs": [["stg_netsuite2__account_types_tmp"], ["stg_netsuite2__account_types_tmp"]], "sources": [], "metrics": [], "description": "A table containing the various account types within Netsuite.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Boolean indicating if the account type is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Boolean indicating if the account type is leftside.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__account_types.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.423424, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n balancesheet\n \n as \n \n balancesheet\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n defaultcashflowratetype\n \n as \n \n defaultcashflowratetype\n \n, \n \n \n defaultgeneralratetype\n \n as \n \n defaultgeneralratetype\n \n, \n \n \n eliminationalgo\n \n as \n \n eliminationalgo\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includeinrevaldefault\n \n as \n \n includeinrevaldefault\n \n, \n \n \n internalid\n \n as \n \n internalid\n \n, \n \n \n \n \n \"left\"\n \n \n \n as \n \n \n \n \"left\"\n \n \n \n, \n \n \n longname\n \n as \n \n longname\n \n, \n \n \n seqnum\n \n as \n \n seqnum\n \n, \n \n \n usercanchangerevaloption\n \n as \n \n usercanchangerevaloption\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n id as account_type_id,\n balancesheet = 'T' as is_balancesheet,\"left\"= 'T' as is_leftside,\n longname as type_name\n\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\""}, "model.netsuite_source.stg_netsuite2__entities": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_entity_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entities_tmp", "model.netsuite_source.stg_netsuite2__entities_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entities"], "unique_id": "model.netsuite_source.stg_netsuite2__entities", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__entities_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__entities_tmp')),\n staging_columns=get_entity_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as entity_id,\n parent as parent_id,\n entitytitle as entity_name,\n type as entity_type,\n isperson = 'T' as is_person,\n contact as contact_id,\n customer as customer_id,\n employee as employee_id,\n project as job_id,\n vendor as vendor_id\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__entities.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entities.sql", "name": "stg_netsuite2__entities", "alias": "stg_netsuite2__entities", "checksum": {"name": "sha256", "checksum": "96c2b4dc091545f8b992e7fd62354e3df9fcf7bfe2756a44bad286e691454492"}, "tags": [], "refs": [["stg_netsuite2__entities_tmp"], ["stg_netsuite2__entities_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all entities in Netsuite.", "columns": {"entity_id": {"name": "entity_id", "description": "Th \"The entity id of the entity used for the record.\"e unique identifier of the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact_id": {"name": "contact_id", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_id": {"name": "customer_id", "description": "The \"Unique identifier of the customer.\"unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee_id": {"name": "employee_id", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_name": {"name": "entity_name", "description": "The entity name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating whether the entity is a person.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "job_id": {"name": "job_id", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_type": {"name": "entity_type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_id": {"name": "vendor_id", "description": "Th \"The unique identifier of the vendor.\"e unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entities.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4424498, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n altemail\n \n as \n \n altemail\n \n, \n \n \n altname\n \n as \n \n altname\n \n, \n \n \n altphone\n \n as \n \n altphone\n \n, \n \n \n comments\n \n as \n \n comments\n \n, \n \n \n contact\n \n as \n \n contact\n \n, \n \n \n customer\n \n as \n \n customer\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n datecreated\n \n as \n \n datecreated\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n employee\n \n as \n \n employee\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n entitynumber\n \n as \n \n entitynumber\n \n, \n \n \n entitytitle\n \n as \n \n entitytitle\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fax\n \n as \n \n fax\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n genericresource\n \n as \n \n genericresource\n \n, \n \n \n homephone\n \n as \n \n homephone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n laborcost\n \n as \n \n laborcost\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n middlename\n \n as \n \n middlename\n \n, \n \n \n mobilephone\n \n as \n \n mobilephone\n \n, \n \n \n othername\n \n as \n \n othername\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n partner\n \n as \n \n partner\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n project\n \n as \n \n project\n \n, \n \n \n projecttemplate\n \n as \n \n projecttemplate\n \n, \n \n \n salutation\n \n as \n \n salutation\n \n, \n \n \n title\n \n as \n \n title\n \n, \n \n \n toplevelparent\n \n as \n \n toplevelparent\n \n, \n \n \n type\n \n as \n \n type\n \n, \n \n \n vendor\n \n as \n \n vendor\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as entity_id,\n parent as parent_id,\n entitytitle as entity_name,\n type as entity_type,\n isperson = 'T' as is_person,\n contact as contact_id,\n customer as customer_id,\n employee as employee_id,\n project as job_id,\n vendor as vendor_id\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\""}, "model.netsuite_source.stg_netsuite2__accounting_periods": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounting_periods_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_periods"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_periods_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_periods_tmp')),\n staging_columns=get_netsuite2_accounting_periods_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_period_id,\n parent as parent_id, \n periodname as name,\n startdate as starting_at,\n enddate as ending_at,\n closedondate as closed_at,\n isquarter = 'T' as is_quarter,\n isyear = 'T' as is_year,\n isadjust = 'T' as is_adjustment,\n isposting = 'T' as is_posting,\n closed = 'T' as is_closed,\n alllocked = 'T' as is_all_locked,\n arlocked = 'T' as is_ar_locked,\n aplocked = 'T' as is_ap_locked\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_periods.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_periods.sql", "name": "stg_netsuite2__accounting_periods", "alias": "stg_netsuite2__accounting_periods", "checksum": {"name": "sha256", "checksum": "8007d75811cab3d6e1a2041de1c45e56095ba2e376c83d96bdeb8909527b4f7d"}, "tags": [], "refs": [["stg_netsuite2__accounting_periods_tmp"], ["stg_netsuite2__accounting_periods_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed_at": {"name": "closed_at", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_quarter": {"name": "is_quarter", "description": "Boolean indicating if the accounting period is the initial quarter.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_year": {"name": "is_year", "description": "Boolean indicating if the accounting period is the initial period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Boolean indicating if the accounting period is an adjustment.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the accounting period is posting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_all_locked": {"name": "is_all_locked", "description": "Boolean indicating if all the accounting periods are locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_ar_locked": {"name": "is_ar_locked", "description": "Boolean indicating if the ar accounting period is locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_ap_locked": {"name": "is_ap_locked", "description": "Boolean indicating if the ap accounting period is locked.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_periods.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4299781, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods_tmp\"\n\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n alllocked\n \n as \n \n alllocked\n \n, \n \n \n allownonglchanges\n \n as \n \n allownonglchanges\n \n, \n \n \n aplocked\n \n as \n \n aplocked\n \n, \n \n \n arlocked\n \n as \n \n arlocked\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n \n \n closedondate\n \n as \n \n closedondate\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n enddate\n \n as \n \n enddate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isadjust\n \n as \n \n isadjust\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n isposting\n \n as \n \n isposting\n \n, \n \n \n isquarter\n \n as \n \n isquarter\n \n, \n \n \n isyear\n \n as \n \n isyear\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n periodname\n \n as \n \n periodname\n \n, \n \n \n startdate\n \n as \n \n startdate\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_period_id,\n parent as parent_id, \n periodname as name,\n startdate as starting_at,\n enddate as ending_at,\n closedondate as closed_at,\n isquarter = 'T' as is_quarter,\n isyear = 'T' as is_year,\n isadjust = 'T' as is_adjustment,\n isposting = 'T' as is_posting,\n closed = 'T' as is_closed,\n alllocked = 'T' as is_all_locked,\n arlocked = 'T' as is_ar_locked,\n aplocked = 'T' as is_ap_locked\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\""}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accountingperiodfiscalcalendars_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_period_fiscal_cal"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_period_fiscal_cal_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_period_fiscal_cal_tmp')),\n staging_columns=get_accountingperiodfiscalcalendars_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingperiod as accounting_period_id,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "name": "stg_netsuite2__accounting_period_fiscal_cal", "alias": "stg_netsuite2__accounting_period_fiscal_cal", "checksum": {"name": "sha256", "checksum": "2678f0fb6ff02c4a845196aa5ca3538a4a526d711e6fd3a36bda1bd96facb37d"}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal_tmp"], ["stg_netsuite2__accounting_period_fiscal_cal_tmp"]], "sources": [], "metrics": [], "description": "A table containing the accounting fiscal calendar periods.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_period_fiscal_cal.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.427566, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountingperiod\n \n as \n \n accountingperiod\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n fiscalcalendar\n \n as \n \n fiscalcalendar\n \n, \n \n \n parent\n \n as \n \n parent\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingperiod as accounting_period_id,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\""}, "model.netsuite_source.stg_netsuite2__customers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_customers_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__customers_tmp", "model.netsuite_source.stg_netsuite2__customers_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__customers"], "unique_id": "model.netsuite_source.stg_netsuite2__customers", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__customers_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__customers_tmp')),\n staging_columns=get_netsuite2_customers_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as customer_id,\n entityid as entity_id,\n externalid as customer_external_id,\n parent as parent_id,\n isperson = 'T' as is_person,\n companyname as company_name,\n firstname as first_name,\n lastname as last_name,\n email as email_address,\n phone as phone_number,\n defaultbillingaddress as default_billing_address_id,\n defaultshippingaddress as default_shipping_address_id,\n receivablesaccount as receivables_account_id,\n currency as currency_id,\n firstorderdate as date_first_order_at\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('customers_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__customers.sql", "original_file_path": "models/netsuite2/stg_netsuite2__customers.sql", "name": "stg_netsuite2__customers", "alias": "stg_netsuite2__customers", "checksum": {"name": "sha256", "checksum": "d0d06f971eb7ccff2cbba7e2d5b137177f34095ea8781804fbea74025b14189f"}, "tags": [], "refs": [["stg_netsuite2__customers_tmp"], ["stg_netsuite2__customers_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_person": {"name": "is_person", "description": "Boolean indicating if the customer is an individual person.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "first_name": {"name": "first_name", "description": "First name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "last_name": {"name": "last_name", "description": "Last name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Customers email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone_number": {"name": "phone_number", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_billing_address_id": {"name": "default_billing_address_id", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "default_shipping_address_id": {"name": "default_shipping_address_id", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivables_account_id": {"name": "receivables_account_id", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__customers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.439133, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n entityid\n \n as \n \n entityid\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n isperson\n \n as \n \n isperson\n \n, \n \n \n companyname\n \n as \n \n companyname\n \n, \n \n \n firstname\n \n as \n \n firstname\n \n, \n \n \n lastname\n \n as \n \n lastname\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n phone\n \n as \n \n phone\n \n, \n \n \n defaultbillingaddress\n \n as \n \n defaultbillingaddress\n \n, \n \n \n defaultshippingaddress\n \n as \n \n defaultshippingaddress\n \n, \n \n \n receivablesaccount\n \n as \n \n receivablesaccount\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n firstorderdate\n \n as \n \n firstorderdate\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as customer_id,\n entityid as entity_id,\n externalid as customer_external_id,\n parent as parent_id,\n isperson = 'T' as is_person,\n companyname as company_name,\n firstname as first_name,\n lastname as last_name,\n email as email_address,\n phone as phone_number,\n defaultbillingaddress as default_billing_address_id,\n defaultshippingaddress as default_shipping_address_id,\n receivablesaccount as receivables_account_id,\n currency as currency_id,\n firstorderdate as date_first_order_at\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\""}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accountingbooksubsidiaries_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_book_subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_book_subsidiaries_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_book_subsidiaries_tmp')),\n staging_columns=get_accountingbooksubsidiaries_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingbook as accounting_book_id,\n status,\n subsidiary as subsidiary_id\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "name": "stg_netsuite2__accounting_book_subsidiaries", "alias": "stg_netsuite2__accounting_book_subsidiaries", "checksum": {"name": "sha256", "checksum": "c118a8fc8aada69254a37255a604f17695966064c01244257bc501aa4e843718"}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries_tmp"], ["stg_netsuite2__accounting_book_subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "A table containing the various account books and the respective subsidiaries.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_book_subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.424392, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_id\n \n as \n \n _fivetran_id\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n accountingbook\n \n as \n \n accountingbook\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n status\n \n as \n \n status\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_id,\n _fivetran_synced,\n accountingbook as accounting_book_id,\n status,\n subsidiary as subsidiary_id\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\""}, "model.netsuite_source.stg_netsuite2__accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounts_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts_tmp", "model.netsuite_source.stg_netsuite2__accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounts"], "unique_id": "model.netsuite_source.stg_netsuite2__accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounts_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounts_tmp')),\n staging_columns=get_netsuite2_accounts_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as account_id, \n externalid as account_external_id,\n parent as parent_id,\n acctnumber as account_number,\n accttype as account_type_id,\n fullname as name,\n description as account_description,\n deferralacct as deferral_account_id,\n cashflowrate as cash_flow_rate_type,\n generalrate as general_rate_type,\n currency as currency_id,\n class as class_id,\n department as department_id,\n location as location_id,\n includechildren = 'T' as is_including_child_subs,\n isinactive = 'T' as is_inactive,\n issummary = 'T' as is_summary,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }}\n \n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounts.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounts.sql", "name": "stg_netsuite2__accounts", "alias": "stg_netsuite2__accounts", "checksum": {"name": "sha256", "checksum": "784d22fb98d78fd586615f77eacad4791287ef26e5638f184eb117fe0f008585"}, "tags": [], "refs": [["stg_netsuite2__accounts_tmp"], ["stg_netsuite2__accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounts set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_external_id": {"name": "account_external_id", "description": "Reference to the external account,", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "Netsuite generate account number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_type_id": {"name": "account_type_id", "description": "Reference to the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_description": {"name": "account_description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferral_account_id": {"name": "deferral_account_id", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cash_flow_rate_type": {"name": "cash_flow_rate_type", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_including_child_subs": {"name": "is_including_child_subs", "description": "Boolean indicating if the account includes sub accounts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the account is inactive.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_summary": {"name": "is_summary", "description": "Boolean indicating if the account is a summary account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4332979, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n acctnumber\n \n as \n \n acctnumber\n \n, \n \n \n accttype\n \n as \n \n accttype\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n description\n \n as \n \n description\n \n, \n \n \n deferralacct\n \n as \n \n deferralacct\n \n, \n \n \n cashflowrate\n \n as \n \n cashflowrate\n \n, \n \n \n generalrate\n \n as \n \n generalrate\n \n, \n \n \n currency\n \n as \n \n currency\n \n, \n \n \n class\n \n as \n \n class\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n includechildren\n \n as \n \n includechildren\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n issummary\n \n as \n \n issummary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as account_id, \n externalid as account_external_id,\n parent as parent_id,\n acctnumber as account_number,\n accttype as account_type_id,\n fullname as name,\n description as account_description,\n deferralacct as deferral_account_id,\n cashflowrate as cash_flow_rate_type,\n generalrate as general_rate_type,\n currency as currency_id,\n class as class_id,\n department as department_id,\n location as location_id,\n includechildren = 'T' as is_including_child_subs,\n isinactive = 'T' as is_inactive,\n issummary = 'T' as is_summary,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\""}, "model.netsuite_source.stg_netsuite2__transaction_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_transaction_lines_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_lines"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transaction_lines_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transaction_lines_tmp')),\n staging_columns=get_netsuite2_transaction_lines_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_line_id,\n transaction as transaction_id,\n linesequencenumber as transaction_line_number,\n memo,\n entity as entity_id,\n item as item_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n department as department_id,\n isclosed = 'T' as is_closed,\n isbillable = 'T' as is_billable,\n iscogs = 'T' as is_cogs,\n cleared = 'T' as is_cleared,\n commitmentfirm = 'T' as is_commitment_firm,\n mainline = 'T' as is_main_line,\n taxline = 'T' as is_tax_line\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transaction_lines_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_lines.sql", "name": "stg_netsuite2__transaction_lines", "alias": "stg_netsuite2__transaction_lines", "checksum": {"name": "sha256", "checksum": "f9c8883dafafdece7fb1ec344c62126790721198f540457a66a762808d96bc3b"}, "tags": [], "refs": [["stg_netsuite2__transaction_lines_tmp"], ["stg_netsuite2__transaction_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_id": {"name": "transaction_id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_number": {"name": "transaction_line_number", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity_id": {"name": "entity_id", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Boolean indicating if the transaction line is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_billable": {"name": "is_billable", "description": "Boolean indicating if the transaction line is billable.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_cogs": {"name": "is_cogs", "description": "Boolean indicating if the transaction line is a cost of goods sold entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_cleared": {"name": "is_cleared", "description": "Boolean indicating if the transaction line is cleared.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_commitment_firm": {"name": "is_commitment_firm", "description": "Boolean indicating if the transaction line is a commitment firm.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_main_line": {"name": "is_main_line", "description": "Boolean indicating if the transaction line is a main line entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_tax_line": {"name": "is_tax_line", "description": "Boolean indicating if the transaction line is a tax line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.458349, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n transaction\n \n as \n \n transaction\n \n, \n \n \n linesequencenumber\n \n as \n \n linesequencenumber\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n entity\n \n as \n \n entity\n \n, \n \n \n item\n \n as \n \n item\n \n, \n \n \n class\n \n as \n \n class\n \n, \n \n \n location\n \n as \n \n location\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n, \n \n \n department\n \n as \n \n department\n \n, \n \n \n isclosed\n \n as \n \n isclosed\n \n, \n \n \n isbillable\n \n as \n \n isbillable\n \n, \n \n \n iscogs\n \n as \n \n iscogs\n \n, \n \n \n cleared\n \n as \n \n cleared\n \n, \n \n \n commitmentfirm\n \n as \n \n commitmentfirm\n \n, \n \n \n mainline\n \n as \n \n mainline\n \n, \n \n \n taxline\n \n as \n \n taxline\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as transaction_line_id,\n transaction as transaction_id,\n linesequencenumber as transaction_line_number,\n memo,\n entity as entity_id,\n item as item_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n department as department_id,\n isclosed = 'T' as is_closed,\n isbillable = 'T' as is_billable,\n iscogs = 'T' as is_cogs,\n cleared = 'T' as is_cleared,\n commitmentfirm = 'T' as is_commitment_firm,\n mainline = 'T' as is_main_line,\n taxline = 'T' as is_tax_line\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\""}, "model.netsuite_source.stg_netsuite2__subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_subsidiaries_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__subsidiaries_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__subsidiaries_tmp')),\n staging_columns=get_netsuite2_subsidiaries_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as subsidiary_id,\n name,\n fullname as full_name,\n email as email_address,\n mainaddress as main_address_id,\n country,\n state,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('subsidiaries_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__subsidiaries.sql", "original_file_path": "models/netsuite2/stg_netsuite2__subsidiaries.sql", "name": "stg_netsuite2__subsidiaries", "alias": "stg_netsuite2__subsidiaries", "checksum": {"name": "sha256", "checksum": "3be3646f51e6cbce641a4069402d860f7db873e67e2cd8f73a58345d3a91b378"}, "tags": [], "refs": [["stg_netsuite2__subsidiaries_tmp"], ["stg_netsuite2__subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email_address": {"name": "email_address", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.452847, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n email\n \n as \n \n email\n \n, \n \n \n mainaddress\n \n as \n \n mainaddress\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n fiscalcalendar\n \n as \n \n fiscalcalendar\n \n, \n \n \n parent\n \n as \n \n parent\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as subsidiary_id,\n name,\n fullname as full_name,\n email as email_address,\n mainaddress as main_address_id,\n country,\n state,\n fiscalcalendar as fiscal_calendar_id,\n parent as parent_id\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\""}, "model.netsuite_source.stg_netsuite2__entity_address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_entityaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__entity_address_tmp", "model.netsuite_source.stg_netsuite2__entity_address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__entity_address"], "unique_id": "model.netsuite_source.stg_netsuite2__entity_address", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__entity_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__entity_address_tmp')),\n staging_columns=get_entityaddress_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__entity_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__entity_address.sql", "name": "stg_netsuite2__entity_address", "alias": "stg_netsuite2__entity_address", "checksum": {"name": "sha256", "checksum": "71fa72175fd4e45cae5f56d051c957830f1b8593aaa90b849d9610dd48668b2c"}, "tags": [], "refs": [["stg_netsuite2__entity_address_tmp"], ["stg_netsuite2__entity_address_tmp"]], "sources": [], "metrics": [], "description": "A table containing addresses and the various entities which they map.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__entity_address.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.444248, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n addr1\n \n as \n \n addr1\n \n, \n \n \n addr2\n \n as \n \n addr2\n \n, \n \n \n addr3\n \n as \n \n addr3\n \n, \n \n \n addressee\n \n as \n \n addressee\n \n, \n \n \n addrphone\n \n as \n \n addrphone\n \n, \n \n \n addrtext\n \n as \n \n addrtext\n \n, \n \n \n attention\n \n as \n \n attention\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n dropdownstate\n \n as \n \n dropdownstate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n nkey\n \n as \n \n nkey\n \n, \n \n \n override\n \n as \n \n override\n \n, \n \n \n recordowner\n \n as \n \n recordowner\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address\""}, "model.netsuite_source.stg_netsuite2__location_main_address": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_locationmainaddress_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp", "model.netsuite_source.stg_netsuite2__location_main_address_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__location_main_address"], "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__location_main_address_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__location_main_address_tmp')),\n staging_columns=get_locationmainaddress_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__location_main_address.sql", "original_file_path": "models/netsuite2/stg_netsuite2__location_main_address.sql", "name": "stg_netsuite2__location_main_address", "alias": "stg_netsuite2__location_main_address", "checksum": {"name": "sha256", "checksum": "71d9ec2fd5ab6d7c0a577fc3bbdc4444c6c266d474e88c3906f12a2d3798dfaf"}, "tags": [], "refs": [["stg_netsuite2__location_main_address_tmp"], ["stg_netsuite2__location_main_address_tmp"]], "sources": [], "metrics": [], "description": "A table containing the location main addresses.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_address": {"name": "full_address", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__location_main_address.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4499352, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n addr1\n \n as \n \n addr1\n \n, \n \n \n addr2\n \n as \n \n addr2\n \n, \n \n \n addr3\n \n as \n \n addr3\n \n, \n \n \n addressee\n \n as \n \n addressee\n \n, \n \n \n addrphone\n \n as \n \n addrphone\n \n, \n \n \n addrtext\n \n as \n \n addrtext\n \n, \n \n \n attention\n \n as \n \n attention\n \n, \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n dropdownstate\n \n as \n \n dropdownstate\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n nkey\n \n as \n \n nkey\n \n, \n \n \n override\n \n as \n \n override\n \n, \n \n \n recordowner\n \n as \n \n recordowner\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zip\n \n as \n \n zip\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_synced,\n addr1,\n addr2,\n addr3,\n addressee,\n addrtext as full_address,\n city,\n country,\n coalesce(state, dropdownstate) as state,\n nkey,\n zip as zipcode\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address\""}, "model.netsuite_source.stg_netsuite2__vendor_categories": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendorcategory_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__vendor_categories"], "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_vendor_categories', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__vendor_categories_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__vendor_categories_tmp')),\n staging_columns=get_vendorcategory_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as vendor_category_id,\n name,\n _fivetran_synced\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__vendor_categories.sql", "original_file_path": "models/netsuite2/stg_netsuite2__vendor_categories.sql", "name": "stg_netsuite2__vendor_categories", "alias": "stg_netsuite2__vendor_categories", "checksum": {"name": "sha256", "checksum": "97c7d63cfd24e9435a2fdb5c2754a8ced8122a34eb4ca8261ba58c1d0d6b85ad"}, "tags": [], "refs": [["stg_netsuite2__vendor_categories_tmp"], ["stg_netsuite2__vendor_categories_tmp"]], "sources": [], "metrics": [], "description": "A table containing categories and how they map to vendors.", "columns": {"vendor_category_id": {"name": "vendor_category_id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__vendor_categories.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.461536, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n istaxagency\n \n as \n \n istaxagency\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as vendor_category_id,\n name,\n _fivetran_synced\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\""}, "model.netsuite_source.stg_netsuite2__departments": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_departments_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__departments_tmp", "model.netsuite_source.stg_netsuite2__departments_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__departments"], "unique_id": "model.netsuite_source.stg_netsuite2__departments", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__departments_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__departments_tmp')),\n staging_columns=get_netsuite2_departments_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as department_id,\n parent as parent_id,\n name,\n fullname as full_name,\n subsidiary as subsidiary_id,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('departments_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__departments.sql", "original_file_path": "models/netsuite2/stg_netsuite2__departments.sql", "name": "stg_netsuite2__departments", "alias": "stg_netsuite2__departments", "checksum": {"name": "sha256", "checksum": "11fa478222fba8dfc22c4d63b005fe315d9fb8f98dbf5e5e3af23a3304d763ed"}, "tags": [], "refs": [["stg_netsuite2__departments_tmp"], ["stg_netsuite2__departments_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all departments set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_inactive": {"name": "is_inactive", "description": "Boolean indicating if the department is active.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__departments.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4405499, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as department_id,\n parent as parent_id,\n name,\n fullname as full_name,\n subsidiary as subsidiary_id,\n isinactive = 'T' as is_inactive,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\""}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transactionaccountingline_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__transaction_accounting_lines"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__transaction_accounting_lines_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__transaction_accounting_lines_tmp')),\n staging_columns=get_transactionaccountingline_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n transaction as transaction_id,\n transactionline as transaction_line_id,\n accountingbook as accounting_book_id,\n account as account_id,\n posting = 'T' as is_posting,\n amount,\n credit as credit_amount,\n debit as debit_amount,\n netamount as net_amount,\n amountpaid as paid_amount,\n amountunpaid as unpaid_amount\n from fields\n)\n\nselect *\nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "original_file_path": "models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "name": "stg_netsuite2__transaction_accounting_lines", "alias": "stg_netsuite2__transaction_accounting_lines", "checksum": {"name": "sha256", "checksum": "8f11b9036edda818da5d940ba0b8f012be8602910c6488dac1b8f0c854165e1a"}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines_tmp"], ["stg_netsuite2__transaction_accounting_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The tra \"The transaction id of referenced for the record.\"nsaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "net_amount": {"name": "net_amount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Reference to the accounting book of the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_posting": {"name": "is_posting", "description": "Boolean indicating if the entry is posting.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit_amount": {"name": "credit_amount", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "debit_amount": {"name": "debit_amount", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "paid_amount": {"name": "paid_amount", "description": "Total amount paid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unpaid_amount": {"name": "unpaid_amount", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__transaction_accounting_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.455107, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n account\n \n as \n \n account\n \n, \n \n \n accountingbook\n \n as \n \n accountingbook\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n amountlinked\n \n as \n \n amountlinked\n \n, \n \n \n amountpaid\n \n as \n \n amountpaid\n \n, \n \n \n amountunpaid\n \n as \n \n amountunpaid\n \n, \n \n \n credit\n \n as \n \n credit\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n debit\n \n as \n \n debit\n \n, \n \n \n exchangerate\n \n as \n \n exchangerate\n \n, \n \n \n netamount\n \n as \n \n netamount\n \n, \n \n \n overheadparentitem\n \n as \n \n overheadparentitem\n \n, \n \n \n paymentamountunused\n \n as \n \n paymentamountunused\n \n, \n \n \n paymentamountused\n \n as \n \n paymentamountused\n \n, \n \n \n posting\n \n as \n \n posting\n \n, \n \n \n transaction\n \n as \n \n transaction\n \n, \n \n \n transactionline\n \n as \n \n transactionline\n \n\n\n\n from base\n),\n\nfinal as (\n \n select \n _fivetran_deleted,\n _fivetran_synced,\n transaction as transaction_id,\n transactionline as transaction_line_id,\n accountingbook as accounting_book_id,\n account as account_id,\n posting = 'T' as is_posting,\n amount,\n credit as credit_amount,\n debit as debit_amount,\n netamount as net_amount,\n amountpaid as paid_amount,\n amountunpaid as unpaid_amount\n from fields\n)\n\nselect *\nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\""}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__consolidated_exchange_rates"], "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__consolidated_exchange_rates_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__consolidated_exchange_rates_tmp')),\n staging_columns=get_netsuite2_consolidated_exchange_rates_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n id as consolidated_exchange_rate_id,\n postingperiod as accounting_period_id,\n fromcurrency as from_currency_id,\n fromsubsidiary as from_subsidiary_id,\n tocurrency as to_currency_id,\n tosubsidiary as to_subsidiary_id,\n currentrate as current_rate, \n averagerate as average_rate,\n historicalrate as historical_rate\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('consolidated_exchange_rates_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "name": "stg_netsuite2__consolidated_exchange_rates", "alias": "stg_netsuite2__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "d818a9207416d913242d57089bfdf69d9c3f9e0c0d865ec51ae24b6b36a93c34"}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates_tmp"], ["stg_netsuite2__consolidated_exchange_rates_tmp"]], "sources": [], "metrics": [], "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"consolidated_exchange_rate_id": {"name": "consolidated_exchange_rate_id", "description": "unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_currency_id": {"name": "from_currency_id", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_currency_id": {"name": "to_currency_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__consolidated_exchange_rates.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.436029, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n averagerate\n \n as \n \n averagerate\n \n, \n \n \n currentrate\n \n as \n \n currentrate\n \n, \n \n \n fromcurrency\n \n as \n \n fromcurrency\n \n, \n \n \n fromsubsidiary\n \n as \n \n fromsubsidiary\n \n, \n \n \n historicalrate\n \n as \n \n historicalrate\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n postingperiod\n \n as \n \n postingperiod\n \n, \n \n \n tocurrency\n \n as \n \n tocurrency\n \n, \n \n \n tosubsidiary\n \n as \n \n tosubsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n id as consolidated_exchange_rate_id,\n postingperiod as accounting_period_id,\n fromcurrency as from_currency_id,\n fromsubsidiary as from_subsidiary_id,\n tocurrency as to_currency_id,\n tosubsidiary as to_subsidiary_id,\n currentrate as current_rate, \n averagerate as average_rate,\n historicalrate as historical_rate\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\""}, "model.netsuite_source.stg_netsuite2__accounting_books": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_accounting_books_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp", "model.netsuite_source.stg_netsuite2__accounting_books_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__accounting_books"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__accounting_books_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__accounting_books_tmp')),\n staging_columns=get_netsuite2_accounting_books_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_book_id,\n name as accounting_book_name,\n basebook as base_book_id,\n effectiveperiod as effective_period_id,\n isadjustmentonly = 'T' as is_adjustment_only,\n isconsolidated = 'T' as is_consolidated,\n contingentrevenuehandling as is_contingent_revenue_handling,\n isprimary = 'T' as is_primary,\n twosteprevenueallocation as is_two_step_revenue_allocation\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__accounting_books.sql", "original_file_path": "models/netsuite2/stg_netsuite2__accounting_books.sql", "name": "stg_netsuite2__accounting_books", "alias": "stg_netsuite2__accounting_books", "checksum": {"name": "sha256", "checksum": "e788e1638657cbb7b1ed9812d6cfb43592b178e898dc43019c94f3c309dc2339"}, "tags": [], "refs": [["stg_netsuite2__accounting_books_tmp"], ["stg_netsuite2__accounting_books_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_name": {"name": "accounting_book_name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "base_book_id": {"name": "base_book_id", "description": "Reference to the base book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effective_period_id": {"name": "effective_period_id", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment_only": {"name": "is_adjustment_only", "description": "Boolean indicating if the accounting book is an adjustment only.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_consolidated": {"name": "is_consolidated", "description": "Boolean indicating if the accounting book is a consolidated entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_contingent_revenue_handling": {"name": "is_contingent_revenue_handling", "description": "Boolean indicating if the accounting book is contingent revenue handling.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating if the accounting book is a primary entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_two_step_revenue_allocation": {"name": "is_two_step_revenue_allocation", "description": "Boolean indicating if the accounting book is a two step revenue allocation entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__accounting_books.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4263911, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n basebook\n \n as \n \n basebook\n \n, \n cast(null as TEXT) as \n \n contingentrevenuehandling\n \n , \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n effectiveperiod\n \n as \n \n effectiveperiod\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n isadjustmentonly\n \n as \n \n isadjustmentonly\n \n, \n \n \n isconsolidated\n \n as \n \n isconsolidated\n \n, \n \n \n isprimary\n \n as \n \n isprimary\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n subsidiariesstring\n \n as \n \n subsidiariesstring\n \n, \n cast(null as TEXT) as \n \n twosteprevenueallocation\n \n , \n cast(null as TEXT) as \n \n unbilledreceivablegrouping\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as accounting_book_id,\n name as accounting_book_name,\n basebook as base_book_id,\n effectiveperiod as effective_period_id,\n isadjustmentonly = 'T' as is_adjustment_only,\n isconsolidated = 'T' as is_consolidated,\n contingentrevenuehandling as is_contingent_revenue_handling,\n isprimary = 'T' as is_primary,\n twosteprevenueallocation as is_two_step_revenue_allocation\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\""}, "model.netsuite_source.stg_netsuite2__items": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_items_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__items_tmp", "model.netsuite_source.stg_netsuite2__items_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__items"], "unique_id": "model.netsuite_source.stg_netsuite2__items", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__items_tmp') }}\n\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__items_tmp')),\n staging_columns=get_netsuite2_items_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as item_id,\n fullname as name,\n itemtype as type_name,\n description as sales_description,\n department as department_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n assetaccount as asset_account_id,\n expenseaccount as expense_account_id,\n gainlossaccount as gain_loss_account_id,\n incomeaccount as income_account_id,\n intercoexpenseaccount as interco_expense_account_id,\n intercoincomeaccount as interco_income_account_id,\n deferralaccount as deferred_expense_account_id,\n deferredrevenueaccount as deferred_revenue_account_id,\n parent as parent_item_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__items.sql", "original_file_path": "models/netsuite2/stg_netsuite2__items.sql", "name": "stg_netsuite2__items", "alias": "stg_netsuite2__items", "checksum": {"name": "sha256", "checksum": "4ab457d19f1ffedf51a61dd39255596ec7199e281ebda2927355ee002d5b2614"}, "tags": [], "refs": [["stg_netsuite2__items_tmp"], ["stg_netsuite2__items_tmp"]], "sources": [], "metrics": [], "description": "Table detailing information about the items created in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "Item type name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "asset_account_id": {"name": "asset_account_id", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expense_account_id": {"name": "expense_account_id", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "gain_loss_account_id": {"name": "gain_loss_account_id", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "income_account_id": {"name": "income_account_id", "description": "Reference to the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "interco_expense_account_id": {"name": "interco_expense_account_id", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "interco_income_account_id": {"name": "interco_income_account_id", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferred_expense_account_id": {"name": "deferred_expense_account_id", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferred_revenue_account_id": {"name": "deferred_revenue_account_id", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_item_id": {"name": "parent_item_id", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__items.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4469929, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items_tmp\"\n\n),\n\nfields as (\n\n select\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n cast(null as INT) as \n \n alternatedemandsourceitem\n \n , \n cast(null as INT) as \n \n amortizationperiod\n \n , \n cast(null as INT) as \n \n amortizationtemplate\n \n , \n \n \n assetaccount\n \n as \n \n assetaccount\n \n, \n cast(null as TEXT) as \n \n atpmethod\n \n , \n cast(null as TEXT) as \n \n autoexpandkitforrevenuemgmt\n \n , \n cast(null as FLOAT) as \n \n averagecost\n \n , \n cast(null as INT) as \n \n backwardconsumptiondays\n \n , \n cast(null as INT) as \n \n billexchratevarianceacct\n \n , \n cast(null as INT) as \n \n billingschedule\n \n , \n cast(null as INT) as \n \n billpricevarianceacct\n \n , \n cast(null as INT) as \n \n billqtyvarianceacct\n \n , \n cast(null as TEXT) as \n \n buildentireassembly\n \n , \n cast(null as FLOAT) as \n \n buildtime\n \n , \n \n \n class\n \n as \n \n class\n \n, \n cast(null as INT) as \n \n consumptionunit\n \n , \n cast(null as TEXT) as \n \n copydescription\n \n , \n cast(null as FLOAT) as \n \n cost\n \n , \n cast(null as FLOAT) as \n \n costestimate\n \n , \n cast(null as TEXT) as \n \n costestimatetype\n \n , \n cast(null as TEXT) as \n \n costingmethod\n \n , \n cast(null as TEXT) as \n \n costingmethoddisplay\n \n , \n cast(null as TEXT) as \n \n countryofmanufacture\n \n , \n cast(null as TIMESTAMP) as \n \n createddate\n \n , \n cast(null as INT) as \n \n createexpenseplanson\n \n , \n cast(null as TEXT) as \n \n createjob\n \n , \n cast(null as INT) as \n \n createrevenueplanson\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n \n \n deferralaccount\n \n as \n \n deferralaccount\n \n, \n cast(null as INT) as \n \n deferredrevenueaccount\n \n , \n cast(null as TEXT) as \n \n deferrevrec\n \n , \n cast(null as FLOAT) as \n \n demandmodifier\n \n , \n cast(null as TEXT) as \n \n demandsource\n \n , \n cast(null as INT) as \n \n demandtimefence\n \n , \n \n \n department\n \n as \n \n department\n \n, \n \n \n description\n \n as \n \n description\n \n, \n cast(null as TEXT) as \n \n directrevenueposting\n \n , \n cast(null as TEXT) as \n \n displayname\n \n , \n cast(null as INT) as \n \n dropshipexpenseaccount\n \n , \n cast(null as TEXT) as \n \n enforceminqtyinternally\n \n , \n cast(null as TEXT) as \n \n excludefromsitemap\n \n , \n \n \n expenseaccount\n \n as \n \n expenseaccount\n \n, \n cast(null as INT) as \n \n expenseamortizationrule\n \n , \n cast(null as TEXT) as \n \n externalid\n \n , \n cast(null as FLOAT) as \n \n fixedlotsize\n \n , \n cast(null as INT) as \n \n forwardconsumptiondays\n \n , \n cast(null as TEXT) as \n \n froogleproductfeed\n \n , \n \n \n fullname\n \n as \n \n fullname\n \n, \n cast(null as FLOAT) as \n \n fxcost\n \n , \n \n \n gainlossaccount\n \n as \n \n gainlossaccount\n \n, \n cast(null as TEXT) as \n \n generateaccruals\n \n , \n cast(null as FLOAT) as \n \n handlingcost\n \n , \n \n \n id\n \n as \n \n id\n \n, \n cast(null as TEXT) as \n \n includechildren\n \n , \n \n \n incomeaccount\n \n as \n \n incomeaccount\n \n, \n cast(null as INT) as \n \n intercodefrevaccount\n \n , \n cast(null as INT) as \n \n intercoexpenseaccount\n \n , \n cast(null as INT) as \n \n intercoincomeaccount\n \n , \n cast(null as TEXT) as \n \n isdropshipitem\n \n , \n cast(null as TEXT) as \n \n isfulfillable\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n islotitem\n \n , \n cast(null as TEXT) as \n \n isonline\n \n , \n cast(null as TEXT) as \n \n isphantom\n \n , \n cast(null as TEXT) as \n \n isserialitem\n \n , \n cast(null as TEXT) as \n \n isspecialorderitem\n \n , \n cast(null as TEXT) as \n \n isspecialworkorderitem\n \n , \n cast(null as TEXT) as \n \n itemid\n \n , \n cast(null as INT) as \n \n itemrevenuecategory\n \n , \n \n \n itemtype\n \n as \n \n itemtype\n \n, \n cast(null as TIMESTAMP) as \n \n lastmodifieddate\n \n , \n cast(null as FLOAT) as \n \n lastpurchaseprice\n \n , \n cast(null as INT) as \n \n leadtime\n \n , \n \n \n location\n \n as \n \n location\n \n, \n cast(null as TEXT) as \n \n manufacturer\n \n , \n cast(null as TEXT) as \n \n matchbilltoreceipt\n \n , \n cast(null as TEXT) as \n \n matrixitemnametemplate\n \n , \n cast(null as TEXT) as \n \n matrixtype\n \n , \n cast(null as INT) as \n \n maximumquantity\n \n , \n cast(null as INT) as \n \n minimumquantity\n \n , \n cast(null as TEXT) as \n \n mpn\n \n , \n cast(null as TEXT) as \n \n nextagcategory\n \n , \n cast(null as TEXT) as \n \n nextagproductfeed\n \n , \n cast(null as TEXT) as \n \n overallquantitypricingtype\n \n , \n \n \n parent\n \n as \n \n parent\n \n, \n cast(null as INT) as \n \n periodiclotsizedays\n \n , \n cast(null as TEXT) as \n \n periodiclotsizetype\n \n , \n cast(null as INT) as \n \n preferredlocation\n \n , \n cast(null as INT) as \n \n pricinggroup\n \n , \n cast(null as TEXT) as \n \n printitems\n \n , \n cast(null as INT) as \n \n prodpricevarianceacct\n \n , \n cast(null as INT) as \n \n prodqtyvarianceacct\n \n , \n cast(null as INT) as \n \n projectexpensetype\n \n , \n cast(null as INT) as \n \n projecttemplate\n \n , \n cast(null as TEXT) as \n \n purchasedescription\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as INT) as \n \n purchasepricevarianceacct\n \n , \n cast(null as INT) as \n \n purchaseunit\n \n , \n cast(null as INT) as \n \n quantitypricingschedule\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as TEXT) as \n \n relateditemsdescription\n \n , \n cast(null as INT) as \n \n rescheduleindays\n \n , \n cast(null as INT) as \n \n rescheduleoutdays\n \n , \n cast(null as FLOAT) as \n \n residual\n \n , \n cast(null as INT) as \n \n revenueallocationgroup\n \n , \n cast(null as INT) as \n \n revenuerecognitionrule\n \n , \n cast(null as INT) as \n \n revrecforecastrule\n \n , \n cast(null as INT) as \n \n revreclassfxaccount\n \n , \n cast(null as TEXT) as \n \n roundupascomponent\n \n , \n cast(null as FLOAT) as \n \n safetystocklevel\n \n , \n cast(null as INT) as \n \n saleunit\n \n , \n cast(null as INT) as \n \n scrapacct\n \n , \n cast(null as TEXT) as \n \n searchkeywords\n \n , \n cast(null as TEXT) as \n \n seasonaldemand\n \n , \n cast(null as TEXT) as \n \n shipindividually\n \n , \n cast(null as INT) as \n \n shippackage\n \n , \n cast(null as FLOAT) as \n \n shippingcost\n \n , \n cast(null as TEXT) as \n \n shoppingdotcomcategory\n \n , \n cast(null as TEXT) as \n \n shoppingproductfeed\n \n , \n cast(null as INT) as \n \n shopzillacategoryid\n \n , \n cast(null as TEXT) as \n \n shopzillaproductfeed\n \n , \n cast(null as TEXT) as \n \n sitemappriority\n \n , \n cast(null as TEXT) as \n \n stockdescription\n \n , \n cast(null as INT) as \n \n stockunit\n \n , \n cast(null as TEXT) as \n \n storedescription\n \n , \n cast(null as INT) as \n \n storedisplayimage\n \n , \n cast(null as TEXT) as \n \n storedisplayname\n \n , \n cast(null as INT) as \n \n storedisplaythumbnail\n \n , \n \n \n subsidiary\n \n as \n \n subsidiary\n \n, \n cast(null as TEXT) as \n \n subtype\n \n , \n cast(null as TEXT) as \n \n supplylotsizingmethod\n \n , \n cast(null as TEXT) as \n \n supplyreplenishmentmethod\n \n , \n cast(null as INT) as \n \n supplytimefence\n \n , \n cast(null as TEXT) as \n \n supplytype\n \n , \n cast(null as FLOAT) as \n \n totalquantityonhand\n \n , \n cast(null as FLOAT) as \n \n totalvalue\n \n , \n cast(null as FLOAT) as \n \n transferprice\n \n , \n cast(null as INT) as \n \n unbuildvarianceaccount\n \n , \n cast(null as INT) as \n \n unitstype\n \n , \n cast(null as TEXT) as \n \n upccode\n \n , \n cast(null as TEXT) as \n \n usebins\n \n , \n cast(null as TEXT) as \n \n usemarginalrates\n \n , \n cast(null as TEXT) as \n \n vendorname\n \n , \n cast(null as INT) as \n \n vendreturnvarianceaccount\n \n , \n cast(null as TEXT) as \n \n vsoedelivered\n \n , \n cast(null as TEXT) as \n \n vsoepermitdiscount\n \n , \n cast(null as TEXT) as \n \n vsoesopgroup\n \n , \n cast(null as FLOAT) as \n \n weight\n \n , \n cast(null as INT) as \n \n weightunit\n \n , \n cast(null as TEXT) as \n \n weightunits\n \n , \n cast(null as INT) as \n \n wipacct\n \n , \n cast(null as INT) as \n \n wipvarianceacct\n \n , \n cast(null as TEXT) as \n \n yahooproductfeed\n \n \n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as item_id,\n fullname as name,\n itemtype as type_name,\n description as sales_description,\n department as department_id,\n class as class_id,\n location as location_id,\n subsidiary as subsidiary_id,\n assetaccount as asset_account_id,\n expenseaccount as expense_account_id,\n gainlossaccount as gain_loss_account_id,\n incomeaccount as income_account_id,\n intercoexpenseaccount as interco_expense_account_id,\n intercoincomeaccount as interco_income_account_id,\n deferralaccount as deferred_expense_account_id,\n deferredrevenueaccount as deferred_revenue_account_id,\n parent as parent_item_id\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\""}, "model.netsuite_source.stg_netsuite2__currencies": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies_tmp", "model.netsuite_source.stg_netsuite2__currencies_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__currencies"], "unique_id": "model.netsuite_source.stg_netsuite2__currencies", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__currencies_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__currencies_tmp')),\n staging_columns=get_netsuite2_currencies_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as currency_id,\n name,\n symbol\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__currencies.sql", "original_file_path": "models/netsuite2/stg_netsuite2__currencies.sql", "name": "stg_netsuite2__currencies", "alias": "stg_netsuite2__currencies", "checksum": {"name": "sha256", "checksum": "1732f9e10cdf1c28cb34fff21a98ce324488fb97373e28f948479653fddb4f52"}, "tags": [], "refs": [["stg_netsuite2__currencies_tmp"], ["stg_netsuite2__currencies_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all currency information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__currencies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.436812, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n currencyprecision\n \n as \n \n currencyprecision\n \n, \n \n \n date_deleted\n \n as \n \n date_deleted\n \n, \n \n \n displaysymbol\n \n as \n \n displaysymbol\n \n, \n \n \n exchangerate\n \n as \n \n exchangerate\n \n, \n \n \n externalid\n \n as \n \n externalid\n \n, \n \n \n fxrateupdatetimezone\n \n as \n \n fxrateupdatetimezone\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n includeinfxrateupdates\n \n as \n \n includeinfxrateupdates\n \n, \n \n \n isbasecurrency\n \n as \n \n isbasecurrency\n \n, \n \n \n isinactive\n \n as \n \n isinactive\n \n, \n \n \n lastmodifieddate\n \n as \n \n lastmodifieddate\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n overridecurrencyformat\n \n as \n \n overridecurrencyformat\n \n, \n \n \n symbol\n \n as \n \n symbol\n \n, \n \n \n symbolplacement\n \n as \n \n symbolplacement\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as currency_id,\n name,\n symbol\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\""}, "model.netsuite_source.stg_netsuite2__locations": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_netsuite2_locations_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite2__locations_tmp", "model.netsuite_source.stg_netsuite2__locations_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "stg_netsuite2__locations"], "unique_id": "model.netsuite_source.stg_netsuite2__locations", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite2__locations_tmp') }}\n),\n\nfields as (\n\n select\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite2__locations_tmp')),\n staging_columns=get_netsuite2_locations_columns()\n )\n }}\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as location_id,\n name,\n fullname as full_name,\n mainaddress as main_address_id,\n parent as parent_id,\n subsidiary as subsidiary_id\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('locations_pass_through_columns') }}\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/stg_netsuite2__locations.sql", "original_file_path": "models/netsuite2/stg_netsuite2__locations.sql", "name": "stg_netsuite2__locations", "alias": "stg_netsuite2__locations", "checksum": {"name": "sha256", "checksum": "f209763d31da50bf88ec1381c272ebc8800cec9be699a5d2bb3d35ee83a213c3"}, "tags": [], "refs": [["stg_netsuite2__locations_tmp"], ["stg_netsuite2__locations_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "Full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "main_address_id": {"name": "main_address_id", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite2.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite2/stg_netsuite2__locations.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.4511812, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations_tmp\"\n),\n\nfields as (\n\n select\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n _fivetran_synced\n \n as \n \n _fivetran_synced\n \n, \n \n \n id\n \n as \n \n id\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n fullname\n \n as \n \n fullname\n \n, \n \n \n mainaddress\n \n as \n \n mainaddress\n \n, \n \n \n parent\n \n as \n \n parent\n \n, \n \n \n subsidiary\n \n as \n \n subsidiary\n \n\n\n\n from base\n),\n\nfinal as (\n \n select\n _fivetran_synced,\n id as location_id,\n name,\n fullname as full_name,\n mainaddress as main_address_id,\n parent as parent_id,\n subsidiary as subsidiary_id\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n where not coalesce(_fivetran_deleted, false)\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\""}, "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.subsidiary"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "name": "stg_netsuite2__subsidiaries_tmp", "alias": "stg_netsuite2__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "6666ee27a531fb4f909f1a5bb1ed78860aaab0fce53c3a7d64110b1bb94f8978"}, "tags": [], "refs": [], "sources": [["netsuite2", "subsidiary"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.9143791, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite2__transactions_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transactions_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transactions') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "name": "stg_netsuite2__transactions_tmp", "alias": "stg_netsuite2__transactions_tmp", "checksum": {"name": "sha256", "checksum": "1625f18a3c8501316cb07107ba8fa7193670933f4257bbb1d9af4ba906a2dad0"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transactions_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.918371, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions_tmp\""}, "model.netsuite_source.stg_netsuite2__entity_address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity_address"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entity_address_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_entity_address') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "name": "stg_netsuite2__entity_address_tmp", "alias": "stg_netsuite2__entity_address_tmp", "checksum": {"name": "sha256", "checksum": "fcf2a49835607b81e8b532e6103522e1ae39c31c40cab59ac1afe6d989ddf459"}, "tags": [], "refs": [], "sources": [["netsuite2", "entity_address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entity_address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.921889, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entity_address_tmp\""}, "model.netsuite_source.stg_netsuite2__account_types_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account_type"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__account_types_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_account_types') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "name": "stg_netsuite2__account_types_tmp", "alias": "stg_netsuite2__account_types_tmp", "checksum": {"name": "sha256", "checksum": "3415db1a2707377cc7b0653882967c59ed725db0dd959536151d511a41c678c1"}, "tags": [], "refs": [], "sources": [["netsuite2", "account_type"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__account_types_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.9253519, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_periods_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_accounting_periods') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "name": "stg_netsuite2__accounting_periods_tmp", "alias": "stg_netsuite2__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "0149cbd8d601dfcba0487e44f82d6ec166fb513775670cf614d6c6be4164c437"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_period"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_periods_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.928792, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods_tmp\""}, "model.netsuite_source.stg_netsuite2__jobs_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.job"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__jobs_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_jobs') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "name": "stg_netsuite2__jobs_tmp", "alias": "stg_netsuite2__jobs_tmp", "checksum": {"name": "sha256", "checksum": "14799bd78ef93ef464b4dca07908e6ee44a7ff9881faf86757d39b5f4b1d0fd9"}, "tags": [], "refs": [], "sources": [["netsuite2", "job"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__jobs_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.932239, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs_tmp\""}, "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_line"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transaction_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "name": "stg_netsuite2__transaction_lines_tmp", "alias": "stg_netsuite2__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "15ebc09543829a7c09c0e49c546ffa8aae2b509054f26f5cbf06f3aa31731c80"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.935773, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines_tmp\""}, "model.netsuite_source.stg_netsuite2__accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.account"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "name": "stg_netsuite2__accounts_tmp", "alias": "stg_netsuite2__accounts_tmp", "checksum": {"name": "sha256", "checksum": "2a8d008c5c30f44eca40fa5871ea2579d0b51cf45cf10a39addb620fd870259f"}, "tags": [], "refs": [], "sources": [["netsuite2", "account"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.9398122, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts_tmp\""}, "model.netsuite_source.stg_netsuite2__customers_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.customer"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__customers_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_customers') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "name": "stg_netsuite2__customers_tmp", "alias": "stg_netsuite2__customers_tmp", "checksum": {"name": "sha256", "checksum": "e2db5f557cfe416e87f1b8fb38e2b62277871d2ed4c8b3f0ba83f35bcda6ecba"}, "tags": [], "refs": [], "sources": [["netsuite2", "customer"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__customers_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.9432719, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers_tmp\""}, "model.netsuite_source.stg_netsuite2__entities_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.entity"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__entities_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_entities') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "name": "stg_netsuite2__entities_tmp", "alias": "stg_netsuite2__entities_tmp", "checksum": {"name": "sha256", "checksum": "bb55a24286c0f26fd9e40a0f56b694fed4a736385a94deeb64ee3360c1310c29"}, "tags": [], "refs": [], "sources": [["netsuite2", "entity"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__entities_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.946759, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities_tmp\""}, "model.netsuite_source.stg_netsuite2__currencies_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.currency"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__currencies_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_currencies') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "name": "stg_netsuite2__currencies_tmp", "alias": "stg_netsuite2__currencies_tmp", "checksum": {"name": "sha256", "checksum": "1f06a4a8f01197479386859c92462ba485f304e6c944130f66424fb4511a5799"}, "tags": [], "refs": [], "sources": [["netsuite2", "currency"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__currencies_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.950235, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies_tmp\""}, "model.netsuite_source.stg_netsuite2__vendors_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendors_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_vendors') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "name": "stg_netsuite2__vendors_tmp", "alias": "stg_netsuite2__vendors_tmp", "checksum": {"name": "sha256", "checksum": "e18a924a82a09bd660ba8517d492632efd1c2eabb10e4979e93f422e558d8022"}, "tags": [], "refs": [], "sources": [["netsuite2", "vendor"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendors_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.953713, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors_tmp\""}, "model.netsuite_source.stg_netsuite2__items_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.item"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__items_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_items') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__items_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "name": "stg_netsuite2__items_tmp", "alias": "stg_netsuite2__items_tmp", "checksum": {"name": "sha256", "checksum": "521a428cea21fb1a256cb1a87335aebc92154e37ead547e3e21b5deeae0ea6c2"}, "tags": [], "refs": [], "sources": [["netsuite2", "item"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__items_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.957192, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_books_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_books_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_books') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "name": "stg_netsuite2__accounting_books_tmp", "alias": "stg_netsuite2__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "c5d1ee56d0181cee10a2ab0599060ec8954702bfebc8663cc523ae85849de31d"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_book"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_books_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.9613519, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_period_fiscal_cal_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_period_fiscal_calendars') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "name": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "alias": "stg_netsuite2__accounting_period_fiscal_cal_tmp", "checksum": {"name": "sha256", "checksum": "d88060ffff63d2d9030c23de1a17a15dd7a34ecda89e323dc7e9cf140a04b03a"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_period_fiscal_calendars"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_period_fiscal_cal_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.965045, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal_tmp\""}, "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.vendor_category"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__vendor_categories_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__using_vendor_categories', true))) }}\n\nselect * \nfrom {{ var('netsuite2_vendor_categories') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "name": "stg_netsuite2__vendor_categories_tmp", "alias": "stg_netsuite2__vendor_categories_tmp", "checksum": {"name": "sha256", "checksum": "6dd5fe29284858908fa31920941227618d5bc33eee62ff15e447357c5f1d791a"}, "tags": [], "refs": [], "sources": [["netsuite2", "vendor_category"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__vendor_categories_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.968516, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories_tmp\""}, "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__accounting_book_subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "raw_code": "{{ config(enabled=(var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2') and var('netsuite2__multibook_accounting_enabled', true))) }}\n\nselect * \nfrom {{ var('netsuite2_accounting_book_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "name": "stg_netsuite2__accounting_book_subsidiaries_tmp", "alias": "stg_netsuite2__accounting_book_subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "c7c5eee54b160ba7e7cc3ca69b4ff74939dcb9ca44966e3e1ef95650743e4d03"}, "tags": [], "refs": [], "sources": [["netsuite2", "accounting_book_subsidiaries"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__accounting_book_subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.9721699, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.transaction_accounting_line"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__transaction_accounting_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_transaction_accounting_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "name": "stg_netsuite2__transaction_accounting_lines_tmp", "alias": "stg_netsuite2__transaction_accounting_lines_tmp", "checksum": {"name": "sha256", "checksum": "91bfd0a5babb67c22979bdb03a16a185b90199fc905d8f55ec34516aa3674991"}, "tags": [], "refs": [], "sources": [["netsuite2", "transaction_accounting_line"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__transaction_accounting_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.9758122, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines_tmp\""}, "model.netsuite_source.stg_netsuite2__location_main_address_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location_main_address"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__location_main_address_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_location_main_address') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "name": "stg_netsuite2__location_main_address_tmp", "alias": "stg_netsuite2__location_main_address_tmp", "checksum": {"name": "sha256", "checksum": "360d4cd8b3a246007978c640ed7a423c49b628411bda7d8aab78f431f973d4be"}, "tags": [], "refs": [], "sources": [["netsuite2", "location_main_address"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__location_main_address_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.979288, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__location_main_address_tmp\""}, "model.netsuite_source.stg_netsuite2__locations_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.location"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__locations_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect * \nfrom {{ var('netsuite2_locations') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "name": "stg_netsuite2__locations_tmp", "alias": "stg_netsuite2__locations_tmp", "checksum": {"name": "sha256", "checksum": "f9747c40667070b7685c826bbaa541ec10a5dbcb5682fad9e65aa2b28b8b7e42"}, "tags": [], "refs": [], "sources": [["netsuite2", "location"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__locations_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.983399, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations_tmp\""}, "model.netsuite_source.stg_netsuite2__departments_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.department"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__departments_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_departments') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "name": "stg_netsuite2__departments_tmp", "alias": "stg_netsuite2__departments_tmp", "checksum": {"name": "sha256", "checksum": "d5a6479a4a567ab3f6c9f85f6a42fb752ab7889065c4f63f1ded657023ff54c9"}, "tags": [], "refs": [], "sources": [["netsuite2", "department"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__departments_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.986855, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments_tmp\""}, "model.netsuite_source.stg_netsuite2__classes_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.classification"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__classes_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_classes') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "name": "stg_netsuite2__classes_tmp", "alias": "stg_netsuite2__classes_tmp", "checksum": {"name": "sha256", "checksum": "c5d7c66aef27878ade36b031c9e26b523c76373ac106b0f7b618a8e76f3518a2"}, "tags": [], "refs": [], "sources": [["netsuite2", "classification"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__classes_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.990325, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes_tmp\""}, "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite2", "tmp", "stg_netsuite2__consolidated_exchange_rates_tmp"], "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == var('netsuite_data_model_override','netsuite2')) }}\n\nselect *\nfrom {{ var('netsuite2_consolidated_exchange_rates') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "original_file_path": "models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "name": "stg_netsuite2__consolidated_exchange_rates_tmp", "alias": "stg_netsuite2__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "8cfcb1761c48b4f9b640cc61023b4106f86122fd925bea98200d2453da892c36"}, "tags": [], "refs": [], "sources": [["netsuite2", "consolidated_exchange_rate"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite2/tmp/stg_netsuite2__consolidated_exchange_rates_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466639.993802, "compiled_code": "\n\nselect *\nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates_tmp\""}, "model.netsuite_source.stg_netsuite__transactions": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transactions_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__transactions_tmp", "model.netsuite_source.stg_netsuite__transactions_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transactions"], "unique_id": "model.netsuite_source.stg_netsuite__transactions", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__transactions_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__transactions_tmp')),\n staging_columns=get_transactions_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n status,\n trandate as transaction_date,\n currency_id,\n accounting_period_id,\n due_date as due_date_at,\n transaction_type,\n is_intercompany,\n is_advanced_intercompany,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transactions_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__transactions.sql", "original_file_path": "models/netsuite/stg_netsuite__transactions.sql", "name": "stg_netsuite__transactions", "alias": "stg_netsuite__transactions", "checksum": {"name": "sha256", "checksum": "229453298c19897d353712750c015e5fb7c80d41715a69a04bdb44c1d42dd50a"}, "tags": [], "refs": [["stg_netsuite__transactions_tmp"], ["stg_netsuite__transactions_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_date": {"name": "transaction_date", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date_at": {"name": "due_date_at", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_advanced_intercompany": {"name": "is_advanced_intercompany", "description": "Value indicating whether the transaction is an advanced intercompany journal entry (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transactions.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.369503, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n \n \n due_date\n \n as \n \n due_date\n \n, \n \n \n is_advanced_intercompany\n \n as \n \n is_advanced_intercompany\n \n, \n \n \n is_intercompany\n \n as \n \n is_intercompany\n \n, \n \n \n status\n \n as \n \n status\n \n, \n cast(null as TIMESTAMP) as \n \n trandate\n \n , \n \n \n transaction_id\n \n as \n \n transaction_id\n \n, \n \n \n transaction_type\n \n as \n \n transaction_type\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n status,\n trandate as transaction_date,\n currency_id,\n accounting_period_id,\n due_date as due_date_at,\n transaction_type,\n is_intercompany,\n is_advanced_intercompany,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your transactions_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\""}, "model.netsuite_source.stg_netsuite__customers": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_customers_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__customers_tmp", "model.netsuite_source.stg_netsuite__customers_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__customers"], "unique_id": "model.netsuite_source.stg_netsuite__customers", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__customers_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__customers_tmp')),\n staging_columns=get_customers_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n customer_id,\n companyname as company_name,\n customer_extid as customer_external_id,\n city,\n state,\n zipcode,\n country,\n date_first_order as date_first_order_at,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('customers_pass_through_columns') }}\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__customers.sql", "original_file_path": "models/netsuite/stg_netsuite__customers.sql", "name": "stg_netsuite__customers", "alias": "stg_netsuite__customers", "checksum": {"name": "sha256", "checksum": "c9e469c13b1608752f66936b6d5f93e6c21385726175cc422a3dcae92ac46025"}, "tags": [], "refs": [["stg_netsuite__customers_tmp"], ["stg_netsuite__customers_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_external_id": {"name": "customer_external_id", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order_at": {"name": "date_first_order_at", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__customers.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.359901, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n \n \n city\n \n as \n \n city\n \n, \n cast(null as TEXT) as \n \n companyname\n \n , \n \n \n country\n \n as \n \n country\n \n, \n cast(null as TEXT) as \n \n customer_extid\n \n , \n \n \n customer_id\n \n as \n \n customer_id\n \n, \n \n \n date_first_order\n \n as \n \n date_first_order\n \n, \n \n \n state\n \n as \n \n state\n \n, \n \n \n zipcode\n \n as \n \n zipcode\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n customer_id,\n companyname as company_name,\n customer_extid as customer_external_id,\n city,\n state,\n zipcode,\n country,\n date_first_order as date_first_order_at,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your customers_pass_through_columns variable into the staging model\n \n\n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\""}, "model.netsuite_source.stg_netsuite__accounting_books": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounting_books_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books_tmp", "model.netsuite_source.stg_netsuite__accounting_books_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_books"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_books", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounting_books_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounting_books_tmp')),\n staging_columns=get_accounting_books_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n accounting_book_id,\n is_primary,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounting_books.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_books.sql", "name": "stg_netsuite__accounting_books", "alias": "stg_netsuite__accounting_books", "checksum": {"name": "sha256", "checksum": "1979e4645a6245ff201816e275fd790f10d92570aa910990ef7ac5a145a904f7"}, "tags": [], "refs": [["stg_netsuite__accounting_books_tmp"], ["stg_netsuite__accounting_books_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_books.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.351897, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n accounting_book_extid\n \n , \n \n \n accounting_book_id\n \n as \n \n accounting_book_id\n \n, \n cast(null as TEXT) as \n \n accounting_book_name\n \n , \n cast(null as FLOAT) as \n \n base_book_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_created\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as FLOAT) as \n \n effective_period_id\n \n , \n cast(null as TEXT) as \n \n form_template_component_id\n \n , \n cast(null as FLOAT) as \n \n form_template_id\n \n , \n cast(null as TEXT) as \n \n is_adjustment_only\n \n , \n cast(null as TEXT) as \n \n is_arrangement_level_reclass\n \n , \n cast(null as TEXT) as \n \n is_consolidated\n \n , \n cast(null as TEXT) as \n \n is_contingent_revenue_handling\n \n , \n cast(null as TEXT) as \n \n is_include_child_subsidiaries\n \n , \n \n \n is_primary\n \n as \n \n is_primary\n \n, \n cast(null as TEXT) as \n \n is_two_step_revenue_allocation\n \n , \n cast(null as TEXT) as \n \n status\n \n , \n cast(null as TEXT) as \n \n unbilled_receivable_grouping\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n accounting_book_id,\n is_primary,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\""}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_consolidated_exchange_rates_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__consolidated_exchange_rates"], "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__consolidated_exchange_rates_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__consolidated_exchange_rates_tmp')),\n staging_columns=get_consolidated_exchange_rates_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n consolidated_exchange_rate_id,\n accounting_book_id,\n accounting_period_id,\n average_rate,\n current_rate,\n historical_rate,\n from_subsidiary_id,\n to_subsidiary_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('consolidated_exchange_rates_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__consolidated_exchange_rates.sql", "original_file_path": "models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "name": "stg_netsuite__consolidated_exchange_rates", "alias": "stg_netsuite__consolidated_exchange_rates", "checksum": {"name": "sha256", "checksum": "6a4909b08f327411a1947017c8f33d333e541e91c578c6c180dd754ebef85b9c"}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates_tmp"], ["stg_netsuite__consolidated_exchange_rates_tmp"]], "sources": [], "metrics": [], "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"consolidated_exchange_rate_id": {"name": "consolidated_exchange_rate_id", "description": "The unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_book_id": {"name": "accounting_book_id", "description": "The accounting book the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__consolidated_exchange_rates.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.357582, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n accounting_book_id\n \n as \n \n accounting_book_id\n \n, \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n cast(null as FLOAT) as \n \n average_budget_rate\n \n , \n \n \n average_rate\n \n as \n \n average_rate\n \n, \n \n \n consolidated_exchange_rate_id\n \n as \n \n consolidated_exchange_rate_id\n \n, \n cast(null as FLOAT) as \n \n current_budget_rate\n \n , \n \n \n current_rate\n \n as \n \n current_rate\n \n, \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n \n \n from_subsidiary_id\n \n as \n \n from_subsidiary_id\n \n, \n cast(null as FLOAT) as \n \n historical_budget_rate\n \n , \n \n \n historical_rate\n \n as \n \n historical_rate\n \n, \n \n \n to_subsidiary_id\n \n as \n \n to_subsidiary_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n consolidated_exchange_rate_id,\n accounting_book_id,\n accounting_period_id,\n average_rate,\n current_rate,\n historical_rate,\n from_subsidiary_id,\n to_subsidiary_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your consolidated_exchange_rates_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\""}, "model.netsuite_source.stg_netsuite__transaction_lines": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_transaction_lines_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp", "model.netsuite_source.stg_netsuite__transaction_lines_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__transaction_lines"], "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__transaction_lines_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__transaction_lines_tmp')),\n staging_columns=get_transaction_lines_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n transaction_line_id,\n subsidiary_id,\n account_id,\n company_id,\n item_id,\n amount,\n non_posting_line,\n class_id,\n location_id,\n department_id,\n memo\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('transaction_lines_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__transaction_lines.sql", "original_file_path": "models/netsuite/stg_netsuite__transaction_lines.sql", "name": "stg_netsuite__transaction_lines", "alias": "stg_netsuite__transaction_lines", "checksum": {"name": "sha256", "checksum": "439d9f1cc5d341305a11759ce2f4be9e154524b992103409aef648f97c471b80"}, "tags": [], "refs": [["stg_netsuite__transaction_lines_tmp"], ["stg_netsuite__transaction_lines_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The subsidiary id of the subsidiary which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The item id of the item which is included in the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "non_posting_line": {"name": "non_posting_line", "description": "Value indicating whether the transaction line is a non posting line (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The class id of the class which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The location id of the location which the transaction line took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__transaction_lines.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.3678699, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n account_id\n \n as \n \n account_id\n \n, \n \n \n amount\n \n as \n \n amount\n \n, \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n company_id\n \n as \n \n company_id\n \n, \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n item_id\n \n as \n \n item_id\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n memo\n \n as \n \n memo\n \n, \n \n \n non_posting_line\n \n as \n \n non_posting_line\n \n, \n \n \n subsidiary_id\n \n as \n \n subsidiary_id\n \n, \n \n \n transaction_id\n \n as \n \n transaction_id\n \n, \n \n \n transaction_line_id\n \n as \n \n transaction_line_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n transaction_id,\n transaction_line_id,\n subsidiary_id,\n account_id,\n company_id,\n item_id,\n amount,\n non_posting_line,\n class_id,\n location_id,\n department_id,\n memo\n\n --The below macro adds the fields defined within your transaction_lines_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\""}, "model.netsuite_source.stg_netsuite__income_accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_income_accounts_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts_tmp", "model.netsuite_source.stg_netsuite__income_accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__income_accounts"], "unique_id": "model.netsuite_source.stg_netsuite__income_accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__income_accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__income_accounts_tmp')),\n staging_columns=get_income_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n income_account_id,\n name, \n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__income_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__income_accounts.sql", "name": "stg_netsuite__income_accounts", "alias": "stg_netsuite__income_accounts", "checksum": {"name": "sha256", "checksum": "299fb45e200223bd290f01314ad47a4619932d39f3b04fe929a82c5ee8a0fe2b"}, "tags": [], "refs": [["stg_netsuite__income_accounts_tmp"], ["stg_netsuite__income_accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all income accounts.", "columns": {"income_account_id": {"name": "income_account_id", "description": "The unique identifier of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__income_accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.362804, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n account_number\n \n as \n \n account_number\n \n, \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as FLOAT) as \n \n current_balance\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n desription\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n income_account_extid\n \n , \n \n \n income_account_id\n \n as \n \n income_account_id\n \n, \n cast(null as TEXT) as \n \n is_including_child_subs\n \n , \n cast(null as TEXT) as \n \n is_summary\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n income_account_id,\n name, \n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\""}, "model.netsuite_source.stg_netsuite__expense_accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_expense_accounts_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp", "model.netsuite_source.stg_netsuite__expense_accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__expense_accounts"], "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__expense_accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__expense_accounts_tmp')),\n staging_columns=get_expense_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n expense_account_id,\n name,\n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__expense_accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__expense_accounts.sql", "name": "stg_netsuite__expense_accounts", "alias": "stg_netsuite__expense_accounts", "checksum": {"name": "sha256", "checksum": "f7c1276dddff15a68a1de673f503dc127efb4a2932756ea28c09c231aaf52b2c"}, "tags": [], "refs": [["stg_netsuite__expense_accounts_tmp"], ["stg_netsuite__expense_accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all expense accounts.", "columns": {"expense_account_id": {"name": "expense_account_id", "description": "The unique identifier of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__expense_accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.361847, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n account_number\n \n as \n \n account_number\n \n, \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as FLOAT) as \n \n current_balance\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n desription\n \n , \n cast(null as TEXT) as \n \n expense_account_extid\n \n , \n \n \n expense_account_id\n \n as \n \n expense_account_id\n \n, \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n is_including_child_subs\n \n , \n cast(null as TEXT) as \n \n is_summary\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n expense_account_id,\n name,\n parent_id,\n account_number,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\""}, "model.netsuite_source.stg_netsuite__vendors": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendors_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__vendors_tmp", "model.netsuite_source.stg_netsuite__vendors_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendors"], "unique_id": "model.netsuite_source.stg_netsuite__vendors", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__vendors_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__vendors_tmp')),\n staging_columns=get_vendors_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n vendor_id,\n companyname as company_name,\n create_date as create_date_at,\n vendor_type_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your vendors_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('vendors_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__vendors.sql", "original_file_path": "models/netsuite/stg_netsuite__vendors.sql", "name": "stg_netsuite__vendors", "alias": "stg_netsuite__vendors", "checksum": {"name": "sha256", "checksum": "c588235e317970753f51be3cb41b70da9823d2476a989705e6f92aab38dd850d"}, "tags": [], "refs": [["stg_netsuite__vendors_tmp"], ["stg_netsuite__vendors_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_name": {"name": "company_name", "description": "The vendor's company name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "create_date_at": {"name": "create_date_at", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendors.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.371121, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n account_owner\n \n , \n cast(null as TEXT) as \n \n accountnumber\n \n , \n cast(null as TEXT) as \n \n accounts_email\n \n , \n cast(null as FLOAT) as \n \n annual_revenue\n \n , \n cast(null as TEXT) as \n \n auto_renewals\n \n , \n cast(null as TEXT) as \n \n auto_send_statements\n \n , \n cast(null as TEXT) as \n \n billaddress\n \n , \n cast(null as FLOAT) as \n \n billing_class_id\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n comments\n \n , \n cast(null as TEXT) as \n \n companyname\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n \n \n create_date\n \n as \n \n create_date\n \n, \n cast(null as FLOAT) as \n \n creditlimit\n \n , \n cast(null as FLOAT) as \n \n currency_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n dic\n \n , \n cast(null as TEXT) as \n \n email\n \n , \n cast(null as TEXT) as \n \n email_bill_payment_vouchers\n \n , \n cast(null as TEXT) as \n \n email_cash_sales\n \n , \n cast(null as TEXT) as \n \n email_credit_notes\n \n , \n cast(null as TEXT) as \n \n email_invoices\n \n , \n cast(null as TEXT) as \n \n email_item_fulfilments\n \n , \n cast(null as TEXT) as \n \n email_purchase_orders\n \n , \n cast(null as TEXT) as \n \n email_quotes\n \n , \n cast(null as TEXT) as \n \n email_sales_orders\n \n , \n cast(null as TEXT) as \n \n email_statements\n \n , \n cast(null as TEXT) as \n \n employee_number\n \n , \n cast(null as TEXT) as \n \n exemption_certificate_no\n \n , \n cast(null as FLOAT) as \n \n expense_account_id\n \n , \n cast(null as TEXT) as \n \n fax\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n home_phone\n \n , \n cast(null as TEXT) as \n \n hris_id\n \n , \n cast(null as TEXT) as \n \n ico\n \n , \n cast(null as TEXT) as \n \n id_number_in_the_country_of_r\n \n , \n cast(null as FLOAT) as \n \n id_type_in_the_country_of_r_id\n \n , \n cast(null as FLOAT) as \n \n in_transit_balance\n \n , \n cast(null as TEXT) as \n \n incoterm\n \n , \n cast(null as FLOAT) as \n \n industry_id\n \n , \n cast(null as TEXT) as \n \n invoice_via_procurement_syste\n \n , \n cast(null as TEXT) as \n \n invoicing_details\n \n , \n cast(null as TEXT) as \n \n is1099eligible\n \n , \n cast(null as TEXT) as \n \n is_partner\n \n , \n cast(null as TEXT) as \n \n is_person\n \n , \n cast(null as TEXT) as \n \n isemailhtml\n \n , \n cast(null as TEXT) as \n \n isemailpdf\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as FLOAT) as \n \n labor_cost\n \n , \n cast(null as TIMESTAMP) as \n \n last_modified_date\n \n , \n cast(null as TIMESTAMP) as \n \n last_sales_activity\n \n , \n cast(null as TEXT) as \n \n line1\n \n , \n cast(null as TEXT) as \n \n line2\n \n , \n cast(null as TEXT) as \n \n line3\n \n , \n cast(null as TEXT) as \n \n loginaccess\n \n , \n cast(null as TEXT) as \n \n lsa_link\n \n , \n cast(null as TEXT) as \n \n lsa_link_name\n \n , \n cast(null as TEXT) as \n \n mobile_phone\n \n , \n cast(null as TIMESTAMP) as \n \n msa_effective_date\n \n , \n cast(null as TEXT) as \n \n name\n \n , \n cast(null as FLOAT) as \n \n no__of_employees\n \n , \n cast(null as FLOAT) as \n \n openbalance\n \n , \n cast(null as FLOAT) as \n \n openbalance_foreign\n \n , \n cast(null as FLOAT) as \n \n payables_account_id\n \n , \n cast(null as FLOAT) as \n \n payment_terms_id\n \n , \n cast(null as TEXT) as \n \n phone\n \n , \n cast(null as FLOAT) as \n \n prepayment_balance\n \n , \n cast(null as TEXT) as \n \n printoncheckas\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as TEXT) as \n \n purchases_email\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as FLOAT) as \n \n represents_subsidiary_id\n \n , \n cast(null as TEXT) as \n \n restrict_access_to_expensify\n \n , \n cast(null as TEXT) as \n \n salesforce_id\n \n , \n cast(null as TEXT) as \n \n shipaddress\n \n , \n cast(null as TEXT) as \n \n shipping_email\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as FLOAT) as \n \n subsidiary\n \n , \n cast(null as TEXT) as \n \n tax_contact_first_name\n \n , \n cast(null as FLOAT) as \n \n tax_contact_id\n \n , \n cast(null as TEXT) as \n \n tax_contact_last_name\n \n , \n cast(null as TEXT) as \n \n tax_contact_middle_name\n \n , \n cast(null as TEXT) as \n \n tax_number\n \n , \n cast(null as TEXT) as \n \n taxidnum\n \n , \n cast(null as FLOAT) as \n \n time_approver_id\n \n , \n cast(null as TEXT) as \n \n transactions_need_approval\n \n , \n cast(null as TEXT) as \n \n uen\n \n , \n cast(null as FLOAT) as \n \n unbilled_orders\n \n , \n cast(null as FLOAT) as \n \n unbilled_orders_foreign\n \n , \n cast(null as TEXT) as \n \n url\n \n , \n cast(null as TEXT) as \n \n vat_registration_no\n \n , \n cast(null as TEXT) as \n \n vendor_extid\n \n , \n \n \n vendor_id\n \n as \n \n vendor_id\n \n, \n \n \n vendor_type_id\n \n as \n \n vendor_type_id\n \n, \n cast(null as TEXT) as \n \n zipcode\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n vendor_id,\n companyname as company_name,\n create_date as create_date_at,\n vendor_type_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your vendors_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\""}, "model.netsuite_source.stg_netsuite__classes": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_classes_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__classes_tmp", "model.netsuite_source.stg_netsuite__classes_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__classes"], "unique_id": "model.netsuite_source.stg_netsuite__classes", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__classes_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__classes_tmp')),\n staging_columns=get_classes_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n class_id,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('classes_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__classes.sql", "original_file_path": "models/netsuite/stg_netsuite__classes.sql", "name": "stg_netsuite__classes", "alias": "stg_netsuite__classes", "checksum": {"name": "sha256", "checksum": "edf56a2971642640474b042c3ec91efc7aa294b9fb3861a1bd747b61af23205b"}, "tags": [], "refs": [["stg_netsuite__classes_tmp"], ["stg_netsuite__classes_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all classes set up in Netsuite.", "columns": {"class_id": {"name": "class_id", "description": "The unique identifier of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__classes.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.356135, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n class_id\n \n as \n \n class_id\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n class_id,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your classes_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\""}, "model.netsuite_source.stg_netsuite__subsidiaries": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_subsidiaries_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp", "model.netsuite_source.stg_netsuite__subsidiaries_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__subsidiaries"], "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__subsidiaries_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__subsidiaries_tmp')),\n staging_columns=get_subsidiaries_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n subsidiary_id,\n fiscal_calendar_id,\n full_name,\n name,\n parent_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('subsidiaries_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__subsidiaries.sql", "original_file_path": "models/netsuite/stg_netsuite__subsidiaries.sql", "name": "stg_netsuite__subsidiaries", "alias": "stg_netsuite__subsidiaries", "checksum": {"name": "sha256", "checksum": "f6477b555a1708adf2e9853d11edeba88e1fe42f4638d1f377e80f7a5523a622"}, "tags": [], "refs": [["stg_netsuite__subsidiaries_tmp"], ["stg_netsuite__subsidiaries_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id associated with the fiscal calendar the subsidiary is on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__subsidiaries.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.366028, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n address\n \n , \n cast(null as TEXT) as \n \n address1\n \n , \n cast(null as TEXT) as \n \n address2\n \n , \n cast(null as FLOAT) as \n \n base_currency_id\n \n , \n cast(null as TEXT) as \n \n branch_id\n \n , \n cast(null as TEXT) as \n \n brn\n \n , \n cast(null as TEXT) as \n \n city\n \n , \n cast(null as TEXT) as \n \n country\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n edition\n \n , \n cast(null as TEXT) as \n \n federal_number\n \n , \n \n \n fiscal_calendar_id\n \n as \n \n fiscal_calendar_id\n \n, \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as TEXT) as \n \n is_elimination\n \n , \n cast(null as TEXT) as \n \n is_moss\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n isinactive_bool\n \n , \n cast(null as TEXT) as \n \n legal_name\n \n , \n cast(null as FLOAT) as \n \n moss_nexus_id\n \n , \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as TEXT) as \n \n return_address\n \n , \n cast(null as TEXT) as \n \n return_address1\n \n , \n cast(null as TEXT) as \n \n return_address2\n \n , \n cast(null as TEXT) as \n \n return_city\n \n , \n cast(null as TEXT) as \n \n return_country\n \n , \n cast(null as TEXT) as \n \n return_state\n \n , \n cast(null as TEXT) as \n \n return_zipcode\n \n , \n cast(null as TEXT) as \n \n shipping_address\n \n , \n cast(null as TEXT) as \n \n shipping_address1\n \n , \n cast(null as TEXT) as \n \n shipping_address2\n \n , \n cast(null as TEXT) as \n \n shipping_city\n \n , \n cast(null as TEXT) as \n \n shipping_country\n \n , \n cast(null as TEXT) as \n \n shipping_state\n \n , \n cast(null as TEXT) as \n \n shipping_zipcode\n \n , \n cast(null as TEXT) as \n \n state\n \n , \n cast(null as TEXT) as \n \n state_tax_number\n \n , \n cast(null as FLOAT) as \n \n subnav__searchable_subsidiary\n \n , \n cast(null as TEXT) as \n \n subsidiary_extid\n \n , \n \n \n subsidiary_id\n \n as \n \n subsidiary_id\n \n, \n cast(null as FLOAT) as \n \n taxonomy_reference_id\n \n , \n cast(null as TEXT) as \n \n tran_num_prefix\n \n , \n cast(null as TEXT) as \n \n uen\n \n , \n cast(null as TEXT) as \n \n url\n \n , \n cast(null as TEXT) as \n \n zipcode\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n subsidiary_id,\n fiscal_calendar_id,\n full_name,\n name,\n parent_id,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your subsidiaries_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\""}, "model.netsuite_source.stg_netsuite__accounts": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounts_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounts_tmp", "model.netsuite_source.stg_netsuite__accounts_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounts"], "unique_id": "model.netsuite_source.stg_netsuite__accounts", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounts_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounts_tmp')),\n staging_columns=get_accounts_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n account_id,\n parent_id,\n name,\n type_name,\n accountnumber as account_number,\n general_rate_type,\n is_leftside,\n is_balancesheet,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('accounts_pass_through_columns') }}\n \n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounts.sql", "original_file_path": "models/netsuite/stg_netsuite__accounts.sql", "name": "stg_netsuite__accounts", "alias": "stg_netsuite__accounts", "checksum": {"name": "sha256", "checksum": "510d294af59df7ffa89fbfad25c7b865acc90b656833abb3aacf861889f170d1"}, "tags": [], "refs": [["stg_netsuite__accounts_tmp"], ["stg_netsuite__accounts_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounts set up in Netsuite.", "columns": {"account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the type of the account (ie. Bank, Equity, Income, Expense).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounts.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.3554041, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n account_id\n \n as \n \n account_id\n \n, \n cast(null as TEXT) as \n \n accountnumber\n \n , \n \n \n general_rate_type\n \n as \n \n general_rate_type\n \n, \n \n \n is_balancesheet\n \n as \n \n is_balancesheet\n \n, \n \n \n is_leftside\n \n as \n \n is_leftside\n \n, \n \n \n name\n \n as \n \n name\n \n, \n \n \n parent_id\n \n as \n \n parent_id\n \n, \n \n \n type_name\n \n as \n \n type_name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n account_id,\n parent_id,\n name,\n type_name,\n accountnumber as account_number,\n general_rate_type,\n is_leftside,\n is_balancesheet,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your accounts_pass_through_columns variable into the staging model\n \n\n\n\n\n \n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\""}, "model.netsuite_source.stg_netsuite__items": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_items_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__items_tmp", "model.netsuite_source.stg_netsuite__items_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__items"], "unique_id": "model.netsuite_source.stg_netsuite__items", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__items_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__items_tmp')),\n staging_columns=get_items_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n item_id,\n name,\n type_name,\n salesdescription as sales_description,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your items_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('items_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__items.sql", "original_file_path": "models/netsuite/stg_netsuite__items.sql", "name": "stg_netsuite__items", "alias": "stg_netsuite__items", "checksum": {"name": "sha256", "checksum": "fba43c296243f470c88afcb940b71f6808f5ba3f6f9e00d086463b14d4e79e73"}, "tags": [], "refs": [["stg_netsuite__items_tmp"], ["stg_netsuite__items_tmp"]], "sources": [], "metrics": [], "description": "Table detailing information about the items created in Netsuite.", "columns": {"item_id": {"name": "item_id", "description": "The unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "sales_description": {"name": "sales_description", "description": "The items sales description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__items.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.363821, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n allow_drop_ship\n \n , \n cast(null as FLOAT) as \n \n alt_demand_source_item_id\n \n , \n cast(null as FLOAT) as \n \n asset_account_id\n \n , \n cast(null as FLOAT) as \n \n atp_lead_time\n \n , \n cast(null as TEXT) as \n \n atp_method\n \n , \n cast(null as TEXT) as \n \n available_to_partners\n \n , \n cast(null as TEXT) as \n \n avatax_taxcode\n \n , \n cast(null as FLOAT) as \n \n averagecost\n \n , \n cast(null as FLOAT) as \n \n backward_consumption_days\n \n , \n cast(null as TEXT) as \n \n build_sub_assemblies\n \n , \n cast(null as FLOAT) as \n \n class_id\n \n , \n cast(null as FLOAT) as \n \n code_of_supply_id\n \n , \n cast(null as TEXT) as \n \n commodity_code\n \n , \n cast(null as FLOAT) as \n \n consumption_unit_id\n \n , \n cast(null as FLOAT) as \n \n cost_0\n \n , \n cast(null as TEXT) as \n \n cost_category\n \n , \n cast(null as TEXT) as \n \n cost_estimate_type\n \n , \n cast(null as TEXT) as \n \n costing_method\n \n , \n cast(null as TEXT) as \n \n country_of_manufacture\n \n , \n cast(null as TEXT) as \n \n create_plan_on_event_type\n \n , \n cast(null as TIMESTAMP) as \n \n created\n \n , \n cast(null as FLOAT) as \n \n current_on_order_count\n \n , \n cast(null as FLOAT) as \n \n custreturn_variance_account_id\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TIMESTAMP) as \n \n date_of_last_transaction\n \n , \n cast(null as FLOAT) as \n \n default_return_cost\n \n , \n cast(null as FLOAT) as \n \n deferred_expense_account_id\n \n , \n cast(null as FLOAT) as \n \n deferred_revenue_account_id\n \n , \n cast(null as TEXT) as \n \n demand_source\n \n , \n cast(null as FLOAT) as \n \n demand_time_fence\n \n , \n cast(null as FLOAT) as \n \n department_id\n \n , \n cast(null as TEXT) as \n \n deposit\n \n , \n cast(null as TEXT) as \n \n displayname\n \n , \n cast(null as TEXT) as \n \n distribution_category\n \n , \n cast(null as TEXT) as \n \n distribution_network\n \n , \n cast(null as FLOAT) as \n \n dropship_expense_account_id\n \n , \n cast(null as TEXT) as \n \n effective_bom_control_type\n \n , \n cast(null as FLOAT) as \n \n expense_account_id\n \n , \n cast(null as TEXT) as \n \n featureddescription\n \n , \n cast(null as TEXT) as \n \n featureditem\n \n , \n cast(null as FLOAT) as \n \n fixed_lot_size\n \n , \n cast(null as FLOAT) as \n \n forward_consumption_days\n \n , \n cast(null as TEXT) as \n \n fraud_risk\n \n , \n cast(null as TEXT) as \n \n full_name\n \n , \n cast(null as FLOAT) as \n \n fx_adjustment_account_id\n \n , \n cast(null as FLOAT) as \n \n gain_loss_account_id\n \n , \n cast(null as FLOAT) as \n \n handling_cost\n \n , \n cast(null as TEXT) as \n \n hazmat\n \n , \n cast(null as TEXT) as \n \n hazmat_hazard_class\n \n , \n cast(null as TEXT) as \n \n hazmat_id\n \n , \n cast(null as TEXT) as \n \n hazmat_item_units\n \n , \n cast(null as FLOAT) as \n \n hazmat_item_units_qty\n \n , \n cast(null as TEXT) as \n \n hazmat_packing_group\n \n , \n cast(null as TEXT) as \n \n hazmat_shipping_name\n \n , \n cast(null as TEXT) as \n \n include_child_subsidiaries\n \n , \n cast(null as FLOAT) as \n \n income_account_id\n \n , \n cast(null as FLOAT) as \n \n interco_expense_account_id\n \n , \n cast(null as FLOAT) as \n \n interco_income_account_id\n \n , \n cast(null as FLOAT) as \n \n invt_count_classification\n \n , \n cast(null as FLOAT) as \n \n invt_count_interval\n \n , \n cast(null as TEXT) as \n \n is_cont_rev_handling\n \n , \n cast(null as TEXT) as \n \n is_enforce_min_qty_internally\n \n , \n cast(null as TEXT) as \n \n is_hold_rev_rec\n \n , \n cast(null as TEXT) as \n \n is_moss\n \n , \n cast(null as TEXT) as \n \n is_phantom\n \n , \n cast(null as TEXT) as \n \n is_special_order_item\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n isonline\n \n , \n cast(null as TEXT) as \n \n istaxable\n \n , \n cast(null as FLOAT) as \n \n item_defined_cost\n \n , \n cast(null as TEXT) as \n \n item_extid\n \n , \n \n \n item_id\n \n as \n \n item_id\n \n, \n cast(null as FLOAT) as \n \n item_image\n \n , \n cast(null as TEXT) as \n \n item_revenue_category\n \n , \n cast(null as FLOAT) as \n \n item_term_id\n \n , \n cast(null as TIMESTAMP) as \n \n last_cogs_correction\n \n , \n cast(null as TIMESTAMP) as \n \n last_invt_count_date\n \n , \n cast(null as FLOAT) as \n \n last_purchase_price\n \n , \n cast(null as FLOAT) as \n \n location_id\n \n , \n cast(null as TEXT) as \n \n lot_numbered_item\n \n , \n cast(null as TEXT) as \n \n lot_sizing_method\n \n , \n cast(null as TEXT) as \n \n manufacturer\n \n , \n cast(null as TEXT) as \n \n manufacturing_charge_item\n \n , \n cast(null as TEXT) as \n \n match_bill_to_receipt\n \n , \n cast(null as TEXT) as \n \n matrix_type\n \n , \n cast(null as FLOAT) as \n \n maximum_quantity\n \n , \n cast(null as FLOAT) as \n \n minimum_quantity\n \n , \n cast(null as TIMESTAMP) as \n \n modified\n \n , \n cast(null as TEXT) as \n \n mpn\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n nature_of_transaction_codes_id\n \n , \n cast(null as TIMESTAMP) as \n \n next_invt_count_date\n \n , \n cast(null as FLOAT) as \n \n ng_asset_type_id\n \n , \n cast(null as FLOAT) as \n \n ns_lead_time\n \n , \n cast(null as TEXT) as \n \n offersupport\n \n , \n cast(null as TEXT) as \n \n onspecial\n \n , \n cast(null as TEXT) as \n \n overhead_type\n \n , \n cast(null as FLOAT) as \n \n parent_id\n \n , \n cast(null as FLOAT) as \n \n payment_method_id\n \n , \n cast(null as FLOAT) as \n \n periodic_lot_size_days\n \n , \n cast(null as TEXT) as \n \n periodic_lot_size_type\n \n , \n cast(null as FLOAT) as \n \n pref_purchase_tax_id\n \n , \n cast(null as FLOAT) as \n \n pref_sale_tax_id\n \n , \n cast(null as FLOAT) as \n \n pref_stock_level\n \n , \n cast(null as TEXT) as \n \n prices_include_tax\n \n , \n cast(null as FLOAT) as \n \n pricing_group_id\n \n , \n cast(null as TEXT) as \n \n print_sub_items\n \n , \n cast(null as FLOAT) as \n \n prod_price_var_account_id\n \n , \n cast(null as FLOAT) as \n \n prod_qty_var_account_id\n \n , \n cast(null as TEXT) as \n \n prompt_payment_discount_item\n \n , \n cast(null as FLOAT) as \n \n purchase_price_var_account_id\n \n , \n cast(null as FLOAT) as \n \n purchase_unit_id\n \n , \n cast(null as TEXT) as \n \n purchasedescription\n \n , \n cast(null as FLOAT) as \n \n purchaseorderamount\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantity\n \n , \n cast(null as FLOAT) as \n \n purchaseorderquantitydiff\n \n , \n cast(null as FLOAT) as \n \n quantityavailable\n \n , \n cast(null as FLOAT) as \n \n quantitybackordered\n \n , \n cast(null as FLOAT) as \n \n quantityonhand\n \n , \n cast(null as FLOAT) as \n \n receiptamount\n \n , \n cast(null as FLOAT) as \n \n receiptquantity\n \n , \n cast(null as FLOAT) as \n \n receiptquantitydiff\n \n , \n cast(null as FLOAT) as \n \n reorder_multiple\n \n , \n cast(null as FLOAT) as \n \n reorderpoint\n \n , \n cast(null as TEXT) as \n \n replenishment_method\n \n , \n cast(null as TEXT) as \n \n resalable\n \n , \n cast(null as FLOAT) as \n \n reschedule_in_days\n \n , \n cast(null as FLOAT) as \n \n reschedule_out_days\n \n , \n cast(null as FLOAT) as \n \n rev_rec_forecast_rule_id\n \n , \n cast(null as FLOAT) as \n \n rev_rec_rule_id\n \n , \n cast(null as TEXT) as \n \n revenue_allocation_group\n \n , \n cast(null as TEXT) as \n \n round_up_as_component\n \n , \n cast(null as FLOAT) as \n \n safety_stock_days\n \n , \n cast(null as FLOAT) as \n \n safety_stock_level\n \n , \n cast(null as FLOAT) as \n \n sale_unit_id\n \n , \n cast(null as TEXT) as \n \n salesdescription\n \n , \n cast(null as TEXT) as \n \n salesforce_id\n \n , \n cast(null as TEXT) as \n \n salesprice\n \n , \n cast(null as FLOAT) as \n \n scrap_account_id\n \n , \n cast(null as TEXT) as \n \n serialized_item\n \n , \n cast(null as FLOAT) as \n \n shippingcost\n \n , \n cast(null as TEXT) as \n \n special_work_order_item\n \n , \n cast(null as TEXT) as \n \n specialsdescription\n \n , \n cast(null as FLOAT) as \n \n stock_unit_id\n \n , \n cast(null as TEXT) as \n \n storedescription\n \n , \n cast(null as TEXT) as \n \n storedetaileddescription\n \n , \n cast(null as TEXT) as \n \n storedisplayname\n \n , \n cast(null as TEXT) as \n \n subtype\n \n , \n cast(null as TEXT) as \n \n supplementary_unit__abberviat\n \n , \n cast(null as FLOAT) as \n \n supplementary_unit_id\n \n , \n cast(null as FLOAT) as \n \n supply_time_fence\n \n , \n cast(null as TEXT) as \n \n supply_type\n \n , \n cast(null as FLOAT) as \n \n tax_item_id\n \n , \n cast(null as FLOAT) as \n \n totalvalue\n \n , \n cast(null as FLOAT) as \n \n transferprice\n \n , \n \n \n type_name\n \n as \n \n type_name\n \n, \n cast(null as FLOAT) as \n \n type_of_goods_id\n \n , \n cast(null as TEXT) as \n \n udf1\n \n , \n cast(null as TEXT) as \n \n udf2\n \n , \n cast(null as TEXT) as \n \n un_number\n \n , \n cast(null as FLOAT) as \n \n unbuild_variance_account_id\n \n , \n cast(null as FLOAT) as \n \n units_type_id\n \n , \n cast(null as TEXT) as \n \n upc_code\n \n , \n cast(null as TEXT) as \n \n use_component_yield\n \n , \n cast(null as FLOAT) as \n \n vendor_id\n \n , \n cast(null as TEXT) as \n \n vendorname\n \n , \n cast(null as FLOAT) as \n \n vendreturn_variance_account_id\n \n , \n cast(null as TEXT) as \n \n vsoe_deferral\n \n , \n cast(null as TEXT) as \n \n vsoe_delivered\n \n , \n cast(null as TEXT) as \n \n vsoe_discount\n \n , \n cast(null as FLOAT) as \n \n vsoe_price\n \n , \n cast(null as FLOAT) as \n \n weight\n \n , \n cast(null as FLOAT) as \n \n weight_in_user_defined_unit\n \n , \n cast(null as FLOAT) as \n \n weight_unit_index\n \n , \n cast(null as FLOAT) as \n \n wip_account_id\n \n , \n cast(null as FLOAT) as \n \n wip_cost_variance_account_id\n \n , \n cast(null as FLOAT) as \n \n work_order_lead_time\n \n \n\n\n \n from base\n),\n\nfinal as (\n \n select \n item_id,\n name,\n type_name,\n salesdescription as sales_description,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your items_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\""}, "model.netsuite_source.stg_netsuite__locations": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_locations_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__locations_tmp", "model.netsuite_source.stg_netsuite__locations_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__locations"], "unique_id": "model.netsuite_source.stg_netsuite__locations", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__locations_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__locations_tmp')),\n staging_columns=get_locations_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n location_id,\n name,\n full_name,\n city,\n country,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('locations_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__locations.sql", "original_file_path": "models/netsuite/stg_netsuite__locations.sql", "name": "stg_netsuite__locations", "alias": "stg_netsuite__locations", "checksum": {"name": "sha256", "checksum": "0e5129658fedf16df7b26cf25ad2351302ce70723e60b4b4b9d12a1e252c9254"}, "tags": [], "refs": [["stg_netsuite__locations_tmp"], ["stg_netsuite__locations_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"location_id": {"name": "location_id", "description": "The unique identifier of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__locations.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.3648782, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n city\n \n as \n \n city\n \n, \n \n \n country\n \n as \n \n country\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n location_id\n \n as \n \n location_id\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n location_id,\n name,\n full_name,\n city,\n country,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your locations_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\""}, "model.netsuite_source.stg_netsuite__departments": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_departments_columns", "macro.fivetran_utils.fill_staging_columns", "macro.fivetran_utils.fill_pass_through_columns"], "nodes": ["model.netsuite_source.stg_netsuite__departments_tmp", "model.netsuite_source.stg_netsuite__departments_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__departments"], "unique_id": "model.netsuite_source.stg_netsuite__departments", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__departments_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__departments_tmp')),\n staging_columns=get_departments_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n department_id,\n name,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n {{ fivetran_utils.fill_pass_through_columns('departments_pass_through_columns') }}\n\n from fields\n)\n\nselect * \nfrom final", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__departments.sql", "original_file_path": "models/netsuite/stg_netsuite__departments.sql", "name": "stg_netsuite__departments", "alias": "stg_netsuite__departments", "checksum": {"name": "sha256", "checksum": "48851e18603bddeadb3b3992c83d3c779dada4b760fba2a2da68fe2bc9b431db"}, "tags": [], "refs": [["stg_netsuite__departments_tmp"], ["stg_netsuite__departments_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all departments set up in Netsuite.", "columns": {"department_id": {"name": "department_id", "description": "The unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__departments.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.360789, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n \n \n department_id\n \n as \n \n department_id\n \n, \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n name\n \n as \n \n name\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n department_id,\n name,\n full_name,\n _fivetran_deleted\n\n --The below macro adds the fields defined within your departments_pass_through_columns variable into the staging model\n \n\n\n\n\n\n from fields\n)\n\nselect * \nfrom final", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\""}, "model.netsuite_source.stg_netsuite__currencies": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_currencies_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__currencies_tmp", "model.netsuite_source.stg_netsuite__currencies_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__currencies"], "unique_id": "model.netsuite_source.stg_netsuite__currencies", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__currencies_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__currencies_tmp')),\n staging_columns=get_currencies_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n currency_id,\n name,\n symbol,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__currencies.sql", "original_file_path": "models/netsuite/stg_netsuite__currencies.sql", "name": "stg_netsuite__currencies", "alias": "stg_netsuite__currencies", "checksum": {"name": "sha256", "checksum": "64b53f34b5bf46bcf43e5753e5eb67143e96eaffad215604e424f4769791e793"}, "tags": [], "refs": [["stg_netsuite__currencies_tmp"], ["stg_netsuite__currencies_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all currency information.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__currencies.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.3584409, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TEXT) as \n \n currency_extid\n \n , \n \n \n currency_id\n \n as \n \n currency_id\n \n, \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n cast(null as TEXT) as \n \n is_inactive\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n precision_0\n \n , \n \n \n symbol\n \n as \n \n symbol\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n currency_id,\n name,\n symbol,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\""}, "model.netsuite_source.stg_netsuite__vendor_types": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_vendor_types_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types_tmp", "model.netsuite_source.stg_netsuite__vendor_types_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__vendor_types"], "unique_id": "model.netsuite_source.stg_netsuite__vendor_types", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__vendor_types_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__vendor_types_tmp')),\n staging_columns=get_vendor_types_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n vendor_type_id,\n name,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__vendor_types.sql", "original_file_path": "models/netsuite/stg_netsuite__vendor_types.sql", "name": "stg_netsuite__vendor_types", "alias": "stg_netsuite__vendor_types", "checksum": {"name": "sha256", "checksum": "6d96a09d56ad4edb4011a0ce09eee13c465195ce03bec4902450ab57e9d2f74d"}, "tags": [], "refs": [["stg_netsuite__vendor_types_tmp"], ["stg_netsuite__vendor_types_tmp"]], "sources": [], "metrics": [], "description": "A table detailing all the various types of vendors.", "columns": {"vendor_type_id": {"name": "vendor_type_id", "description": "The unique identifier of the vendor type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__vendor_types.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.370136, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n \n \n _fivetran_deleted\n \n as \n \n _fivetran_deleted\n \n, \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TEXT) as \n \n isinactive\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n parent_id\n \n , \n cast(null as TEXT) as \n \n vendor_type_extid\n \n , \n \n \n vendor_type_id\n \n as \n \n vendor_type_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n vendor_type_id,\n name,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\""}, "model.netsuite_source.stg_netsuite__accounting_periods": {"compiled": true, "resource_type": "model", "depends_on": {"macros": ["macro.netsuite_source.get_accounting_periods_columns", "macro.fivetran_utils.fill_staging_columns"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp", "model.netsuite_source.stg_netsuite__accounting_periods_tmp"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "table", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "stg_netsuite__accounting_periods"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nwith base as (\n\n select * \n from {{ ref('stg_netsuite__accounting_periods_tmp') }}\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n {{\n fivetran_utils.fill_staging_columns(\n source_columns=adapter.get_columns_in_relation(ref('stg_netsuite__accounting_periods_tmp')),\n staging_columns=get_accounting_periods_columns()\n )\n }}\n \n from base\n),\n\nfinal as (\n \n select \n accounting_period_id,\n name,\n full_name,\n fiscal_calendar_id,\n year_id,\n starting as starting_at,\n ending as ending_at,\n quarter,\n year_0,\n is_adjustment,\n closed as is_closed,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/stg_netsuite__accounting_periods.sql", "original_file_path": "models/netsuite/stg_netsuite__accounting_periods.sql", "name": "stg_netsuite__accounting_periods", "alias": "stg_netsuite__accounting_periods", "checksum": {"name": "sha256", "checksum": "bd47f06946086147dacee032fd6ad9a36577fae371fa05c51336b3bac1c5f9cc"}, "tags": [], "refs": [["stg_netsuite__accounting_periods_tmp"], ["stg_netsuite__accounting_periods_tmp"]], "sources": [], "metrics": [], "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting_at": {"name": "starting_at", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending_at": {"name": "ending_at", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_0": {"name": "year_0", "description": "Value indicating whether the accounting period is in it's initial year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Value indicating whether the accounting period is an adjustment (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_closed": {"name": "is_closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": "netsuite_source://models/stg_netsuite.yml", "compiled_path": "target/compiled/netsuite_source/models/netsuite/stg_netsuite__accounting_periods.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "table", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.353958, "compiled_code": "\n\nwith base as (\n\n select * \n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods_tmp\"\n\n),\n\nfields as (\n\n select\n /*\n The below macro is used to generate the correct SQL for package staging models. It takes a list of columns \n that are expected/needed (staging_columns from dbt_salesforce_source/models/tmp/) and compares it with columns \n in the source (source_columns from dbt_salesforce_source/macros/).\n For more information refer to our dbt_fivetran_utils documentation (https://github.com/fivetran/dbt_fivetran_utils.git).\n */\n\n \n cast(null as boolean) as \n \n _fivetran_deleted\n \n , \n cast(null as TEXT) as \n \n _fivetran_id\n \n , \n cast(null as TIMESTAMP) as \n \n _fivetran_synced\n \n , \n \n \n accounting_period_id\n \n as \n \n accounting_period_id\n \n, \n \n \n closed\n \n as \n \n closed\n \n, \n cast(null as TEXT) as \n \n closed_accounts_payable\n \n , \n cast(null as TEXT) as \n \n closed_accounts_receivable\n \n , \n cast(null as TEXT) as \n \n closed_all\n \n , \n cast(null as TIMESTAMP) as \n \n closed_on\n \n , \n cast(null as TEXT) as \n \n closed_payroll\n \n , \n cast(null as TIMESTAMP) as \n \n date_deleted\n \n , \n cast(null as TIMESTAMP) as \n \n date_last_modified\n \n , \n \n \n ending\n \n as \n \n ending\n \n, \n \n \n fiscal_calendar_id\n \n as \n \n fiscal_calendar_id\n \n, \n cast(null as TEXT) as \n \n fivetran_index\n \n , \n \n \n full_name\n \n as \n \n full_name\n \n, \n \n \n is_adjustment\n \n as \n \n is_adjustment\n \n, \n cast(null as TEXT) as \n \n isinactive\n \n , \n cast(null as TEXT) as \n \n locked_accounts_payable\n \n , \n cast(null as TEXT) as \n \n locked_accounts_receivable\n \n , \n cast(null as TEXT) as \n \n locked_all\n \n , \n cast(null as TEXT) as \n \n locked_payroll\n \n , \n \n \n name\n \n as \n \n name\n \n, \n cast(null as FLOAT) as \n \n parent_id\n \n , \n \n \n quarter\n \n as \n \n quarter\n \n, \n \n \n starting\n \n as \n \n starting\n \n, \n \n \n year_0\n \n as \n \n year_0\n \n, \n \n \n year_id\n \n as \n \n year_id\n \n\n\n\n \n from base\n),\n\nfinal as (\n \n select \n accounting_period_id,\n name,\n full_name,\n fiscal_calendar_id,\n year_id,\n starting as starting_at,\n ending as ending_at,\n quarter,\n year_0,\n is_adjustment,\n closed as is_closed,\n _fivetran_deleted\n\n from fields\n)\n\nselect * \nfrom final\nwhere not coalesce(_fivetran_deleted, false)", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\""}, "model.netsuite_source.stg_netsuite__accounting_periods_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_periods_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounting_periods') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "name": "stg_netsuite__accounting_periods_tmp", "alias": "stg_netsuite__accounting_periods_tmp", "checksum": {"name": "sha256", "checksum": "af85ada4c304fe9e0c3fdaf8dca681113d692711ab665fa20a48bf20a3f53513"}, "tags": [], "refs": [], "sources": [["netsuite", "accounting_periods"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_periods_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.2756312, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods_tmp\""}, "model.netsuite_source.stg_netsuite__accounting_books_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounting_books_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounting_books') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "name": "stg_netsuite__accounting_books_tmp", "alias": "stg_netsuite__accounting_books_tmp", "checksum": {"name": "sha256", "checksum": "2a71eefcec7c5db5922ea1217879f5e7856b348418cd1698c81dd7ca78e95fbe"}, "tags": [], "refs": [], "sources": [["netsuite", "accounting_books"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounting_books_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.279124, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books_tmp\""}, "model.netsuite_source.stg_netsuite__customers_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.customers"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__customers_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_customers') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__customers_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "name": "stg_netsuite__customers_tmp", "alias": "stg_netsuite__customers_tmp", "checksum": {"name": "sha256", "checksum": "dd42aefc427f9f532fc0d79d50a1db8f9e6ea5f7038c43e2d8ea08ca6986fd2b"}, "tags": [], "refs": [], "sources": [["netsuite", "customers"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__customers_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.282609, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers_tmp\""}, "model.netsuite_source.stg_netsuite__transaction_lines_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transaction_lines_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transaction_lines') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "name": "stg_netsuite__transaction_lines_tmp", "alias": "stg_netsuite__transaction_lines_tmp", "checksum": {"name": "sha256", "checksum": "1e8e8e85dcbf177ac5a8539ed3ca4ab87c6b66bd8e98f8fac81bf8c92ecc4178"}, "tags": [], "refs": [], "sources": [["netsuite", "transaction_lines"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transaction_lines_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.286062, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines_tmp\""}, "model.netsuite_source.stg_netsuite__income_accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__income_accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_income_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "name": "stg_netsuite__income_accounts_tmp", "alias": "stg_netsuite__income_accounts_tmp", "checksum": {"name": "sha256", "checksum": "db2a368685ddd59347ffb164ea9204f378d33a39a4eebbffe35a22d59d387925"}, "tags": [], "refs": [], "sources": [["netsuite", "income_accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__income_accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.289449, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts_tmp\""}, "model.netsuite_source.stg_netsuite__accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "name": "stg_netsuite__accounts_tmp", "alias": "stg_netsuite__accounts_tmp", "checksum": {"name": "sha256", "checksum": "bb440ea013b9eb4fd2654be4f267bf3c08b4a4fbdb88e666c2721e79157bf54c"}, "tags": [], "refs": [], "sources": [["netsuite", "accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.29282, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts_tmp\""}, "model.netsuite_source.stg_netsuite__departments_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.departments"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__departments_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_departments') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__departments_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "name": "stg_netsuite__departments_tmp", "alias": "stg_netsuite__departments_tmp", "checksum": {"name": "sha256", "checksum": "4d20b8f9c501e6642f4ed19fe0d6003244f3132bb8f127e6cd04749a2161a1d5"}, "tags": [], "refs": [], "sources": [["netsuite", "departments"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__departments_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.296892, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments_tmp\""}, "model.netsuite_source.stg_netsuite__currencies_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.currencies"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__currencies_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_currencies') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__currencies_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "name": "stg_netsuite__currencies_tmp", "alias": "stg_netsuite__currencies_tmp", "checksum": {"name": "sha256", "checksum": "299203cc57a2fe306df440758d025485e593599f6390c02ce418cc17f6cbf085"}, "tags": [], "refs": [], "sources": [["netsuite", "currencies"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__currencies_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.300286, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies_tmp\""}, "model.netsuite_source.stg_netsuite__vendor_types_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendor_types_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendor_types') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "name": "stg_netsuite__vendor_types_tmp", "alias": "stg_netsuite__vendor_types_tmp", "checksum": {"name": "sha256", "checksum": "9418a3d15515e6876d45e9647eef973ee64e92a8ebd36de9ef48b4213362fbb8"}, "tags": [], "refs": [], "sources": [["netsuite", "vendor_types"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendor_types_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.303672, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types_tmp\""}, "model.netsuite_source.stg_netsuite__vendors_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.vendors"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__vendors_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_vendors') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__vendors_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "name": "stg_netsuite__vendors_tmp", "alias": "stg_netsuite__vendors_tmp", "checksum": {"name": "sha256", "checksum": "8e59bcb209c1fbcc2e4d3d45fbfa58520b4664fc1ca095cdc257b866d56bf48f"}, "tags": [], "refs": [], "sources": [["netsuite", "vendors"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__vendors_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.307019, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors_tmp\""}, "model.netsuite_source.stg_netsuite__locations_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.locations"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__locations_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_locations') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__locations_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "name": "stg_netsuite__locations_tmp", "alias": "stg_netsuite__locations_tmp", "checksum": {"name": "sha256", "checksum": "ef49c17ad5f2ebc7ef36e8327bf47863dd5e5cae56eb79239babc1db36a64083"}, "tags": [], "refs": [], "sources": [["netsuite", "locations"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__locations_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.31036, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations_tmp\""}, "model.netsuite_source.stg_netsuite__items_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.items"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__items_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__items_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_items') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__items_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__items_tmp.sql", "name": "stg_netsuite__items_tmp", "alias": "stg_netsuite__items_tmp", "checksum": {"name": "sha256", "checksum": "439132075eae5e14389f7542772d7ca936ea1489e7cdac59de46e8cb7173eb0a"}, "tags": [], "refs": [], "sources": [["netsuite", "items"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__items_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.313731, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items_tmp\""}, "model.netsuite_source.stg_netsuite__subsidiaries_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__subsidiaries_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_subsidiaries') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "name": "stg_netsuite__subsidiaries_tmp", "alias": "stg_netsuite__subsidiaries_tmp", "checksum": {"name": "sha256", "checksum": "a6ac0f509e1ac21ecc3f89a4d5c0eed5c703a57e8fc4af43e01bdcf75ea2e679"}, "tags": [], "refs": [], "sources": [["netsuite", "subsidiaries"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__subsidiaries_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.3178408, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries_tmp\""}, "model.netsuite_source.stg_netsuite__transactions_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.transactions"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__transactions_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_transactions') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__transactions_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "name": "stg_netsuite__transactions_tmp", "alias": "stg_netsuite__transactions_tmp", "checksum": {"name": "sha256", "checksum": "3784b104dd5b534cf77958a0db3b7a596311f53fe6cbc065385ded88577cfdd0"}, "tags": [], "refs": [], "sources": [["netsuite", "transactions"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__transactions_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.321256, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions_tmp\""}, "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__consolidated_exchange_rates_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_consolidated_exchange_rates') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "name": "stg_netsuite__consolidated_exchange_rates_tmp", "alias": "stg_netsuite__consolidated_exchange_rates_tmp", "checksum": {"name": "sha256", "checksum": "adef1eae799060e22040088aae3f36771a563821178b7986be7863221df9283e"}, "tags": [], "refs": [], "sources": [["netsuite", "consolidated_exchange_rates"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__consolidated_exchange_rates_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.3246331, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates_tmp\""}, "model.netsuite_source.stg_netsuite__classes_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.classes"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__classes_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_classes') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__classes_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "name": "stg_netsuite__classes_tmp", "alias": "stg_netsuite__classes_tmp", "checksum": {"name": "sha256", "checksum": "d0e5d095963df0342aa32dab6b3385cee09e2ee9a404972e692675a5e82c9fb0"}, "tags": [], "refs": [], "sources": [["netsuite", "classes"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__classes_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.327996, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes_tmp\""}, "model.netsuite_source.stg_netsuite__expense_accounts_tmp": {"compiled": true, "resource_type": "model", "depends_on": {"macros": [], "nodes": ["source.netsuite_source.netsuite.expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "netsuite_source", "database": null, "tags": [], "meta": {}, "materialized": "view", "incremental_strategy": null, "persist_docs": {}, "quoting": {}, "column_types": {}, "full_refresh": null, "unique_key": null, "on_schema_change": "ignore", "grants": {}, "packages": [], "docs": {"show": true, "node_color": null}, "post-hook": [], "pre-hook": []}, "database": "postgres", "schema": "netsuite_source_integration_tests_netsuite_source", "fqn": ["netsuite_source", "netsuite", "tmp", "stg_netsuite__expense_accounts_tmp"], "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp", "raw_code": "{{ config(enabled=var('netsuite_data_model', 'netsuite') == 'netsuite') }}\n\nselect * \nfrom {{ var('netsuite_expense_accounts') }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "original_file_path": "models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "name": "stg_netsuite__expense_accounts_tmp", "alias": "stg_netsuite__expense_accounts_tmp", "checksum": {"name": "sha256", "checksum": "a47ced403e84ab6ca539aa177139c53e021b0c56d15dd9dfc83dcb0ebe7cd797"}, "tags": [], "refs": [], "sources": [["netsuite", "expense_accounts"]], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/netsuite/tmp/stg_netsuite__expense_accounts_tmp.sql", "build_path": null, "deferred": false, "unrendered_config": {"materialized": "view", "schema": "netsuite_source", "enabled": true}, "created_at": 1671466640.331367, "compiled_code": "\n\nselect * \nfrom \"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\"", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": "\"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts_tmp\""}, "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__accounting_books_accounting_book_id", "alias": "unique_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.375455, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is not null\ngroup by accounting_book_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_books_accounting_book_id", "alias": "not_null_stg_netsuite__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.3765728, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "alias": "not_null_stg_netsuite__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.377558, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "fiscal_calendar_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "alias": "not_null_stg_netsuite__accounting_periods_fiscal_calendar_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.378637, "compiled_code": "\n \n \n\n\n\nselect fiscal_calendar_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\nwhere fiscal_calendar_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "fiscal_calendar_id", "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["accounting_period_id", "fiscal_calendar_id"], "model": "{{ get_where_subquery(ref('stg_netsuite__accounting_periods')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounting_periods"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "original_file_path": "models/stg_netsuite.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id", "alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_1ce8525af2d081fefdb862c9ad63042d"}, "created_at": 1671466640.3801239, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n accounting_period_id, fiscal_calendar_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounting_periods\"\n group by accounting_period_id, fiscal_calendar_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite__accounting_periods"}, "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__accounts_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__accounts_account_id", "alias": "unique_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.387397, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts"}, "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__accounts_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__accounts_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__accounts_account_id", "alias": "not_null_stg_netsuite__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.388416, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite__accounts"}, "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__classes_class_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__classes_class_id", "alias": "unique_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.389432, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is not null\ngroup by class_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes"}, "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__classes_class_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__classes_class_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__classes_class_id", "alias": "not_null_stg_netsuite__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.3905861, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite__classes"}, "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite__consolida_2fe3f87bba0a20283ee2045219b523ee"}, "created_at": 1671466640.391577, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is not null\ngroup by consolidated_exchange_rate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates"}, "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite__consoli_701f72321e6216b9c59fbdd954f93e86"}, "created_at": 1671466640.39257, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite__consolidated_exchange_rates"}, "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__currencies_currency_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__currencies_currency_id", "alias": "unique_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.393576, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is not null\ngroup by currency_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies"}, "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__currencies_currency_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__currencies_currency_id", "alias": "not_null_stg_netsuite__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.3946948, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite__currencies"}, "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__customers_customer_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__customers_customer_id", "alias": "unique_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.3956852, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers"}, "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__customers_customer_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__customers_customer_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__customers_customer_id", "alias": "not_null_stg_netsuite__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.396675, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite__customers"}, "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__departments_department_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__departments_department_id", "alias": "unique_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.397669, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is not null\ngroup by department_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments"}, "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__departments_department_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__departments_department_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__departments_department_id", "alias": "not_null_stg_netsuite__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.3990479, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite__departments"}, "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "expense_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__expense_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__expense_accounts_expense_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__expense_accounts_expense_account_id", "alias": "unique_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__expense_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__expense_accounts_expense_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4001331, "compiled_code": "\n \n \n\nselect\n expense_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is not null\ngroup by expense_account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts"}, "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "expense_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__expense_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__expense_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__expense_accounts_expense_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__expense_accounts_expense_account_id", "alias": "not_null_stg_netsuite__expense_accounts_expense_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__expense_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__expense_accounts_expense_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4011478, "compiled_code": "\n \n \n\n\n\nselect expense_account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__expense_accounts\"\nwhere expense_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "expense_account_id", "file_key_name": "models.stg_netsuite__expense_accounts"}, "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "income_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__income_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__income_accounts_income_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__income_accounts_income_account_id", "alias": "unique_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__income_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__income_accounts_income_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.402153, "compiled_code": "\n \n \n\nselect\n income_account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is not null\ngroup by income_account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts"}, "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "income_account_id", "model": "{{ get_where_subquery(ref('stg_netsuite__income_accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__income_accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__income_accounts_income_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__income_accounts_income_account_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__income_accounts_income_account_id", "alias": "not_null_stg_netsuite__income_accounts_income_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__income_accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__income_accounts_income_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4032881, "compiled_code": "\n \n \n\n\n\nselect income_account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__income_accounts\"\nwhere income_account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "income_account_id", "file_key_name": "models.stg_netsuite__income_accounts"}, "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__items_item_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__items_item_id", "alias": "unique_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4042659, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items"}, "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__items_item_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__items_item_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__items_item_id", "alias": "not_null_stg_netsuite__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.405259, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite__items"}, "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__locations_location_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__locations_location_id", "alias": "unique_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.406249, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is not null\ngroup by location_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations"}, "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__locations_location_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__locations_location_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__locations_location_id", "alias": "not_null_stg_netsuite__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.407372, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite__locations"}, "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__subsidiaries_subsidiary_id", "alias": "unique_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4083562, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is not null\ngroup by subsidiary_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "alias": "not_null_stg_netsuite__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.409336, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transaction_lines_transaction_id", "alias": "not_null_stg_netsuite__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4103181, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transaction_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "alias": "not_null_stg_netsuite__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transaction_lines_transaction_line_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.411456, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite__transaction_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transaction_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "original_file_path": "models/stg_netsuite.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_e15a8751941b43ff25fc24538e6a10ad"}, "created_at": 1671466640.4124649, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transaction_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite__transaction_lines"}, "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__transactions_transaction_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__transactions_transaction_id", "alias": "unique_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4156659, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is not null\ngroup by transaction_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions"}, "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__transactions_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__transactions_transaction_id", "alias": "not_null_stg_netsuite__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.416815, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite__transactions"}, "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendor_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__vendor_types_vendor_type_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__vendor_types_vendor_type_id", "alias": "unique_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendor_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendor_types_vendor_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.417872, "compiled_code": "\n \n \n\nselect\n vendor_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is not null\ngroup by vendor_type_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types"}, "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendor_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendor_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendor_types_vendor_type_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__vendor_types_vendor_type_id", "alias": "not_null_stg_netsuite__vendor_types_vendor_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendor_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendor_types_vendor_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.41904, "compiled_code": "\n \n \n\n\n\nselect vendor_type_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendor_types\"\nwhere vendor_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_type_id", "file_key_name": "models.stg_netsuite__vendor_types"}, "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite__vendors_vendor_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "unique_stg_netsuite__vendors_vendor_id", "alias": "unique_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/unique_stg_netsuite__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.420337, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors"}, "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite__vendors_vendor_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite.yml", "name": "not_null_stg_netsuite__vendors_vendor_id", "alias": "not_null_stg_netsuite__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite.yml/not_null_stg_netsuite__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.42139, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite__vendors"}, "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__account_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__account_types_account_type_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__account_types_account_type_id", "alias": "unique_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__account_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__account_types_account_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.463017, "compiled_code": "\n \n \n\nselect\n account_type_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is not null\ngroup by account_type_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types"}, "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_type_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__account_types')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__account_types"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__account_types_account_type_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__account_types_account_type_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__account_types_account_type_id", "alias": "not_null_stg_netsuite2__account_types_account_type_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__account_types"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__account_types_account_type_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.464117, "compiled_code": "\n \n \n\n\n\nselect account_type_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__account_types\"\nwhere account_type_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_type_id", "file_key_name": "models.stg_netsuite2__account_types"}, "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_book_subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "alias": "unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.465098, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_book_subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id", "alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_book_subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_d0fe84ff5fd09d9dcff0854dc4901127"}, "created_at": 1671466640.4660769, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_book_subsidiaries\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_book_subsidiaries"}, "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_books_accounting_book_id", "alias": "unique_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.467181, "compiled_code": "\n \n \n\nselect\n accounting_book_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is not null\ngroup by accounting_book_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_book_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_books')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_books"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_books_accounting_book_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "alias": "not_null_stg_netsuite2__accounting_books_accounting_book_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_books"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_books_accounting_book_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.468139, "compiled_code": "\n \n \n\n\n\nselect accounting_book_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_books\"\nwhere accounting_book_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_book_id", "file_key_name": "models.stg_netsuite2__accounting_books"}, "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_period_fiscal_cal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "alias": "unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4691021, "compiled_code": "\n \n \n\nselect\n _fivetran_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is not null\ngroup by _fivetran_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "_fivetran_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_period_fiscal_cal')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id", "alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_period_fiscal_cal"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__accoun_902ea903927e24c050ca1e7f36715415"}, "created_at": 1671466640.470057, "compiled_code": "\n \n \n\n\n\nselect _fivetran_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_period_fiscal_cal\"\nwhere _fivetran_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "_fivetran_id", "file_key_name": "models.stg_netsuite2__accounting_period_fiscal_cal"}, "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "alias": "unique_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.471137, "compiled_code": "\n \n \n\nselect\n accounting_period_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is not null\ngroup by accounting_period_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods"}, "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "accounting_period_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounting_periods')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounting_periods"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounting_periods_accounting_period_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "alias": "not_null_stg_netsuite2__accounting_periods_accounting_period_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounting_periods"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounting_periods_accounting_period_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4721012, "compiled_code": "\n \n \n\n\n\nselect accounting_period_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounting_periods\"\nwhere accounting_period_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "accounting_period_id", "file_key_name": "models.stg_netsuite2__accounting_periods"}, "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__accounts_account_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__accounts_account_id", "alias": "unique_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4730518, "compiled_code": "\n \n \n\nselect\n account_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is not null\ngroup by account_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts"}, "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "account_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__accounts')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__accounts"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__accounts_account_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__accounts_account_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__accounts_account_id", "alias": "not_null_stg_netsuite2__accounts_account_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__accounts"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__accounts_account_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.473981, "compiled_code": "\n \n \n\n\n\nselect account_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__accounts\"\nwhere account_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "account_id", "file_key_name": "models.stg_netsuite2__accounts"}, "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__classes_class_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__classes_class_id", "alias": "unique_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4750621, "compiled_code": "\n \n \n\nselect\n class_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is not null\ngroup by class_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes"}, "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "class_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__classes')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__classes"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__classes_class_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__classes_class_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__classes_class_id", "alias": "not_null_stg_netsuite2__classes_class_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__classes"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__classes_class_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.47601, "compiled_code": "\n \n \n\n\n\nselect class_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__classes\"\nwhere class_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "class_id", "file_key_name": "models.stg_netsuite2__classes"}, "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}{{ config(alias=\"unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "unique_stg_netsuite2__consolid_8c677b22f536958a41ad7550ef138fc1"}, "created_at": 1671466640.476964, "compiled_code": "\n \n \n\nselect\n consolidated_exchange_rate_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is not null\ngroup by consolidated_exchange_rate_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates"}, "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "consolidated_exchange_rate_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__consolidated_exchange_rates')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id", "alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__consolidated_exchange_rates"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__consol_a004a75f7882c268647404501df8e511"}, "created_at": 1671466640.477908, "compiled_code": "\n \n \n\n\n\nselect consolidated_exchange_rate_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__consolidated_exchange_rates\"\nwhere consolidated_exchange_rate_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "consolidated_exchange_rate_id", "file_key_name": "models.stg_netsuite2__consolidated_exchange_rates"}, "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__currencies_currency_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__currencies_currency_id", "alias": "unique_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.47898, "compiled_code": "\n \n \n\nselect\n currency_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is not null\ngroup by currency_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies"}, "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "currency_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__currencies')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__currencies"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__currencies_currency_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__currencies_currency_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__currencies_currency_id", "alias": "not_null_stg_netsuite2__currencies_currency_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__currencies"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__currencies_currency_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4799418, "compiled_code": "\n \n \n\n\n\nselect currency_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__currencies\"\nwhere currency_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "currency_id", "file_key_name": "models.stg_netsuite2__currencies"}, "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__customers_customer_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__customers_customer_id", "alias": "unique_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4808729, "compiled_code": "\n \n \n\nselect\n customer_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is not null\ngroup by customer_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers"}, "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "customer_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__customers')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__customers"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__customers_customer_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__customers_customer_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__customers_customer_id", "alias": "not_null_stg_netsuite2__customers_customer_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__customers"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__customers_customer_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.481811, "compiled_code": "\n \n \n\n\n\nselect customer_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__customers\"\nwhere customer_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "customer_id", "file_key_name": "models.stg_netsuite2__customers"}, "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__departments_department_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__departments_department_id", "alias": "unique_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.482869, "compiled_code": "\n \n \n\nselect\n department_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is not null\ngroup by department_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments"}, "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "department_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__departments')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__departments"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__departments_department_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__departments_department_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__departments_department_id", "alias": "not_null_stg_netsuite2__departments_department_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__departments"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__departments_department_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.483813, "compiled_code": "\n \n \n\n\n\nselect department_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__departments\"\nwhere department_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "department_id", "file_key_name": "models.stg_netsuite2__departments"}, "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "entity_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__entities')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__entities_entity_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__entities_entity_id", "alias": "unique_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__entities"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__entities_entity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.484752, "compiled_code": "\n \n \n\nselect\n entity_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is not null\ngroup by entity_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities"}, "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "entity_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__entities')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__entities"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__entities_entity_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__entities_entity_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__entities_entity_id", "alias": "not_null_stg_netsuite2__entities_entity_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__entities"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__entities_entity_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.485711, "compiled_code": "\n \n \n\n\n\nselect entity_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__entities\"\nwhere entity_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "entity_id", "file_key_name": "models.stg_netsuite2__entities"}, "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__items_item_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__items_item_id", "alias": "unique_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.486777, "compiled_code": "\n \n \n\nselect\n item_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is not null\ngroup by item_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items"}, "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "item_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__items')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__items"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__items_item_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__items_item_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__items_item_id", "alias": "not_null_stg_netsuite2__items_item_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__items"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__items_item_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4877172, "compiled_code": "\n \n \n\n\n\nselect item_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__items\"\nwhere item_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "item_id", "file_key_name": "models.stg_netsuite2__items"}, "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "job_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__jobs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__jobs_job_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__jobs_job_id", "alias": "unique_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__jobs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__jobs_job_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.488659, "compiled_code": "\n \n \n\nselect\n job_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is not null\ngroup by job_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs"}, "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "job_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__jobs')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__jobs"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__jobs_job_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__jobs_job_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__jobs_job_id", "alias": "not_null_stg_netsuite2__jobs_job_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__jobs"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__jobs_job_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.489596, "compiled_code": "\n \n \n\n\n\nselect job_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__jobs\"\nwhere job_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "job_id", "file_key_name": "models.stg_netsuite2__jobs"}, "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__locations_location_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__locations_location_id", "alias": "unique_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.490828, "compiled_code": "\n \n \n\nselect\n location_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is not null\ngroup by location_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations"}, "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "location_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__locations')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__locations"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__locations_location_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__locations_location_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__locations_location_id", "alias": "not_null_stg_netsuite2__locations_location_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__locations"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__locations_location_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.491828, "compiled_code": "\n \n \n\n\n\nselect location_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__locations\"\nwhere location_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "location_id", "file_key_name": "models.stg_netsuite2__locations"}, "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "alias": "unique_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.492794, "compiled_code": "\n \n \n\nselect\n subsidiary_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is not null\ngroup by subsidiary_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "subsidiary_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__subsidiaries')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__subsidiaries"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__subsidiaries_subsidiary_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "alias": "not_null_stg_netsuite2__subsidiaries_subsidiary_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__subsidiaries"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__subsidiaries_subsidiary_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.4937868, "compiled_code": "\n \n \n\n\n\nselect subsidiary_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__subsidiaries\"\nwhere subsidiary_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "subsidiary_id", "file_key_name": "models.stg_netsuite2__subsidiaries"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_id", "alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_ee27274f65dca2015601fab9d3e74ccc"}, "created_at": 1671466640.4948611, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}{{ config(alias=\"not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id", "alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "not_null_stg_netsuite2__transa_37ee293e4f6a85021068b9cb363d1b54"}, "created_at": 1671466640.4958389, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_accounting_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_accounting_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_db250db642d3e62f4e602ac2d32ef1c6"}, "created_at": 1671466640.496806, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_accounting_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_accounting_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_line_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_line_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "alias": "not_null_stg_netsuite2__transaction_lines_transaction_line_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_line_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.49967, "compiled_code": "\n \n \n\n\n\nselect transaction_line_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_line_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_line_id", "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transaction_lines_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transaction_lines_transaction_id", "alias": "not_null_stg_netsuite2__transaction_lines_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transaction_lines_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.50063, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": {"test_metadata": {"name": "unique_combination_of_columns", "kwargs": {"combination_of_columns": ["transaction_id", "transaction_line_id"], "model": "{{ get_where_subquery(ref('stg_netsuite2__transaction_lines')) }}"}, "namespace": "dbt_utils"}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt_utils.test_unique_combination_of_columns", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transaction_lines"]}, "config": {"enabled": true, "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id"], "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "raw_code": "{{ dbt_utils.test_unique_combination_of_columns(**_dbt_generic_test_kwargs) }}{{ config(alias=\"dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145\") }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id", "alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transaction_lines"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145.sql", "build_path": null, "deferred": false, "unrendered_config": {"alias": "dbt_utils_unique_combination_o_6fa30c59537c4064c2041e85d76e5145"}, "created_at": 1671466640.501725, "compiled_code": "\n\n\n\n\n\nwith validation_errors as (\n\n select\n transaction_id, transaction_line_id\n from \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transaction_lines\"\n group by transaction_id, transaction_line_id\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": null, "file_key_name": "models.stg_netsuite2__transaction_lines"}, "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__transactions_transaction_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__transactions_transaction_id", "alias": "unique_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.50429, "compiled_code": "\n \n \n\nselect\n transaction_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is not null\ngroup by transaction_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions"}, "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "transaction_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__transactions')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__transactions"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__transactions_transaction_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__transactions_transaction_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__transactions_transaction_id", "alias": "not_null_stg_netsuite2__transactions_transaction_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__transactions"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__transactions_transaction_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.5055401, "compiled_code": "\n \n \n\n\n\nselect transaction_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__transactions\"\nwhere transaction_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "transaction_id", "file_key_name": "models.stg_netsuite2__transactions"}, "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_category_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendor_categories')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendor_categories_vendor_category_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "alias": "unique_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendor_categories"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendor_categories_vendor_category_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.5065038, "compiled_code": "\n \n \n\nselect\n vendor_category_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is not null\ngroup by vendor_category_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories"}, "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_category_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendor_categories')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendor_categories"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendor_categories_vendor_category_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "alias": "not_null_stg_netsuite2__vendor_categories_vendor_category_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendor_categories"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendor_categories_vendor_category_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.507448, "compiled_code": "\n \n \n\n\n\nselect vendor_category_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendor_categories\"\nwhere vendor_category_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_category_id", "file_key_name": "models.stg_netsuite2__vendor_categories"}, "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": {"test_metadata": {"name": "unique", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_unique", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "unique_stg_netsuite2__vendors_vendor_id"], "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d", "raw_code": "{{ test_unique(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "unique_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "unique_stg_netsuite2__vendors_vendor_id", "alias": "unique_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/unique_stg_netsuite2__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.508401, "compiled_code": "\n \n \n\nselect\n vendor_id as unique_field,\n count(*) as n_records\n\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is not null\ngroup by vendor_id\nhaving count(*) > 1\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors"}, "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": {"test_metadata": {"name": "not_null", "kwargs": {"column_name": "vendor_id", "model": "{{ get_where_subquery(ref('stg_netsuite2__vendors')) }}"}, "namespace": null}, "compiled": true, "resource_type": "test", "depends_on": {"macros": ["macro.dbt.test_not_null", "macro.dbt.get_where_subquery"], "nodes": ["model.netsuite_source.stg_netsuite2__vendors"]}, "config": {"enabled": true, "alias": null, "schema": "dbt_test__audit", "database": null, "tags": [], "meta": {}, "materialized": "test", "severity": "ERROR", "store_failures": null, "where": null, "limit": null, "fail_calc": "count(*)", "warn_if": "!= 0", "error_if": "!= 0"}, "database": "postgres", "schema": "netsuite_source_integration_tests_dbt_test__audit", "fqn": ["netsuite_source", "not_null_stg_netsuite2__vendors_vendor_id"], "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "raw_code": "{{ test_not_null(**_dbt_generic_test_kwargs) }}", "language": "sql", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "not_null_stg_netsuite2__vendors_vendor_id.sql", "original_file_path": "models/stg_netsuite2.yml", "name": "not_null_stg_netsuite2__vendors_vendor_id", "alias": "not_null_stg_netsuite2__vendors_vendor_id", "checksum": {"name": "none", "checksum": ""}, "tags": [], "refs": [["stg_netsuite2__vendors"]], "sources": [], "metrics": [], "description": "", "columns": {}, "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "compiled_path": "target/compiled/netsuite_source/models/stg_netsuite2.yml/not_null_stg_netsuite2__vendors_vendor_id.sql", "build_path": null, "deferred": false, "unrendered_config": {}, "created_at": 1671466640.509465, "compiled_code": "\n \n \n\n\n\nselect vendor_id\nfrom \"postgres\".\"netsuite_source_integration_tests_netsuite_source\".\"stg_netsuite2__vendors\"\nwhere vendor_id is null\n\n\n", "extra_ctes_injected": true, "extra_ctes": [], "relation_name": null, "column_name": "vendor_id", "file_key_name": "models.stg_netsuite2__vendors"}}, "sources": {"source.netsuite_source.netsuite2.account_type": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "account_type"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.account_type", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "account_type", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_type_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the various account types within Netsuite.", "columns": {"_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of thea account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "balancesheet": {"name": "balancesheet", "description": "Boolean indicating if the account type is a balance sheet account. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "left": {"name": "left", "description": "Boolean indicating if the account type is leftside. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "longname": {"name": "longname", "description": "The name of the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_type_data\"", "created_at": 1671466640.5820212}, "source.netsuite_source.netsuite2.accounting_book_subsidiaries": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book_subsidiaries"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_book_subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_book_subsidiaries", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_sub_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the various account books and the respective subsidiaries.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the accounting book subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_sub_data\"", "created_at": 1671466640.582129}, "source.netsuite_source.netsuite2.accounting_book": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_book"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_book", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_book", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_book_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "basebook": {"name": "basebook", "description": "Reference to the base book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "effectiveperiod": {"name": "effectiveperiod", "description": "Reference to the effective period of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isadjustmentonly": {"name": "isadjustmentonly", "description": "Boolean indicating if the accounting book is an adjustment only. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isconsolidated": {"name": "isconsolidated", "description": "Boolean indicating if the accounting book is a consolidated entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contingentrevenuehandling": {"name": "contingentrevenuehandling", "description": "Boolean indicating if the accounting book is contingent revenue handling. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isprimary": {"name": "isprimary", "description": "Boolean indicating if the accounting book is a primary entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "twosteprevenueallocation": {"name": "twosteprevenueallocation", "description": "Boolean indicating if the accounting book is a two step revenue allocation entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "unbilledreceivablegrouping": {"name": "unbilledreceivablegrouping", "description": "Boolean indicating if the accounting book is an unbilled receivable grouping. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_book_data\"", "created_at": 1671466640.5822139}, "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period_fiscal_calendars"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_period_fiscal_calendars", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_fiscal_cal_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the accounting fiscal calendar periods.", "columns": {"_fivetran_id": {"name": "_fivetran_id", "description": "Unique ID used by Fivetran to sync and dedupe data.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingperiod": {"name": "accountingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent fiscal calendar accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_fiscal_cal_data\"", "created_at": 1671466640.5822852}, "source.netsuite_source.netsuite2.accounting_period": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "accounting_period"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.accounting_period", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "accounting_period", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_accounting_period_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "periodname": {"name": "periodname", "description": "Name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "startdate": {"name": "startdate", "description": "Timestamp of when the accounting period starts.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "enddate": {"name": "enddate", "description": "Timestamp if when the accounting period ends.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closedondate": {"name": "closedondate", "description": "Timestamp of when the accounting period is closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isquarter": {"name": "isquarter", "description": "Boolean indicating if the accounting period is the initial quarter. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isyear": {"name": "isyear", "description": "Boolean indicating if the accounting period is the initial period. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isadjust": {"name": "isadjust", "description": "Boolean indicating if the accounting period is an adjustment. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isposting": {"name": "isposting", "description": "Boolean indicating if the accounting period is posting. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Boolean indicating if the accounting period is closed. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "alllocked": {"name": "alllocked", "description": "Boolean indicating if all the accounting periods are locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "arlocked": {"name": "arlocked", "description": "Boolean indicating if the ar accounting period is locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "aplocked": {"name": "aplocked", "description": "Boolean indicating if the ap accounting period is locked. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_accounting_period_data\"", "created_at": 1671466640.582363}, "source.netsuite_source.netsuite2.account": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "account"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.account", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "account", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_account_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounts set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external account,", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "acctnumber": {"name": "acctnumber", "description": "Netsuite generated account number.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accttype": {"name": "accttype", "description": "Reference to the account type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Description of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferralacct": {"name": "deferralacct", "description": "Reference to the deferral account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cashflowrate": {"name": "cashflowrate", "description": "The cash flow rate type of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "generalrate": {"name": "generalrate", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "includechildren": {"name": "includechildren", "description": "Boolean indicating if the account includes sub accounts. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the account is inactive. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "issummary": {"name": "issummary", "description": "Boolean indicating if the account is a summary account. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_account_data\"", "created_at": 1671466640.5824451}, "source.netsuite_source.netsuite2.classification": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "classification"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.classification", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "classification", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_classification_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all classes set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the external class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the class is active. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_classification_data\"", "created_at": 1671466640.582516}, "source.netsuite_source.netsuite2.consolidated_exchange_rate": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "consolidated_exchange_rate"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.consolidated_exchange_rate", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "consolidated_exchange_rate", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_consolidated_exchange_rate_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"id": {"name": "id", "description": "unique identifier for the consolidated exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postingperiod": {"name": "postingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fromcurrency": {"name": "fromcurrency", "description": "The currency id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fromsubsidiary": {"name": "fromsubsidiary", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tocurrency": {"name": "tocurrency", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "tosubsidiary": {"name": "tosubsidiary", "description": "The subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currentrate": {"name": "currentrate", "description": "The current rate associated with the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "averagerate": {"name": "averagerate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historicalrate": {"name": "historicalrate", "description": "The historical rate of the exchange rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_consolidated_exchange_rate_data\"", "created_at": 1671466640.582588}, "source.netsuite_source.netsuite2.currency": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "currency"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.currency", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "currency", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_currency_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all currency information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "Currency symbol.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_currency_data\"", "created_at": 1671466640.582656}, "source.netsuite_source.netsuite2.customer": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "customer"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.customer", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "customer", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_customer_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all customer information.", "columns": {"id": {"name": "id", "description": "Unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "Reference to the associated external customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Boolean indicating if the customer is an individual person. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "firstname": {"name": "firstname", "description": "First name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "lastname": {"name": "lastname", "description": "Last name of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Customers email address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "phone": {"name": "phone", "description": "Phone number of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Reference to the associated billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Reference to the associated default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "receivablesaccount": {"name": "receivablesaccount", "description": "Reference to the associated receivables account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "firstorderdate": {"name": "firstorderdate", "description": "Timestamp of when the first order was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_customer_data\"", "created_at": 1671466640.5827358}, "source.netsuite_source.netsuite2.department": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "department"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.department", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "department", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_department_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all departments set up in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isinactive": {"name": "isinactive", "description": "Boolean indicating if the department is active. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Timestamp of when a record was deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_department_data\"", "created_at": 1671466640.582809}, "source.netsuite_source.netsuite2.entity": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.entity", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "entity", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entities_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all entities in Netsuite.", "columns": {"id": {"name": "id", "description": "Th \"The entity id of the entity used for the record.\"e unique identifier of the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "contact": {"name": "contact", "description": "The unique identifier of the contact associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "employee": {"name": "employee", "description": "The unique identifier of the employee associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entitytitle": {"name": "entitytitle", "description": "The entity name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isperson": {"name": "isperson", "description": "Value indicating whether the entity is a person (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "The unique identifier of the parent entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "project": {"name": "project", "description": "The unique identifier of the project (job) associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The entity type (Contact, CustJob, Job, etc).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor": {"name": "vendor", "description": "The unique identifier of the vendor associated with the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entities_data\"", "created_at": 1671466640.582884}, "source.netsuite_source.netsuite2.entity_address": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "entity_address"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.entity_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "entity_address", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_entity_address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing addresses and the various entities which they map.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_entity_address_data\"", "created_at": 1671466640.582956}, "source.netsuite_source.netsuite2.item": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "item"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.item", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "item", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_item_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing information about the items created in Netsuite.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "itemtype": {"name": "itemtype", "description": "Item type name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "description": {"name": "description", "description": "Sales description associated with the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "assetaccount": {"name": "assetaccount", "description": "Reference to the asset account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "expenseaccount": {"name": "expenseaccount", "description": "Reference to the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "gainlossaccount": {"name": "gainlossaccount", "description": "Reference to the gain or loss account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "incomeaccount": {"name": "incomeaccount", "description": "Reference to the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoexpenseaccount": {"name": "intercoexpenseaccount", "description": "Reference to the intercompany expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoincomeaccount": {"name": "intercoincomeaccount", "description": "Reference to the intercompany income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferralaccount": {"name": "deferralaccount", "description": "Reference to the deferred expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "deferredrevenueaccount": {"name": "deferredrevenueaccount", "description": "Reference to the deferred revenue account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent item.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_item_data\"", "created_at": 1671466640.583037}, "source.netsuite_source.netsuite2.job": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "job"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.job", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "job", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_job_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all jobs.", "columns": {"id": {"name": "id", "description": "The unique identifier of the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "externalid": {"name": "externalid", "description": "The unique identifier of the external job reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer": {"name": "customer", "description": "The unique identifier of the customer associated with the job.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entityid": {"name": "entityid", "description": "Reference the the entity.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultbillingaddress": {"name": "defaultbillingaddress", "description": "Default billing address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "defaultshippingaddress": {"name": "defaultshippingaddress", "description": "Default shipping address.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent job.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_job_data\"", "created_at": 1671466640.583105}, "source.netsuite_source.netsuite2.location_main_address": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "location_main_address"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.location_main_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "location_main_address", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_main_address_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing the location main addresses.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr1": {"name": "addr1", "description": "The associated address 1.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr2": {"name": "addr2", "description": "The associated address 2.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addr3": {"name": "addr3", "description": "The associated address 3.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addressee": {"name": "addressee", "description": "The individual associated with the address", "meta": {}, "data_type": null, "quote": null, "tags": []}, "addrtext": {"name": "addrtext", "description": "The full address associated.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The associated city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The associated country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The associated state.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "nkey": {"name": "nkey", "description": "The associated Netsuite key.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zip": {"name": "zip", "description": "The associated zipcode.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_main_address_data\"", "created_at": 1671466640.583207}, "source.netsuite_source.netsuite2.location": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "location"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.location", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "location", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_location_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_location_data\"", "created_at": 1671466640.583276}, "source.netsuite_source.netsuite2.subsidiary": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "subsidiary"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.subsidiary", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "subsidiary", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_subsidiary_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all subsidiaries.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fullname": {"name": "fullname", "description": "Full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "email": {"name": "email", "description": "Email address associated with the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainaddress": {"name": "mainaddress", "description": "Reference to the main address used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state which the subsidiary is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscalcalendar": {"name": "fiscalcalendar", "description": "Reference to the fiscal calendar used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent": {"name": "parent", "description": "Reference to the parent subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_subsidiary_data\"", "created_at": 1671466640.583349}, "source.netsuite_source.netsuite2.transaction_accounting_line": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_accounting_line"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction_accounting_line", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction_accounting_line", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_tran_acct_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction": {"name": "transaction", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transactionline": {"name": "transactionline", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "netamount": {"name": "netamount", "description": "The net amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingbook": {"name": "accountingbook", "description": "Reference to the accounting book of the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account": {"name": "account", "description": "Reference to the account associated with the entry.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting": {"name": "posting", "description": "Boolean indicating if the entry is posting. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "credit": {"name": "credit", "description": "Amount associated as a credit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "debit": {"name": "debit", "description": "Amount associated as a debit.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amountpaid": {"name": "amountpaid", "description": "Total amount paid.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amountunpaid": {"name": "amountunpaid", "description": "Total amount unpaid.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_tran_acct_line_data\"", "created_at": 1671466640.583426}, "source.netsuite_source.netsuite2.transaction_line": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction_line"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction_line", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction_line", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_line_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "Unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction": {"name": "transaction", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "linesequencenumber": {"name": "linesequencenumber", "description": "Netsuite generated number associated with the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item": {"name": "item", "description": "The unique identifier of the item used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class": {"name": "class", "description": "The unique identifier of the class used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location": {"name": "location", "description": "The unique identifier of the location used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary": {"name": "subsidiary", "description": "The unique identifier of the subsidiary used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department": {"name": "department", "description": "The unique identifier of the department used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isclosed": {"name": "isclosed", "description": "Boolean indicating if the transaction line is closed. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isbillable": {"name": "isbillable", "description": "Boolean indicating if the transaction line is billable. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "iscogs": {"name": "iscogs", "description": "Boolean indicating if the transaction line is a cost of goods sold entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "cleared": {"name": "cleared", "description": "Boolean indicating if the transaction line is cleared. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "commitmentfirm": {"name": "commitmentfirm", "description": "Boolean indicating if the transaction line is a commitment firm. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "mainline": {"name": "mainline", "description": "Boolean indicating if the transaction line is a main line entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "taxline": {"name": "taxline", "description": "Boolean indicating if the transaction line is a tax line. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_line_data\"", "created_at": 1671466640.5835059}, "source.netsuite_source.netsuite2.transaction": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "transaction"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.transaction", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "transaction", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_transaction_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transactions.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The transaction id of referenced for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transactionnumber": {"name": "transactionnumber", "description": "The Netsuite generated number of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type": {"name": "type", "description": "The type of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "Memo attached to the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "Status of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "createddate": {"name": "createddate", "description": "Timestamp of when the record was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "duedate": {"name": "duedate", "description": "Timestamp of the transactions due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closedate": {"name": "closedate", "description": "Timestamp of when the transaction was closed.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency": {"name": "currency", "description": "The currency id of the currency used within the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "entity": {"name": "entity", "description": "The entity id of the entity used for the record.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "postingperiod": {"name": "postingperiod", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "posting": {"name": "posting", "description": "Boolean indicating if the transaction is a posting event. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "intercoadj": {"name": "intercoadj", "description": "Boolean indicating if the transaction is an intercompany adjustment. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "isreversal": {"name": "isreversal", "description": "Boolean indicating if the transaction is a reversal entry. Represented as \"T\" or \"F\" for true and false respectively.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_transaction_data\"", "created_at": 1671466640.583585}, "source.netsuite_source.netsuite2.vendor_category": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor_category"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.vendor_category", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "vendor_category", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_category_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table containing categories and how they map to vendors.", "columns": {"id": {"name": "id", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "Name of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_category_data\"", "created_at": 1671466640.583652}, "source.netsuite_source.netsuite2.vendor": {"fqn": ["netsuite_source", "netsuite2", "netsuite2", "vendor"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite2.vendor", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite2/src_netsuite2.yml", "original_file_path": "models/netsuite2/src_netsuite2.yml", "name": "vendor", "source_name": "netsuite2", "source_description": "", "loader": "fivetran", "identifier": "netsuite2_vendor_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all vendor information.", "columns": {"_fivetran_synced": {"name": "_fivetran_synced", "description": "Timestamp of when a record was last synced.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "id": {"name": "id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "Name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "datecreated": {"name": "datecreated", "description": "Timestamp of the record creation.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "category": {"name": "category", "description": "Unique identifier of the vendor category.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite2_vendor_data\"", "created_at": 1671466640.58372}, "source.netsuite_source.netsuite.accounting_books": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_books"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounting_books", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounting_books", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_books_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting books set up in Netsuite.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The unique identifier of the accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_primary": {"name": "is_primary", "description": "Boolean indicating whether it is a primary accounting book.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_books_data\"", "created_at": 1671466640.5837839}, "source.netsuite_source.netsuite.accounting_periods": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounting_periods"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounting_periods", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounting_periods", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounting_periods_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all accounting periods, including monthly, quarterly and yearly.", "columns": {"accounting_period_id": {"name": "accounting_period_id", "description": "The unique identifier of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_id": {"name": "year_id", "description": "The year id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id the accounting period is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "quarter": {"name": "quarter", "description": "The quarter which the accounting period takes place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "starting": {"name": "starting", "description": "The timestamp indicating the start of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "ending": {"name": "ending", "description": "The timestamp indicating the end of the accounting period.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "year_0": {"name": "year_0", "description": "Value indicating whether the accounting period is in it's initial year.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_adjustment": {"name": "is_adjustment", "description": "Value indicating whether the accounting period is an adjustment (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "closed": {"name": "closed", "description": "Value indicating whether the accounting period is closed (either yes or no).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounting_periods_data\"", "created_at": 1671466640.583858}, "source.netsuite_source.netsuite.accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table that provides a complete listing of every account in the accounting system.", "columns": {"account_id": {"name": "account_id", "description": "The unique identifier associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The accounts associated parent account id.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The name of the type of the account (ie. Bank, Equity, Income, Expense).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accountingnumber": {"name": "accountingnumber", "description": "The account number associated with the account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "general_rate_type": {"name": "general_rate_type", "description": "The general rate type of the account (Current, Historical, Average).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_leftside": {"name": "is_leftside", "description": "Value indicating whether the account is on the leftside (debit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_balancesheet": {"name": "is_balancesheet", "description": "Value indicating whether the account is a balance sheet account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_accounts_data\"", "created_at": 1671466640.583928}, "source.netsuite_source.netsuite.classes": {"fqn": ["netsuite_source", "netsuite", "netsuite", "classes"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.classes", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "classes", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_classes_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all classes set up in Netsuite.", "columns": {"class_id": {"name": "class_id", "description": "The unique identifier of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the class.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_classes_data\"", "created_at": 1671466640.5839949}, "source.netsuite_source.netsuite.consolidated_exchange_rates": {"fqn": ["netsuite_source", "netsuite", "netsuite", "consolidated_exchange_rates"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.consolidated_exchange_rates", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "consolidated_exchange_rates", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_consolidated_exchange_rates_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing average, historical and current exchange rates for all accounting periods.", "columns": {"accounting_book_id": {"name": "accounting_book_id", "description": "The accounting book the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period the consolidated exchange rate is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "average_rate": {"name": "average_rate", "description": "The consolidated exchange rates average rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "current_rate": {"name": "current_rate", "description": "The consolidated exchange rates current rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "historical_rate": {"name": "historical_rate", "description": "The consolidated exchange rates historical rate.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "from_subsidiary_id": {"name": "from_subsidiary_id", "description": "The subsidiary id which the consolidated exchange rate is from.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "to_subsidiary_id": {"name": "to_subsidiary_id", "description": "THe subsidiary id which the consolidated exchange rate is for.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_consolidated_exchange_rates_data\"", "created_at": 1671466640.584067}, "source.netsuite_source.netsuite.currencies": {"fqn": ["netsuite_source", "netsuite", "netsuite", "currencies"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.currencies", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "currencies", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_currencies_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "The names and symbols for all currencies set up in Netsuite.", "columns": {"currency_id": {"name": "currency_id", "description": "The unique identifier of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the currency.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "symbol": {"name": "symbol", "description": "The currency's three letter symbol (ie. USD, EUR, CAD).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_currencies_data\"", "created_at": 1671466640.5841348}, "source.netsuite_source.netsuite.customers": {"fqn": ["netsuite_source", "netsuite", "netsuite", "customers"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.customers", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "customers", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_customers_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all customer information.", "columns": {"customer_id": {"name": "customer_id", "description": "The unique identifier of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The name of the company.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "customer_extid": {"name": "customer_extid", "description": "The unique identifier of the external customer reference.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The city where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "state": {"name": "state", "description": "The state where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "zipcode": {"name": "zipcode", "description": "The zipcode of the customer.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The country where the customer is located.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "date_first_order": {"name": "date_first_order", "description": "The timestamp of the customers first order.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_customers_data\"", "created_at": 1671466640.584209}, "source.netsuite_source.netsuite.departments": {"fqn": ["netsuite_source", "netsuite", "netsuite", "departments"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.departments", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "departments", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_departments_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all departments set up in Netsuite.", "columns": {"department_id": {"name": "department_id", "description": "The unique identifier of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the department.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The department's full name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_departments_data\"", "created_at": 1671466640.584275}, "source.netsuite_source.netsuite.expense_accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "expense_accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.expense_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "expense_accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_expense_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all expense accounts.", "columns": {"expense_account_id": {"name": "expense_account_id", "description": "The unique identifier of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The expense account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the expense account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_expense_accounts_data\"", "created_at": 1671466640.5843399}, "source.netsuite_source.netsuite.income_accounts": {"fqn": ["netsuite_source", "netsuite", "netsuite", "income_accounts"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.income_accounts", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "income_accounts", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_income_accounts_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all income accounts.", "columns": {"income_account_id": {"name": "income_account_id", "description": "The unique identifier of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The income account's associated parent account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_number": {"name": "account_number", "description": "The account number associated with the income account.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_income_accounts_data\"", "created_at": 1671466640.584426}, "source.netsuite_source.netsuite.items": {"fqn": ["netsuite_source", "netsuite", "netsuite", "items"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.items", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "items", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_items_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing information about the items created in Netsuite.", "columns": {"item_id": {"name": "item_id", "description": "The unique identifier of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the item.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "type_name": {"name": "type_name", "description": "The type of the item (ie. Markup, Service, Discount).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "salesdescription": {"name": "salesdescription", "description": "The items sales description.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_items_data\"", "created_at": 1671466640.5844932}, "source.netsuite_source.netsuite.locations": {"fqn": ["netsuite_source", "netsuite", "netsuite", "locations"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.locations", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "locations", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_locations_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all locations, including store, warehouse and office locations.", "columns": {"location_id": {"name": "location_id", "description": "The unique identifier of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The location's name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the location.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "city": {"name": "city", "description": "The location's city.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "country": {"name": "country", "description": "The location's country.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_locations_data\"", "created_at": 1671466640.5845618}, "source.netsuite_source.netsuite.subsidiaries": {"fqn": ["netsuite_source", "netsuite", "netsuite", "subsidiaries"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.subsidiaries", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "subsidiaries", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_subsidiaries_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "Table detailing all subsidiaries.", "columns": {"subsidiary_id": {"name": "subsidiary_id", "description": "The unique identifier of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "fiscal_calendar_id": {"name": "fiscal_calendar_id", "description": "The fiscal calendar id associated with the fiscal calendar the subsidiary is on.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "full_name": {"name": "full_name", "description": "The full name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the subsidiary.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "parent_id": {"name": "parent_id", "description": "The parent subsidiary id which the subsidiary is under.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_subsidiaries_data\"", "created_at": 1671466640.584629}, "source.netsuite_source.netsuite.transaction_lines": {"fqn": ["netsuite_source", "netsuite", "netsuite", "transaction_lines"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.transaction_lines", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "transaction_lines", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transaction_lines_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transaction lines for all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The transaction id which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_line_id": {"name": "transaction_line_id", "description": "The unique identifier of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "subsidiary_id": {"name": "subsidiary_id", "description": "The subsidiary id of the subsidiary which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "account_id": {"name": "account_id", "description": "The account id of the account linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "company_id": {"name": "company_id", "description": "The company id of the company linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "item_id": {"name": "item_id", "description": "The item id of the item which is included in the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "amount": {"name": "amount", "description": "The amount of the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "non_posting_line": {"name": "non_posting_line", "description": "Value indicating whether the transaction line is a non posting line (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "class_id": {"name": "class_id", "description": "The class id of the class which the transaction line is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "location_id": {"name": "location_id", "description": "The location id of the location which the transaction line took place.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "department_id": {"name": "department_id", "description": "The department id of the department linked to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "memo": {"name": "memo", "description": "The memo attached to the transaction line.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transaction_lines_data\"", "created_at": 1671466640.584705}, "source.netsuite_source.netsuite.transactions": {"fqn": ["netsuite_source", "netsuite", "netsuite", "transactions"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.transactions", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "transactions", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_transactions_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all transactions.", "columns": {"transaction_id": {"name": "transaction_id", "description": "The unique identifier of the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "status": {"name": "status", "description": "The status of the transaction (ie. Paid In Full, Open, Cancelled).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "trandate": {"name": "trandate", "description": "The timestamp of the transaction date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "currency_id": {"name": "currency_id", "description": "The currency id of the currency used in the transaction.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "accounting_period_id": {"name": "accounting_period_id", "description": "The accounting period id of the accounting period which the transaction took place in.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "due_date": {"name": "due_date", "description": "The timestamp of the transaction due date.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "transaction_type": {"name": "transaction_type", "description": "The transaction type (ie. Bill, Check, Deposit).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_intercompany": {"name": "is_intercompany", "description": "Value indicating whether the transaction is intercompany (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "is_advanced_intercompany": {"name": "is_advanced_intercompany", "description": "Value indicating whether the transaction is an advanced intercompany journal entry (either Yes or No).", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_transactions_data\"", "created_at": 1671466640.584775}, "source.netsuite_source.netsuite.vendor_types": {"fqn": ["netsuite_source", "netsuite", "netsuite", "vendor_types"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.vendor_types", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "vendor_types", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendor_types_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all the various types of vendors.", "columns": {"vendor_type_id": {"name": "vendor_type_id", "description": "The unique identifier of the vendor type", "meta": {}, "data_type": null, "quote": null, "tags": []}, "name": {"name": "name", "description": "The name of the vendor type.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendor_types_data\"", "created_at": 1671466640.5848389}, "source.netsuite_source.netsuite.vendors": {"fqn": ["netsuite_source", "netsuite", "netsuite", "vendors"], "database": "postgres", "schema": "netsuite_source_integration_tests", "unique_id": "source.netsuite_source.netsuite.vendors", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "models/netsuite/src_netsuite.yml", "original_file_path": "models/netsuite/src_netsuite.yml", "name": "vendors", "source_name": "netsuite", "source_description": "", "loader": "fivetran", "identifier": "netsuite_vendors_data", "resource_type": "source", "quoting": {"database": null, "schema": null, "identifier": null, "column": null}, "loaded_at_field": "_fivetran_synced", "freshness": {"warn_after": {"count": 24, "period": "hour"}, "error_after": {"count": 48, "period": "hour"}, "filter": null}, "external": null, "description": "A table detailing all vendor information.", "columns": {"vendor_id": {"name": "vendor_id", "description": "The unique identifier of the vendor.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "vendor_type_id": {"name": "vendor_type_id", "description": "The vendor type the vendor is associated with.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "companyname": {"name": "companyname", "description": "The vendor's company name.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "created_date": {"name": "created_date", "description": "The timestamp of the date the vendor was created.", "meta": {}, "data_type": null, "quote": null, "tags": []}, "_fivetran_deleted": {"name": "_fivetran_deleted", "description": "Boolean created by Fivetran to indicate whether the record has been deleted.", "meta": {}, "data_type": null, "quote": null, "tags": []}}, "meta": {}, "source_meta": {}, "tags": [], "config": {"enabled": true}, "patch_path": null, "unrendered_config": {"enabled": true}, "relation_name": "\"postgres\".\"netsuite_source_integration_tests\".\"netsuite_vendors_data\"", "created_at": 1671466640.584906}}, "macros": {"macro.dbt_postgres.postgres__current_timestamp": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp", "macro_sql": "{% macro postgres__current_timestamp() -%}\n now()\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.7952561, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_string_as_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_string_as_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_string_as_time", "macro_sql": "{% macro postgres__snapshot_string_as_time(timestamp) -%}\n {%- set result = \"'\" ~ timestamp ~ \"'::timestamp without time zone\" -%}\n {{ return(result) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.7954829, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_get_time": {"unique_id": "macro.dbt_postgres.postgres__snapshot_get_time", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__snapshot_get_time", "macro_sql": "{% macro postgres__snapshot_get_time() -%}\n {{ current_timestamp() }}::timestamp without time zone\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.795593, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_backcompat", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_backcompat", "macro_sql": "{% macro postgres__current_timestamp_backcompat() %}\n current_timestamp::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.795702, "supported_languages": null}, "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/timestamps.sql", "original_file_path": "macros/timestamps.sql", "name": "postgres__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro postgres__current_timestamp_in_utc_backcompat() %}\n (current_timestamp at time zone 'utc')::{{ type_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.7958138, "supported_languages": null}, "macro.dbt_postgres.postgres__get_catalog": {"unique_id": "macro.dbt_postgres.postgres__get_catalog", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/catalog.sql", "original_file_path": "macros/catalog.sql", "name": "postgres__get_catalog", "macro_sql": "{% macro postgres__get_catalog(information_schema, schemas) -%}\n\n {%- call statement('catalog', fetch_result=True) -%}\n {#\n If the user has multiple databases set and the first one is wrong, this will fail.\n But we won't fail in the case where there are multiple quoting-difference-only dbs, which is better.\n #}\n {% set database = information_schema.database %}\n {{ adapter.verify_database(database) }}\n\n select\n '{{ database }}' as table_database,\n sch.nspname as table_schema,\n tbl.relname as table_name,\n case tbl.relkind\n when 'v' then 'VIEW'\n else 'BASE TABLE'\n end as table_type,\n tbl_desc.description as table_comment,\n col.attname as column_name,\n col.attnum as column_index,\n pg_catalog.format_type(col.atttypid, col.atttypmod) as column_type,\n col_desc.description as column_comment,\n pg_get_userbyid(tbl.relowner) as table_owner\n\n from pg_catalog.pg_namespace sch\n join pg_catalog.pg_class tbl on tbl.relnamespace = sch.oid\n join pg_catalog.pg_attribute col on col.attrelid = tbl.oid\n left outer join pg_catalog.pg_description tbl_desc on (tbl_desc.objoid = tbl.oid and tbl_desc.objsubid = 0)\n left outer join pg_catalog.pg_description col_desc on (col_desc.objoid = tbl.oid and col_desc.objsubid = col.attnum)\n\n where (\n {%- for schema in schemas -%}\n upper(sch.nspname) = upper('{{ schema }}'){%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n )\n and not pg_is_other_temp_schema(sch.oid) -- not a temporary schema belonging to another session\n and tbl.relpersistence in ('p', 'u') -- [p]ermanent table or [u]nlogged table. Exclude [t]emporary tables\n and tbl.relkind in ('r', 'v', 'f', 'p') -- o[r]dinary table, [v]iew, [f]oreign table, [p]artitioned table. Other values are [i]ndex, [S]equence, [c]omposite type, [t]OAST table, [m]aterialized view\n and col.attnum > 0 -- negative numbers are used for system columns such as oid\n and not col.attisdropped -- column as not been dropped\n\n order by\n sch.nspname,\n tbl.relname,\n col.attnum\n\n {%- endcall -%}\n\n {{ return(load_result('catalog').table) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.796962, "supported_languages": null}, "macro.dbt_postgres.postgres_get_relations": {"unique_id": "macro.dbt_postgres.postgres_get_relations", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/relations.sql", "original_file_path": "macros/relations.sql", "name": "postgres_get_relations", "macro_sql": "{% macro postgres_get_relations () -%}\n\n {#\n -- in pg_depend, objid is the dependent, refobjid is the referenced object\n -- > a pg_depend entry indicates that the referenced object cannot be\n -- > dropped without also dropping the dependent object.\n #}\n\n {%- call statement('relations', fetch_result=True) -%}\n with relation as (\n select\n pg_rewrite.ev_class as class,\n pg_rewrite.oid as id\n from pg_rewrite\n ),\n class as (\n select\n oid as id,\n relname as name,\n relnamespace as schema,\n relkind as kind\n from pg_class\n ),\n dependency as (\n select distinct\n pg_depend.objid as id,\n pg_depend.refobjid as ref\n from pg_depend\n ),\n schema as (\n select\n pg_namespace.oid as id,\n pg_namespace.nspname as name\n from pg_namespace\n where nspname != 'information_schema' and nspname not like 'pg\\_%'\n ),\n referenced as (\n select\n relation.id AS id,\n referenced_class.name ,\n referenced_class.schema ,\n referenced_class.kind\n from relation\n join class as referenced_class on relation.class=referenced_class.id\n where referenced_class.kind in ('r', 'v')\n ),\n relationships as (\n select\n referenced.name as referenced_name,\n referenced.schema as referenced_schema_id,\n dependent_class.name as dependent_name,\n dependent_class.schema as dependent_schema_id,\n referenced.kind as kind\n from referenced\n join dependency on referenced.id=dependency.id\n join class as dependent_class on dependency.ref=dependent_class.id\n where\n (referenced.name != dependent_class.name or\n referenced.schema != dependent_class.schema)\n )\n\n select\n referenced_schema.name as referenced_schema,\n relationships.referenced_name as referenced_name,\n dependent_schema.name as dependent_schema,\n relationships.dependent_name as dependent_name\n from relationships\n join schema as dependent_schema on relationships.dependent_schema_id=dependent_schema.id\n join schema as referenced_schema on relationships.referenced_schema_id=referenced_schema.id\n group by referenced_schema, referenced_name, dependent_schema, dependent_name\n order by referenced_schema, referenced_name, dependent_schema, dependent_name;\n\n {%- endcall -%}\n\n {{ return(load_result('relations').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.797643, "supported_languages": null}, "macro.dbt_postgres.postgres__create_table_as": {"unique_id": "macro.dbt_postgres.postgres__create_table_as", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_table_as", "macro_sql": "{% macro postgres__create_table_as(temporary, relation, sql) -%}\n {%- set unlogged = config.get('unlogged', default=false) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary -%}\n temporary\n {%- elif unlogged -%}\n unlogged\n {%- endif %} table {{ relation }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.803096, "supported_languages": null}, "macro.dbt_postgres.postgres__get_create_index_sql": {"unique_id": "macro.dbt_postgres.postgres__get_create_index_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_create_index_sql", "macro_sql": "{% macro postgres__get_create_index_sql(relation, index_dict) -%}\n {%- set index_config = adapter.parse_index(index_dict) -%}\n {%- set comma_separated_columns = \", \".join(index_config.columns) -%}\n {%- set index_name = index_config.render(relation) -%}\n\n create {% if index_config.unique -%}\n unique\n {%- endif %} index if not exists\n \"{{ index_name }}\"\n on {{ relation }} {% if index_config.type -%}\n using {{ index_config.type }}\n {%- endif %}\n ({{ comma_separated_columns }});\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.803675, "supported_languages": null}, "macro.dbt_postgres.postgres__create_schema": {"unique_id": "macro.dbt_postgres.postgres__create_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__create_schema", "macro_sql": "{% macro postgres__create_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier().include(database=False) }}\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.803999, "supported_languages": null}, "macro.dbt_postgres.postgres__drop_schema": {"unique_id": "macro.dbt_postgres.postgres__drop_schema", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__drop_schema", "macro_sql": "{% macro postgres__drop_schema(relation) -%}\n {% if relation.database -%}\n {{ adapter.verify_database(relation.database) }}\n {%- endif -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier().include(database=False) }} cascade\n {%- endcall -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.804311, "supported_languages": null}, "macro.dbt_postgres.postgres__get_columns_in_relation": {"unique_id": "macro.dbt_postgres.postgres__get_columns_in_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_columns_in_relation", "macro_sql": "{% macro postgres__get_columns_in_relation(relation) -%}\n {% call statement('get_columns_in_relation', fetch_result=True) %}\n select\n column_name,\n data_type,\n character_maximum_length,\n numeric_precision,\n numeric_scale\n\n from {{ relation.information_schema('columns') }}\n where table_name = '{{ relation.identifier }}'\n {% if relation.schema %}\n and table_schema = '{{ relation.schema }}'\n {% endif %}\n order by ordinal_position\n\n {% endcall %}\n {% set table = load_result('get_columns_in_relation').table %}\n {{ return(sql_convert_columns_in_relation(table)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.sql_convert_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.80478, "supported_languages": null}, "macro.dbt_postgres.postgres__list_relations_without_caching": {"unique_id": "macro.dbt_postgres.postgres__list_relations_without_caching", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_relations_without_caching", "macro_sql": "{% macro postgres__list_relations_without_caching(schema_relation) %}\n {% call statement('list_relations_without_caching', fetch_result=True) -%}\n select\n '{{ schema_relation.database }}' as database,\n tablename as name,\n schemaname as schema,\n 'table' as type\n from pg_tables\n where schemaname ilike '{{ schema_relation.schema }}'\n union all\n select\n '{{ schema_relation.database }}' as database,\n viewname as name,\n schemaname as schema,\n 'view' as type\n from pg_views\n where schemaname ilike '{{ schema_relation.schema }}'\n {% endcall %}\n {{ return(load_result('list_relations_without_caching').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.805145, "supported_languages": null}, "macro.dbt_postgres.postgres__information_schema_name": {"unique_id": "macro.dbt_postgres.postgres__information_schema_name", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__information_schema_name", "macro_sql": "{% macro postgres__information_schema_name(database) -%}\n {% if database_name -%}\n {{ adapter.verify_database(database_name) }}\n {%- endif -%}\n information_schema\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.805314, "supported_languages": null}, "macro.dbt_postgres.postgres__list_schemas": {"unique_id": "macro.dbt_postgres.postgres__list_schemas", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__list_schemas", "macro_sql": "{% macro postgres__list_schemas(database) %}\n {% if database -%}\n {{ adapter.verify_database(database) }}\n {%- endif -%}\n {% call statement('list_schemas', fetch_result=True, auto_begin=False) %}\n select distinct nspname from pg_namespace\n {% endcall %}\n {{ return(load_result('list_schemas').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.805656, "supported_languages": null}, "macro.dbt_postgres.postgres__check_schema_exists": {"unique_id": "macro.dbt_postgres.postgres__check_schema_exists", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__check_schema_exists", "macro_sql": "{% macro postgres__check_schema_exists(information_schema, schema) -%}\n {% if information_schema.database -%}\n {{ adapter.verify_database(information_schema.database) }}\n {%- endif -%}\n {% call statement('check_schema_exists', fetch_result=True, auto_begin=False) %}\n select count(*) from pg_namespace where nspname = '{{ schema }}'\n {% endcall %}\n {{ return(load_result('check_schema_exists').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.806027, "supported_languages": null}, "macro.dbt_postgres.postgres__make_relation_with_suffix": {"unique_id": "macro.dbt_postgres.postgres__make_relation_with_suffix", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_relation_with_suffix", "macro_sql": "{% macro postgres__make_relation_with_suffix(base_relation, suffix, dstring) %}\n {% if dstring %}\n {% set dt = modules.datetime.datetime.now() %}\n {% set dtstring = dt.strftime(\"%H%M%S%f\") %}\n {% set suffix = suffix ~ dtstring %}\n {% endif %}\n {% set suffix_length = suffix|length %}\n {% set relation_max_name_length = base_relation.relation_max_name_length() %}\n {% if suffix_length > relation_max_name_length %}\n {% do exceptions.raise_compiler_error('Relation suffix is too long (' ~ suffix_length ~ ' characters). Maximum length is ' ~ relation_max_name_length ~ ' characters.') %}\n {% endif %}\n {% set identifier = base_relation.identifier[:relation_max_name_length - suffix_length] ~ suffix %}\n\n {{ return(base_relation.incorporate(path={\"identifier\": identifier })) }}\n\n {% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.806876, "supported_languages": null}, "macro.dbt_postgres.postgres__make_intermediate_relation": {"unique_id": "macro.dbt_postgres.postgres__make_intermediate_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_intermediate_relation", "macro_sql": "{% macro postgres__make_intermediate_relation(base_relation, suffix) %}\n {{ return(postgres__make_relation_with_suffix(base_relation, suffix, dstring=False)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8070688, "supported_languages": null}, "macro.dbt_postgres.postgres__make_temp_relation": {"unique_id": "macro.dbt_postgres.postgres__make_temp_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_temp_relation", "macro_sql": "{% macro postgres__make_temp_relation(base_relation, suffix) %}\n {% set temp_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=True) %}\n {{ return(temp_relation.incorporate(path={\"schema\": none,\n \"database\": none})) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.807376, "supported_languages": null}, "macro.dbt_postgres.postgres__make_backup_relation": {"unique_id": "macro.dbt_postgres.postgres__make_backup_relation", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__make_backup_relation", "macro_sql": "{% macro postgres__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {% set backup_relation = postgres__make_relation_with_suffix(base_relation, suffix, dstring=False) %}\n {{ return(backup_relation.incorporate(type=backup_relation_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_relation_with_suffix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8076348, "supported_languages": null}, "macro.dbt_postgres.postgres_escape_comment": {"unique_id": "macro.dbt_postgres.postgres_escape_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres_escape_comment", "macro_sql": "{% macro postgres_escape_comment(comment) -%}\n {% if comment is not string %}\n {% do exceptions.raise_compiler_error('cannot escape a non-string: ' ~ comment) %}\n {% endif %}\n {%- set magic = '$dbt_comment_literal_block$' -%}\n {%- if magic in comment -%}\n {%- do exceptions.raise_compiler_error('The string ' ~ magic ~ ' is not allowed in comments.') -%}\n {%- endif -%}\n {{ magic }}{{ comment }}{{ magic }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.808044, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_relation_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_relation_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_relation_comment", "macro_sql": "{% macro postgres__alter_relation_comment(relation, comment) %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on {{ relation.type }} {{ relation }} is {{ escaped_comment }};\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8082602, "supported_languages": null}, "macro.dbt_postgres.postgres__alter_column_comment": {"unique_id": "macro.dbt_postgres.postgres__alter_column_comment", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__alter_column_comment", "macro_sql": "{% macro postgres__alter_column_comment(relation, column_dict) %}\n {% set existing_columns = adapter.get_columns_in_relation(relation) | map(attribute=\"name\") | list %}\n {% for column_name in column_dict if (column_name in existing_columns) %}\n {% set comment = column_dict[column_name]['description'] %}\n {% set escaped_comment = postgres_escape_comment(comment) %}\n comment on column {{ relation }}.{{ adapter.quote(column_name) if column_dict[column_name]['quote'] else column_name }} is {{ escaped_comment }};\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres_escape_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.808838, "supported_languages": null}, "macro.dbt_postgres.postgres__get_show_grant_sql": {"unique_id": "macro.dbt_postgres.postgres__get_show_grant_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__get_show_grant_sql", "macro_sql": "\n\n{%- macro postgres__get_show_grant_sql(relation) -%}\n select grantee, privilege_type\n from {{ relation.information_schema('role_table_grants') }}\n where grantor = current_role\n and grantee != current_role\n and table_schema = '{{ relation.schema }}'\n and table_name = '{{ relation.identifier }}'\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8090408, "supported_languages": null}, "macro.dbt_postgres.postgres__copy_grants": {"unique_id": "macro.dbt_postgres.postgres__copy_grants", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/adapters.sql", "original_file_path": "macros/adapters.sql", "name": "postgres__copy_grants", "macro_sql": "{% macro postgres__copy_grants() %}\n {{ return(False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.809163, "supported_languages": null}, "macro.dbt_postgres.postgres__get_incremental_default_sql": {"unique_id": "macro.dbt_postgres.postgres__get_incremental_default_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/incremental_strategies.sql", "original_file_path": "macros/materializations/incremental_strategies.sql", "name": "postgres__get_incremental_default_sql", "macro_sql": "{% macro postgres__get_incremental_default_sql(arg_dict) %}\n\n {% if arg_dict[\"unique_key\"] %}\n {% do return(get_incremental_delete_insert_sql(arg_dict)) %}\n {% else %}\n {% do return(get_incremental_append_sql(arg_dict)) %}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_delete_insert_sql", "macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.809663, "supported_languages": null}, "macro.dbt_postgres.postgres__snapshot_merge_sql": {"unique_id": "macro.dbt_postgres.postgres__snapshot_merge_sql", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/materializations/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshot_merge.sql", "name": "postgres__snapshot_merge_sql", "macro_sql": "{% macro postgres__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n update {{ target }}\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_scd_id::text = {{ target }}.dbt_scd_id::text\n and DBT_INTERNAL_SOURCE.dbt_change_type::text in ('update'::text, 'delete'::text)\n and {{ target }}.dbt_valid_to is null;\n\n insert into {{ target }} ({{ insert_cols_csv }})\n select {% for column in insert_cols -%}\n DBT_INTERNAL_SOURCE.{{ column }} {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n from {{ source }} as DBT_INTERNAL_SOURCE\n where DBT_INTERNAL_SOURCE.dbt_change_type::text = 'insert'::text;\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.810431, "supported_languages": null}, "macro.dbt_postgres.postgres__dateadd": {"unique_id": "macro.dbt_postgres.postgres__dateadd", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "postgres__dateadd", "macro_sql": "{% macro postgres__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n {{ from_date_or_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8107169, "supported_languages": null}, "macro.dbt_postgres.postgres__listagg": {"unique_id": "macro.dbt_postgres.postgres__listagg", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "postgres__listagg", "macro_sql": "{% macro postgres__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n (array_agg(\n {{ measure }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n ))[1:{{ limit_num }}],\n {{ delimiter_text }}\n )\n {%- else %}\n string_agg(\n {{ measure }},\n {{ delimiter_text }}\n {% if order_by_clause -%}\n {{ order_by_clause }}\n {%- endif %}\n )\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8113668, "supported_languages": null}, "macro.dbt_postgres.postgres__datediff": {"unique_id": "macro.dbt_postgres.postgres__datediff", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "postgres__datediff", "macro_sql": "{% macro postgres__datediff(first_date, second_date, datepart) -%}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.814494, "supported_languages": null}, "macro.dbt_postgres.postgres__any_value": {"unique_id": "macro.dbt_postgres.postgres__any_value", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "postgres__any_value", "macro_sql": "{% macro postgres__any_value(expression) -%}\n\n min({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.814736, "supported_languages": null}, "macro.dbt_postgres.postgres__last_day": {"unique_id": "macro.dbt_postgres.postgres__last_day", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "postgres__last_day", "macro_sql": "{% macro postgres__last_day(date, datepart) -%}\n\n {%- if datepart == 'quarter' -%}\n -- postgres dateadd does not support quarter interval.\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd('month', '3', dbt.date_trunc(datepart, date))\n )}}\n as date)\n {%- else -%}\n {{dbt.default_last_day(date, datepart)}}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc", "macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8153632, "supported_languages": null}, "macro.dbt_postgres.postgres__split_part": {"unique_id": "macro.dbt_postgres.postgres__split_part", "package_name": "dbt_postgres", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/postgres", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "postgres__split_part", "macro_sql": "{% macro postgres__split_part(string_text, delimiter_text, part_number) %}\n\n {% if part_number >= 0 %}\n {{ dbt.default__split_part(string_text, delimiter_text, part_number) }}\n {% else %}\n {{ dbt._split_part_negative(string_text, delimiter_text, part_number) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__split_part", "macro.dbt._split_part_negative"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.815903, "supported_languages": null}, "macro.dbt.run_hooks": {"unique_id": "macro.dbt.run_hooks", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "run_hooks", "macro_sql": "{% macro run_hooks(hooks, inside_transaction=True) %}\n {% for hook in hooks | selectattr('transaction', 'equalto', inside_transaction) %}\n {% if not inside_transaction and loop.first %}\n {% call statement(auto_begin=inside_transaction) %}\n commit;\n {% endcall %}\n {% endif %}\n {% set rendered = render(hook.get('sql')) | trim %}\n {% if (rendered | length) > 0 %}\n {% call statement(auto_begin=inside_transaction) %}\n {{ rendered }}\n {% endcall %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.817044, "supported_languages": null}, "macro.dbt.make_hook_config": {"unique_id": "macro.dbt.make_hook_config", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "make_hook_config", "macro_sql": "{% macro make_hook_config(sql, inside_transaction) %}\n {{ tojson({\"sql\": sql, \"transaction\": inside_transaction}) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.817239, "supported_languages": null}, "macro.dbt.before_begin": {"unique_id": "macro.dbt.before_begin", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "before_begin", "macro_sql": "{% macro before_begin(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.817379, "supported_languages": null}, "macro.dbt.in_transaction": {"unique_id": "macro.dbt.in_transaction", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "in_transaction", "macro_sql": "{% macro in_transaction(sql) %}\n {{ make_hook_config(sql, inside_transaction=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8175209, "supported_languages": null}, "macro.dbt.after_commit": {"unique_id": "macro.dbt.after_commit", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/hooks.sql", "original_file_path": "macros/materializations/hooks.sql", "name": "after_commit", "macro_sql": "{% macro after_commit(sql) %}\n {{ make_hook_config(sql, inside_transaction=False) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_hook_config"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.817661, "supported_languages": null}, "macro.dbt.set_sql_header": {"unique_id": "macro.dbt.set_sql_header", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "set_sql_header", "macro_sql": "{% macro set_sql_header(config) -%}\n {{ config.set('sql_header', caller()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.818104, "supported_languages": null}, "macro.dbt.should_full_refresh": {"unique_id": "macro.dbt.should_full_refresh", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_full_refresh", "macro_sql": "{% macro should_full_refresh() %}\n {% set config_full_refresh = config.get('full_refresh') %}\n {% if config_full_refresh is none %}\n {% set config_full_refresh = flags.FULL_REFRESH %}\n {% endif %}\n {% do return(config_full_refresh) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8184052, "supported_languages": null}, "macro.dbt.should_store_failures": {"unique_id": "macro.dbt.should_store_failures", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/configs.sql", "original_file_path": "macros/materializations/configs.sql", "name": "should_store_failures", "macro_sql": "{% macro should_store_failures() %}\n {% set config_store_failures = config.get('store_failures') %}\n {% if config_store_failures is none %}\n {% set config_store_failures = flags.STORE_FAILURES %}\n {% endif %}\n {% do return(config_store_failures) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8187048, "supported_languages": null}, "macro.dbt.snapshot_merge_sql": {"unique_id": "macro.dbt.snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "snapshot_merge_sql", "macro_sql": "{% macro snapshot_merge_sql(target, source, insert_cols) -%}\n {{ adapter.dispatch('snapshot_merge_sql', 'dbt')(target, source, insert_cols) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.819194, "supported_languages": null}, "macro.dbt.default__snapshot_merge_sql": {"unique_id": "macro.dbt.default__snapshot_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot_merge.sql", "original_file_path": "macros/materializations/snapshots/snapshot_merge.sql", "name": "default__snapshot_merge_sql", "macro_sql": "{% macro default__snapshot_merge_sql(target, source, insert_cols) -%}\n {%- set insert_cols_csv = insert_cols | join(', ') -%}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on DBT_INTERNAL_SOURCE.dbt_scd_id = DBT_INTERNAL_DEST.dbt_scd_id\n\n when matched\n and DBT_INTERNAL_DEST.dbt_valid_to is null\n and DBT_INTERNAL_SOURCE.dbt_change_type in ('update', 'delete')\n then update\n set dbt_valid_to = DBT_INTERNAL_SOURCE.dbt_valid_to\n\n when not matched\n and DBT_INTERNAL_SOURCE.dbt_change_type = 'insert'\n then insert ({{ insert_cols_csv }})\n values ({{ insert_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.819458, "supported_languages": null}, "macro.dbt.strategy_dispatch": {"unique_id": "macro.dbt.strategy_dispatch", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "strategy_dispatch", "macro_sql": "{% macro strategy_dispatch(name) -%}\n{% set original_name = name %}\n {% if '.' in name %}\n {% set package_name, name = name.split(\".\", 1) %}\n {% else %}\n {% set package_name = none %}\n {% endif %}\n\n {% if package_name is none %}\n {% set package_context = context %}\n {% elif package_name in context %}\n {% set package_context = context[package_name] %}\n {% else %}\n {% set error_msg %}\n Could not find package '{{package_name}}', called with '{{original_name}}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n\n {%- set search_name = 'snapshot_' ~ name ~ '_strategy' -%}\n\n {% if search_name not in package_context %}\n {% set error_msg %}\n The specified strategy macro '{{name}}' was not found in package '{{ package_name }}'\n {% endset %}\n {{ exceptions.raise_compiler_error(error_msg | trim) }}\n {% endif %}\n {{ return(package_context[search_name]) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.822804, "supported_languages": null}, "macro.dbt.snapshot_hash_arguments": {"unique_id": "macro.dbt.snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_hash_arguments", "macro_sql": "{% macro snapshot_hash_arguments(args) -%}\n {{ adapter.dispatch('snapshot_hash_arguments', 'dbt')(args) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.822973, "supported_languages": null}, "macro.dbt.default__snapshot_hash_arguments": {"unique_id": "macro.dbt.default__snapshot_hash_arguments", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_hash_arguments", "macro_sql": "{% macro default__snapshot_hash_arguments(args) -%}\n md5({%- for arg in args -%}\n coalesce(cast({{ arg }} as varchar ), '')\n {% if not loop.last %} || '|' || {% endif %}\n {%- endfor -%})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.823188, "supported_languages": null}, "macro.dbt.snapshot_timestamp_strategy": {"unique_id": "macro.dbt.snapshot_timestamp_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_timestamp_strategy", "macro_sql": "{% macro snapshot_timestamp_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set primary_key = config['unique_key'] %}\n {% set updated_at = config['updated_at'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n\n {#/*\n The snapshot relation might not have an {{ updated_at }} value if the\n snapshot strategy is changed from `check` to `timestamp`. We\n should use a dbt-created column for the comparison in the snapshot\n table instead of assuming that the user-supplied {{ updated_at }}\n will be present in the historical data.\n\n See https://github.com/dbt-labs/dbt-core/issues/2350\n */ #}\n {% set row_changed_expr -%}\n ({{ snapshotted_rel }}.dbt_valid_from < {{ current_rel }}.{{ updated_at }})\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8238962, "supported_languages": null}, "macro.dbt.snapshot_string_as_time": {"unique_id": "macro.dbt.snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_string_as_time", "macro_sql": "{% macro snapshot_string_as_time(timestamp) -%}\n {{ adapter.dispatch('snapshot_string_as_time', 'dbt')(timestamp) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_string_as_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.824057, "supported_languages": null}, "macro.dbt.default__snapshot_string_as_time": {"unique_id": "macro.dbt.default__snapshot_string_as_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "default__snapshot_string_as_time", "macro_sql": "{% macro default__snapshot_string_as_time(timestamp) %}\n {% do exceptions.raise_not_implemented(\n 'snapshot_string_as_time macro not implemented for adapter '+adapter.type()\n ) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8242319, "supported_languages": null}, "macro.dbt.snapshot_check_all_get_existing_columns": {"unique_id": "macro.dbt.snapshot_check_all_get_existing_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_all_get_existing_columns", "macro_sql": "{% macro snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) -%}\n {%- if not target_exists -%}\n {#-- no table yet -> return whatever the query does --#}\n {{ return((false, query_columns)) }}\n {%- endif -%}\n\n {#-- handle any schema changes --#}\n {%- set target_relation = adapter.get_relation(database=node.database, schema=node.schema, identifier=node.alias) -%}\n\n {% if check_cols_config == 'all' %}\n {%- set query_columns = get_columns_in_query(node['compiled_code']) -%}\n\n {% elif check_cols_config is iterable and (check_cols_config | length) > 0 %}\n {#-- query for proper casing/quoting, to support comparison below --#}\n {%- set select_check_cols_from_target -%}\n select {{ check_cols_config | join(', ') }} from ({{ node['compiled_code'] }}) subq\n {%- endset -%}\n {% set query_columns = get_columns_in_query(select_check_cols_from_target) %}\n\n {% else %}\n {% do exceptions.raise_compiler_error(\"Invalid value for 'check_cols': \" ~ check_cols_config) %}\n {% endif %}\n\n {%- set existing_cols = adapter.get_columns_in_relation(target_relation) | map(attribute = 'name') | list -%}\n {%- set ns = namespace() -%} {#-- handle for-loop scoping with a namespace --#}\n {%- set ns.column_added = false -%}\n\n {%- set intersection = [] -%}\n {%- for col in query_columns -%}\n {%- if col in existing_cols -%}\n {%- do intersection.append(adapter.quote(col)) -%}\n {%- else -%}\n {% set ns.column_added = true %}\n {%- endif -%}\n {%- endfor -%}\n {{ return((ns.column_added, intersection)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8255858, "supported_languages": null}, "macro.dbt.snapshot_check_strategy": {"unique_id": "macro.dbt.snapshot_check_strategy", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/strategies.sql", "original_file_path": "macros/materializations/snapshots/strategies.sql", "name": "snapshot_check_strategy", "macro_sql": "{% macro snapshot_check_strategy(node, snapshotted_rel, current_rel, config, target_exists) %}\n {% set check_cols_config = config['check_cols'] %}\n {% set primary_key = config['unique_key'] %}\n {% set invalidate_hard_deletes = config.get('invalidate_hard_deletes', false) %}\n {% set updated_at = config.get('updated_at', snapshot_get_time()) %}\n\n {% set column_added = false %}\n\n {% set column_added, check_cols = snapshot_check_all_get_existing_columns(node, target_exists, check_cols_config) %}\n\n {%- set row_changed_expr -%}\n (\n {%- if column_added -%}\n {{ get_true_sql() }}\n {%- else -%}\n {%- for col in check_cols -%}\n {{ snapshotted_rel }}.{{ col }} != {{ current_rel }}.{{ col }}\n or\n (\n (({{ snapshotted_rel }}.{{ col }} is null) and not ({{ current_rel }}.{{ col }} is null))\n or\n ((not {{ snapshotted_rel }}.{{ col }} is null) and ({{ current_rel }}.{{ col }} is null))\n )\n {%- if not loop.last %} or {% endif -%}\n {%- endfor -%}\n {%- endif -%}\n )\n {%- endset %}\n\n {% set scd_id_expr = snapshot_hash_arguments([primary_key, updated_at]) %}\n\n {% do return({\n \"unique_key\": primary_key,\n \"updated_at\": updated_at,\n \"row_changed\": row_changed_expr,\n \"scd_id\": scd_id_expr,\n \"invalidate_hard_deletes\": invalidate_hard_deletes\n }) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time", "macro.dbt.snapshot_check_all_get_existing_columns", "macro.dbt.get_true_sql", "macro.dbt.snapshot_hash_arguments"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.826899, "supported_languages": null}, "macro.dbt.create_columns": {"unique_id": "macro.dbt.create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "create_columns", "macro_sql": "{% macro create_columns(relation, columns) %}\n {{ adapter.dispatch('create_columns', 'dbt')(relation, columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.830614, "supported_languages": null}, "macro.dbt.default__create_columns": {"unique_id": "macro.dbt.default__create_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__create_columns", "macro_sql": "{% macro default__create_columns(relation, columns) %}\n {% for column in columns %}\n {% call statement() %}\n alter table {{ relation }} add column \"{{ column.name }}\" {{ column.data_type }};\n {% endcall %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8308969, "supported_languages": null}, "macro.dbt.post_snapshot": {"unique_id": "macro.dbt.post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "post_snapshot", "macro_sql": "{% macro post_snapshot(staging_relation) %}\n {{ adapter.dispatch('post_snapshot', 'dbt')(staging_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8310668, "supported_languages": null}, "macro.dbt.default__post_snapshot": {"unique_id": "macro.dbt.default__post_snapshot", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__post_snapshot", "macro_sql": "{% macro default__post_snapshot(staging_relation) %}\n {# no-op #}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.83115, "supported_languages": null}, "macro.dbt.get_true_sql": {"unique_id": "macro.dbt.get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "get_true_sql", "macro_sql": "{% macro get_true_sql() %}\n {{ adapter.dispatch('get_true_sql', 'dbt')() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_true_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8312929, "supported_languages": null}, "macro.dbt.default__get_true_sql": {"unique_id": "macro.dbt.default__get_true_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__get_true_sql", "macro_sql": "{% macro default__get_true_sql() %}\n {{ return('TRUE') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.831402, "supported_languages": null}, "macro.dbt.snapshot_staging_table": {"unique_id": "macro.dbt.snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "snapshot_staging_table", "macro_sql": "{% macro snapshot_staging_table(strategy, source_sql, target_relation) -%}\n {{ adapter.dispatch('snapshot_staging_table', 'dbt')(strategy, source_sql, target_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__snapshot_staging_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.831598, "supported_languages": null}, "macro.dbt.default__snapshot_staging_table": {"unique_id": "macro.dbt.default__snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__snapshot_staging_table", "macro_sql": "{% macro default__snapshot_staging_table(strategy, source_sql, target_relation) -%}\n\n with snapshot_query as (\n\n {{ source_sql }}\n\n ),\n\n snapshotted_data as (\n\n select *,\n {{ strategy.unique_key }} as dbt_unique_key\n\n from {{ target_relation }}\n where dbt_valid_to is null\n\n ),\n\n insertions_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to,\n {{ strategy.scd_id }} as dbt_scd_id\n\n from snapshot_query\n ),\n\n updates_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n {{ strategy.updated_at }} as dbt_valid_to\n\n from snapshot_query\n ),\n\n {%- if strategy.invalidate_hard_deletes %}\n\n deletes_source_data as (\n\n select\n *,\n {{ strategy.unique_key }} as dbt_unique_key\n from snapshot_query\n ),\n {% endif %}\n\n insertions as (\n\n select\n 'insert' as dbt_change_type,\n source_data.*\n\n from insertions_source_data as source_data\n left outer join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where snapshotted_data.dbt_unique_key is null\n or (\n snapshotted_data.dbt_unique_key is not null\n and (\n {{ strategy.row_changed }}\n )\n )\n\n ),\n\n updates as (\n\n select\n 'update' as dbt_change_type,\n source_data.*,\n snapshotted_data.dbt_scd_id\n\n from updates_source_data as source_data\n join snapshotted_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where (\n {{ strategy.row_changed }}\n )\n )\n\n {%- if strategy.invalidate_hard_deletes -%}\n ,\n\n deletes as (\n\n select\n 'delete' as dbt_change_type,\n source_data.*,\n {{ snapshot_get_time() }} as dbt_valid_from,\n {{ snapshot_get_time() }} as dbt_updated_at,\n {{ snapshot_get_time() }} as dbt_valid_to,\n snapshotted_data.dbt_scd_id\n\n from snapshotted_data\n left join deletes_source_data as source_data on snapshotted_data.dbt_unique_key = source_data.dbt_unique_key\n where source_data.dbt_unique_key is null\n )\n {%- endif %}\n\n select * from insertions\n union all\n select * from updates\n {%- if strategy.invalidate_hard_deletes %}\n union all\n select * from deletes\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.832445, "supported_languages": null}, "macro.dbt.build_snapshot_table": {"unique_id": "macro.dbt.build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_table", "macro_sql": "{% macro build_snapshot_table(strategy, sql) -%}\n {{ adapter.dispatch('build_snapshot_table', 'dbt')(strategy, sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__build_snapshot_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.832628, "supported_languages": null}, "macro.dbt.default__build_snapshot_table": {"unique_id": "macro.dbt.default__build_snapshot_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "default__build_snapshot_table", "macro_sql": "{% macro default__build_snapshot_table(strategy, sql) %}\n\n select *,\n {{ strategy.scd_id }} as dbt_scd_id,\n {{ strategy.updated_at }} as dbt_updated_at,\n {{ strategy.updated_at }} as dbt_valid_from,\n nullif({{ strategy.updated_at }}, {{ strategy.updated_at }}) as dbt_valid_to\n from (\n {{ sql }}\n ) sbq\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.832869, "supported_languages": null}, "macro.dbt.build_snapshot_staging_table": {"unique_id": "macro.dbt.build_snapshot_staging_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/helpers.sql", "original_file_path": "macros/materializations/snapshots/helpers.sql", "name": "build_snapshot_staging_table", "macro_sql": "{% macro build_snapshot_staging_table(strategy, sql, target_relation) %}\n {% set temp_relation = make_temp_relation(target_relation) %}\n\n {% set select = snapshot_staging_table(strategy, sql, target_relation) %}\n\n {% call statement('build_snapshot_staging_relation') %}\n {{ create_table_as(True, temp_relation, select) }}\n {% endcall %}\n\n {% do return(temp_relation) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.make_temp_relation", "macro.dbt.snapshot_staging_table", "macro.dbt.statement", "macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.833288, "supported_languages": null}, "macro.dbt.materialization_snapshot_default": {"unique_id": "macro.dbt.materialization_snapshot_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/snapshots/snapshot.sql", "original_file_path": "macros/materializations/snapshots/snapshot.sql", "name": "materialization_snapshot_default", "macro_sql": "{% materialization snapshot, default %}\n {%- set config = model['config'] -%}\n\n {%- set target_table = model.get('alias', model.get('name')) -%}\n\n {%- set strategy_name = config.get('strategy') -%}\n {%- set unique_key = config.get('unique_key') %}\n -- grab current tables grants config for comparision later on\n {%- set grant_config = config.get('grants') -%}\n\n {% set target_relation_exists, target_relation = get_or_create_relation(\n database=model.database,\n schema=model.schema,\n identifier=target_table,\n type='table') -%}\n\n {%- if not target_relation.is_table -%}\n {% do exceptions.relation_wrong_type(target_relation, 'table') %}\n {%- endif -%}\n\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set strategy_macro = strategy_dispatch(strategy_name) %}\n {% set strategy = strategy_macro(model, \"snapshotted_data\", \"source_data\", config, target_relation_exists) %}\n\n {% if not target_relation_exists %}\n\n {% set build_sql = build_snapshot_table(strategy, model['compiled_code']) %}\n {% set final_sql = create_table_as(False, target_relation, build_sql) %}\n\n {% else %}\n\n {{ adapter.valid_snapshot_target(target_relation) }}\n\n {% set staging_table = build_snapshot_staging_table(strategy, sql, target_relation) %}\n\n -- this may no-op if the database does not require column expansion\n {% do adapter.expand_target_column_types(from_relation=staging_table,\n to_relation=target_relation) %}\n\n {% set missing_columns = adapter.get_missing_columns(staging_table, target_relation)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% do create_columns(target_relation, missing_columns) %}\n\n {% set source_columns = adapter.get_columns_in_relation(staging_table)\n | rejectattr('name', 'equalto', 'dbt_change_type')\n | rejectattr('name', 'equalto', 'DBT_CHANGE_TYPE')\n | rejectattr('name', 'equalto', 'dbt_unique_key')\n | rejectattr('name', 'equalto', 'DBT_UNIQUE_KEY')\n | list %}\n\n {% set quoted_source_columns = [] %}\n {% for column in source_columns %}\n {% do quoted_source_columns.append(adapter.quote(column.name)) %}\n {% endfor %}\n\n {% set final_sql = snapshot_merge_sql(\n target = target_relation,\n source = staging_table,\n insert_cols = quoted_source_columns\n )\n %}\n\n {% endif %}\n\n {% call statement('main') %}\n {{ final_sql }}\n {% endcall %}\n\n {% set should_revoke = should_revoke(target_relation_exists, full_refresh_mode=False) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if not target_relation_exists %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {% if staging_table is defined %}\n {% do post_snapshot(staging_table) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_or_create_relation", "macro.dbt.run_hooks", "macro.dbt.strategy_dispatch", "macro.dbt.build_snapshot_table", "macro.dbt.create_table_as", "macro.dbt.build_snapshot_staging_table", "macro.dbt.create_columns", "macro.dbt.snapshot_merge_sql", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes", "macro.dbt.post_snapshot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.839042, "supported_languages": ["sql"]}, "macro.dbt.materialization_test_default": {"unique_id": "macro.dbt.materialization_test_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/test.sql", "original_file_path": "macros/materializations/tests/test.sql", "name": "materialization_test_default", "macro_sql": "{%- materialization test, default -%}\n\n {% set relations = [] %}\n\n {% if should_store_failures() %}\n\n {% set identifier = model['alias'] %}\n {% set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n {% set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database, type='table') -%} %}\n\n {% if old_relation %}\n {% do adapter.drop_relation(old_relation) %}\n {% endif %}\n\n {% call statement(auto_begin=True) %}\n {{ create_table_as(False, target_relation, sql) }}\n {% endcall %}\n\n {% do relations.append(target_relation) %}\n\n {% set main_sql %}\n select *\n from {{ target_relation }}\n {% endset %}\n\n {{ adapter.commit() }}\n\n {% else %}\n\n {% set main_sql = sql %}\n\n {% endif %}\n\n {% set limit = config.get('limit') %}\n {% set fail_calc = config.get('fail_calc') %}\n {% set warn_if = config.get('warn_if') %}\n {% set error_if = config.get('error_if') %}\n\n {% call statement('main', fetch_result=True) -%}\n\n {{ get_test_sql(main_sql, fail_calc, warn_if, error_if, limit)}}\n\n {%- endcall %}\n\n {{ return({'relations': relations}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures", "macro.dbt.statement", "macro.dbt.create_table_as", "macro.dbt.get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8410938, "supported_languages": ["sql"]}, "macro.dbt.get_test_sql": {"unique_id": "macro.dbt.get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "get_test_sql", "macro_sql": "{% macro get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n {{ adapter.dispatch('get_test_sql', 'dbt')(main_sql, fail_calc, warn_if, error_if, limit) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_test_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.841611, "supported_languages": null}, "macro.dbt.default__get_test_sql": {"unique_id": "macro.dbt.default__get_test_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/helpers.sql", "original_file_path": "macros/materializations/tests/helpers.sql", "name": "default__get_test_sql", "macro_sql": "{% macro default__get_test_sql(main_sql, fail_calc, warn_if, error_if, limit) -%}\n select\n {{ fail_calc }} as failures,\n {{ fail_calc }} {{ warn_if }} as should_warn,\n {{ fail_calc }} {{ error_if }} as should_error\n from (\n {{ main_sql }}\n {{ \"limit \" ~ limit if limit != none }}\n ) dbt_internal_test\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.841919, "supported_languages": null}, "macro.dbt.get_where_subquery": {"unique_id": "macro.dbt.get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "get_where_subquery", "macro_sql": "{% macro get_where_subquery(relation) -%}\n {% do return(adapter.dispatch('get_where_subquery', 'dbt')(relation)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_where_subquery"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.842365, "supported_languages": null}, "macro.dbt.default__get_where_subquery": {"unique_id": "macro.dbt.default__get_where_subquery", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/tests/where_subquery.sql", "original_file_path": "macros/materializations/tests/where_subquery.sql", "name": "default__get_where_subquery", "macro_sql": "{% macro default__get_where_subquery(relation) -%}\n {% set where = config.get('where', '') %}\n {% if where %}\n {%- set filtered -%}\n (select * from {{ relation }} where {{ where }}) dbt_subquery\n {%- endset -%}\n {% do return(filtered) %}\n {%- else -%}\n {% do return(relation) %}\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.842738, "supported_languages": null}, "macro.dbt.get_quoted_csv": {"unique_id": "macro.dbt.get_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_quoted_csv", "macro_sql": "{% macro get_quoted_csv(column_names) %}\n\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote(col)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8442729, "supported_languages": null}, "macro.dbt.diff_columns": {"unique_id": "macro.dbt.diff_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_columns", "macro_sql": "{% macro diff_columns(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% set source_names = source_columns | map(attribute = 'column') | list %}\n {% set target_names = target_columns | map(attribute = 'column') | list %}\n\n {# --check whether the name attribute exists in the target - this does not perform a data type check #}\n {% for sc in source_columns %}\n {% if sc.name not in target_names %}\n {{ result.append(sc) }}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.844813, "supported_languages": null}, "macro.dbt.diff_column_data_types": {"unique_id": "macro.dbt.diff_column_data_types", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "diff_column_data_types", "macro_sql": "{% macro diff_column_data_types(source_columns, target_columns) %}\n\n {% set result = [] %}\n {% for sc in source_columns %}\n {% set tc = target_columns | selectattr(\"name\", \"equalto\", sc.name) | list | first %}\n {% if tc %}\n {% if sc.data_type != tc.data_type and not sc.can_expand_to(other_column=tc) %}\n {{ result.append( { 'column_name': tc.name, 'new_type': sc.data_type } ) }}\n {% endif %}\n {% endif %}\n {% endfor %}\n\n {{ return(result) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.84546, "supported_languages": null}, "macro.dbt.get_merge_update_columns": {"unique_id": "macro.dbt.get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "get_merge_update_columns", "macro_sql": "{% macro get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {{ return(adapter.dispatch('get_merge_update_columns', 'dbt')(merge_update_columns, merge_exclude_columns, dest_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.845691, "supported_languages": null}, "macro.dbt.default__get_merge_update_columns": {"unique_id": "macro.dbt.default__get_merge_update_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/column_helpers.sql", "original_file_path": "macros/materializations/models/incremental/column_helpers.sql", "name": "default__get_merge_update_columns", "macro_sql": "{% macro default__get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) %}\n {%- set default_cols = dest_columns | map(attribute=\"quoted\") | list -%}\n\n {%- if merge_update_columns and merge_exclude_columns -%}\n {{ exceptions.raise_compiler_error(\n 'Model cannot specify merge_update_columns and merge_exclude_columns. Please update model to use only one config'\n )}}\n {%- elif merge_update_columns -%}\n {%- set update_columns = merge_update_columns -%}\n {%- elif merge_exclude_columns -%}\n {%- set update_columns = [] -%}\n {%- for column in dest_columns -%}\n {% if column.column | lower not in merge_exclude_columns | map(\"lower\") | list %}\n {%- do update_columns.append(column.quoted) -%}\n {% endif %}\n {%- endfor -%}\n {%- else -%}\n {%- set update_columns = default_cols -%}\n {%- endif -%}\n\n {{ return(update_columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.846393, "supported_languages": null}, "macro.dbt.get_merge_sql": {"unique_id": "macro.dbt.get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_merge_sql", "macro_sql": "{% macro get_merge_sql(target, source, unique_key, dest_columns, predicates=none) -%}\n {{ adapter.dispatch('get_merge_sql', 'dbt')(target, source, unique_key, dest_columns, predicates) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.850539, "supported_languages": null}, "macro.dbt.default__get_merge_sql": {"unique_id": "macro.dbt.default__get_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_merge_sql", "macro_sql": "{% macro default__get_merge_sql(target, source, unique_key, dest_columns, predicates) -%}\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set merge_update_columns = config.get('merge_update_columns') -%}\n {%- set merge_exclude_columns = config.get('merge_exclude_columns') -%}\n {%- set update_columns = get_merge_update_columns(merge_update_columns, merge_exclude_columns, dest_columns) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not mapping and unique_key is not string %}\n {% for key in unique_key %}\n {% set this_key_match %}\n DBT_INTERNAL_SOURCE.{{ key }} = DBT_INTERNAL_DEST.{{ key }}\n {% endset %}\n {% do predicates.append(this_key_match) %}\n {% endfor %}\n {% else %}\n {% set unique_key_match %}\n DBT_INTERNAL_SOURCE.{{ unique_key }} = DBT_INTERNAL_DEST.{{ unique_key }}\n {% endset %}\n {% do predicates.append(unique_key_match) %}\n {% endif %}\n {% else %}\n {% do predicates.append('FALSE') %}\n {% endif %}\n\n {{ sql_header if sql_header is not none }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on {{ predicates | join(' and ') }}\n\n {% if unique_key %}\n when matched then update set\n {% for column_name in update_columns -%}\n {{ column_name }} = DBT_INTERNAL_SOURCE.{{ column_name }}\n {%- if not loop.last %}, {%- endif %}\n {%- endfor %}\n {% endif %}\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv", "macro.dbt.get_merge_update_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.852171, "supported_languages": null}, "macro.dbt.get_delete_insert_merge_sql": {"unique_id": "macro.dbt.get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_delete_insert_merge_sql", "macro_sql": "{% macro get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n {{ adapter.dispatch('get_delete_insert_merge_sql', 'dbt')(target, source, unique_key, dest_columns) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.852406, "supported_languages": null}, "macro.dbt.default__get_delete_insert_merge_sql": {"unique_id": "macro.dbt.default__get_delete_insert_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_delete_insert_merge_sql", "macro_sql": "{% macro default__get_delete_insert_merge_sql(target, source, unique_key, dest_columns) -%}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n {% if unique_key %}\n {% if unique_key is sequence and unique_key is not string %}\n delete from {{target }}\n using {{ source }}\n where (\n {% for key in unique_key %}\n {{ source }}.{{ key }} = {{ target }}.{{ key }}\n {{ \"and \" if not loop.last }}\n {% endfor %}\n );\n {% else %}\n delete from {{ target }}\n where (\n {{ unique_key }}) in (\n select ({{ unique_key }})\n from {{ source }}\n );\n\n {% endif %}\n {% endif %}\n\n insert into {{ target }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ source }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8531241, "supported_languages": null}, "macro.dbt.get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "get_insert_overwrite_merge_sql", "macro_sql": "{% macro get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header=false) -%}\n {{ adapter.dispatch('get_insert_overwrite_merge_sql', 'dbt')(target, source, dest_columns, predicates, include_sql_header) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8533819, "supported_languages": null}, "macro.dbt.default__get_insert_overwrite_merge_sql": {"unique_id": "macro.dbt.default__get_insert_overwrite_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/merge.sql", "original_file_path": "macros/materializations/models/incremental/merge.sql", "name": "default__get_insert_overwrite_merge_sql", "macro_sql": "{% macro default__get_insert_overwrite_merge_sql(target, source, dest_columns, predicates, include_sql_header) -%}\n {#-- The only time include_sql_header is True: --#}\n {#-- BigQuery + insert_overwrite strategy + \"static\" partitions config --#}\n {#-- We should consider including the sql header at the materialization level instead --#}\n\n {%- set predicates = [] if predicates is none else [] + predicates -%}\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none and include_sql_header }}\n\n merge into {{ target }} as DBT_INTERNAL_DEST\n using {{ source }} as DBT_INTERNAL_SOURCE\n on FALSE\n\n when not matched by source\n {% if predicates %} and {{ predicates | join(' and ') }} {% endif %}\n then delete\n\n when not matched then insert\n ({{ dest_cols_csv }})\n values\n ({{ dest_cols_csv }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.854006, "supported_languages": null}, "macro.dbt.is_incremental": {"unique_id": "macro.dbt.is_incremental", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/is_incremental.sql", "original_file_path": "macros/materializations/models/incremental/is_incremental.sql", "name": "is_incremental", "macro_sql": "{% macro is_incremental() %}\n {#-- do not run introspective queries in parsing #}\n {% if not execute %}\n {{ return(False) }}\n {% else %}\n {% set relation = adapter.get_relation(this.database, this.schema, this.table) %}\n {{ return(relation is not none\n and relation.type == 'table'\n and model.config.materialized == 'incremental'\n and not should_full_refresh()) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.854711, "supported_languages": null}, "macro.dbt.get_incremental_append_sql": {"unique_id": "macro.dbt.get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_append_sql", "macro_sql": "{% macro get_incremental_append_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_append_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.855602, "supported_languages": null}, "macro.dbt.default__get_incremental_append_sql": {"unique_id": "macro.dbt.default__get_incremental_append_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_append_sql", "macro_sql": "{% macro default__get_incremental_append_sql(arg_dict) %}\n\n {% do return(get_insert_into_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_into_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.85584, "supported_languages": null}, "macro.dbt.get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_delete_insert_sql", "macro_sql": "{% macro get_incremental_delete_insert_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_delete_insert_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_delete_insert_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.85602, "supported_languages": null}, "macro.dbt.default__get_incremental_delete_insert_sql": {"unique_id": "macro.dbt.default__get_incremental_delete_insert_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_delete_insert_sql", "macro_sql": "{% macro default__get_incremental_delete_insert_sql(arg_dict) %}\n\n {% do return(get_delete_insert_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_delete_insert_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.85627, "supported_languages": null}, "macro.dbt.get_incremental_merge_sql": {"unique_id": "macro.dbt.get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_merge_sql", "macro_sql": "{% macro get_incremental_merge_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_merge_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.856448, "supported_languages": null}, "macro.dbt.default__get_incremental_merge_sql": {"unique_id": "macro.dbt.default__get_incremental_merge_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_merge_sql", "macro_sql": "{% macro default__get_incremental_merge_sql(arg_dict) %}\n\n {% do return(get_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"unique_key\"], arg_dict[\"dest_columns\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8567, "supported_languages": null}, "macro.dbt.get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_insert_overwrite_sql", "macro_sql": "{% macro get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_insert_overwrite_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_incremental_insert_overwrite_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.856887, "supported_languages": null}, "macro.dbt.default__get_incremental_insert_overwrite_sql": {"unique_id": "macro.dbt.default__get_incremental_insert_overwrite_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_insert_overwrite_sql", "macro_sql": "{% macro default__get_incremental_insert_overwrite_sql(arg_dict) %}\n\n {% do return(get_insert_overwrite_merge_sql(arg_dict[\"target_relation\"], arg_dict[\"temp_relation\"], arg_dict[\"dest_columns\"], arg_dict[\"predicates\"])) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_insert_overwrite_merge_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.857137, "supported_languages": null}, "macro.dbt.get_incremental_default_sql": {"unique_id": "macro.dbt.get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_incremental_default_sql", "macro_sql": "{% macro get_incremental_default_sql(arg_dict) %}\n\n {{ return(adapter.dispatch('get_incremental_default_sql', 'dbt')(arg_dict)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_incremental_default_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.857322, "supported_languages": null}, "macro.dbt.default__get_incremental_default_sql": {"unique_id": "macro.dbt.default__get_incremental_default_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "default__get_incremental_default_sql", "macro_sql": "{% macro default__get_incremental_default_sql(arg_dict) %}\n\n {% do return(get_incremental_append_sql(arg_dict)) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_incremental_append_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.857464, "supported_languages": null}, "macro.dbt.get_insert_into_sql": {"unique_id": "macro.dbt.get_insert_into_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/strategies.sql", "original_file_path": "macros/materializations/models/incremental/strategies.sql", "name": "get_insert_into_sql", "macro_sql": "{% macro get_insert_into_sql(target_relation, temp_relation, dest_columns) %}\n\n {%- set dest_cols_csv = get_quoted_csv(dest_columns | map(attribute=\"name\")) -%}\n\n insert into {{ target_relation }} ({{ dest_cols_csv }})\n (\n select {{ dest_cols_csv }}\n from {{ temp_relation }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_quoted_csv"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.857738, "supported_languages": null}, "macro.dbt.materialization_incremental_default": {"unique_id": "macro.dbt.materialization_incremental_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/incremental.sql", "original_file_path": "macros/materializations/models/incremental/incremental.sql", "name": "materialization_incremental_default", "macro_sql": "{% materialization incremental, default -%}\n\n -- relations\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') -%}\n {%- set temp_relation = make_temp_relation(target_relation)-%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation)-%}\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n\n -- configs\n {%- set unique_key = config.get('unique_key') -%}\n {%- set full_refresh_mode = (should_full_refresh() or existing_relation.is_view) -%}\n {%- set on_schema_change = incremental_validate_on_schema_change(config.get('on_schema_change'), default='ignore') -%}\n\n -- the temp_ and backup_ relations should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation. This has to happen before\n -- BEGIN, in a separate transaction\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation)-%}\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n {% set to_drop = [] %}\n\n {% if existing_relation is none %}\n {% set build_sql = get_create_table_as_sql(False, target_relation, sql) %}\n {% elif full_refresh_mode %}\n {% set build_sql = get_create_table_as_sql(False, intermediate_relation, sql) %}\n {% set need_swap = true %}\n {% else %}\n {% do run_query(get_create_table_as_sql(True, temp_relation, sql)) %}\n {% do adapter.expand_target_column_types(\n from_relation=temp_relation,\n to_relation=target_relation) %}\n {#-- Process schema changes. Returns dict of changes if successful. Use source columns for upserting/merging --#}\n {% set dest_columns = process_schema_changes(on_schema_change, temp_relation, existing_relation) %}\n {% if not dest_columns %}\n {% set dest_columns = adapter.get_columns_in_relation(existing_relation) %}\n {% endif %}\n\n {#-- Get the incremental_strategy, the macro to use for the strategy, and build the sql --#}\n {% set incremental_strategy = config.get('incremental_strategy') or 'default' %}\n {% set incremental_predicates = config.get('incremental_predicates', none) %}\n {% set strategy_sql_macro_func = adapter.get_incremental_strategy_macro(context, incremental_strategy) %}\n {% set strategy_arg_dict = ({'target_relation': target_relation, 'temp_relation': temp_relation, 'unique_key': unique_key, 'dest_columns': dest_columns, 'predicates': incremental_predicates }) %}\n {% set build_sql = strategy_sql_macro_func(strategy_arg_dict) %}\n\n {% endif %}\n\n {% call statement(\"main\") %}\n {{ build_sql }}\n {% endcall %}\n\n {% if need_swap %}\n {% do adapter.rename_relation(target_relation, backup_relation) %}\n {% do adapter.rename_relation(intermediate_relation, target_relation) %}\n {% do to_drop.append(backup_relation) %}\n {% endif %}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if existing_relation is none or existing_relation.is_view or should_full_refresh() %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {% do adapter.commit() %}\n\n {% for rel in to_drop %}\n {% do adapter.drop_relation(rel) %}\n {% endfor %}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_temp_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.should_full_refresh", "macro.dbt.incremental_validate_on_schema_change", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.get_create_table_as_sql", "macro.dbt.run_query", "macro.dbt.process_schema_changes", "macro.dbt.statement", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.862506, "supported_languages": ["sql"]}, "macro.dbt.incremental_validate_on_schema_change": {"unique_id": "macro.dbt.incremental_validate_on_schema_change", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "incremental_validate_on_schema_change", "macro_sql": "{% macro incremental_validate_on_schema_change(on_schema_change, default='ignore') %}\n\n {% if on_schema_change not in ['sync_all_columns', 'append_new_columns', 'fail', 'ignore'] %}\n\n {% set log_message = 'Invalid value for on_schema_change (%s) specified. Setting default value of %s.' % (on_schema_change, default) %}\n {% do log(log_message) %}\n\n {{ return(default) }}\n\n {% else %}\n\n {{ return(on_schema_change) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.86757, "supported_languages": null}, "macro.dbt.check_for_schema_changes": {"unique_id": "macro.dbt.check_for_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "check_for_schema_changes", "macro_sql": "{% macro check_for_schema_changes(source_relation, target_relation) %}\n\n {% set schema_changed = False %}\n\n {%- set source_columns = adapter.get_columns_in_relation(source_relation) -%}\n {%- set target_columns = adapter.get_columns_in_relation(target_relation) -%}\n {%- set source_not_in_target = diff_columns(source_columns, target_columns) -%}\n {%- set target_not_in_source = diff_columns(target_columns, source_columns) -%}\n\n {% set new_target_types = diff_column_data_types(source_columns, target_columns) %}\n\n {% if source_not_in_target != [] %}\n {% set schema_changed = True %}\n {% elif target_not_in_source != [] or new_target_types != [] %}\n {% set schema_changed = True %}\n {% elif new_target_types != [] %}\n {% set schema_changed = True %}\n {% endif %}\n\n {% set changes_dict = {\n 'schema_changed': schema_changed,\n 'source_not_in_target': source_not_in_target,\n 'target_not_in_source': target_not_in_source,\n 'source_columns': source_columns,\n 'target_columns': target_columns,\n 'new_target_types': new_target_types\n } %}\n\n {% set msg %}\n In {{ target_relation }}:\n Schema changed: {{ schema_changed }}\n Source columns not in target: {{ source_not_in_target }}\n Target columns not in source: {{ target_not_in_source }}\n New column types: {{ new_target_types }}\n {% endset %}\n\n {% do log(msg) %}\n\n {{ return(changes_dict) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.diff_columns", "macro.dbt.diff_column_data_types"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8687391, "supported_languages": null}, "macro.dbt.sync_column_schemas": {"unique_id": "macro.dbt.sync_column_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "sync_column_schemas", "macro_sql": "{% macro sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {%- set add_to_target_arr = schema_changes_dict['source_not_in_target'] -%}\n\n {%- if on_schema_change == 'append_new_columns'-%}\n {%- if add_to_target_arr | length > 0 -%}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, none) -%}\n {%- endif -%}\n\n {% elif on_schema_change == 'sync_all_columns' %}\n {%- set remove_from_target_arr = schema_changes_dict['target_not_in_source'] -%}\n {%- set new_target_types = schema_changes_dict['new_target_types'] -%}\n\n {% if add_to_target_arr | length > 0 or remove_from_target_arr | length > 0 %}\n {%- do alter_relation_add_remove_columns(target_relation, add_to_target_arr, remove_from_target_arr) -%}\n {% endif %}\n\n {% if new_target_types != [] %}\n {% for ntt in new_target_types %}\n {% set column_name = ntt['column_name'] %}\n {% set new_type = ntt['new_type'] %}\n {% do alter_column_type(target_relation, column_name, new_type) %}\n {% endfor %}\n {% endif %}\n\n {% endif %}\n\n {% set schema_change_message %}\n In {{ target_relation }}:\n Schema change approach: {{ on_schema_change }}\n Columns added: {{ add_to_target_arr }}\n Columns removed: {{ remove_from_target_arr }}\n Data types changed: {{ new_target_types }}\n {% endset %}\n\n {% do log(schema_change_message) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.alter_relation_add_remove_columns", "macro.dbt.alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8698921, "supported_languages": null}, "macro.dbt.process_schema_changes": {"unique_id": "macro.dbt.process_schema_changes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/incremental/on_schema_change.sql", "original_file_path": "macros/materializations/models/incremental/on_schema_change.sql", "name": "process_schema_changes", "macro_sql": "{% macro process_schema_changes(on_schema_change, source_relation, target_relation) %}\n\n {% if on_schema_change == 'ignore' %}\n\n {{ return({}) }}\n\n {% else %}\n\n {% set schema_changes_dict = check_for_schema_changes(source_relation, target_relation) %}\n\n {% if schema_changes_dict['schema_changed'] %}\n\n {% if on_schema_change == 'fail' %}\n\n {% set fail_msg %}\n The source and target schemas on this incremental model are out of sync!\n They can be reconciled in several ways:\n - set the `on_schema_change` config to either append_new_columns or sync_all_columns, depending on your situation.\n - Re-run the incremental model with `full_refresh: True` to update the target schema.\n - update the schema manually and re-run the process.\n\n Additional troubleshooting context:\n Source columns not in target: {{ schema_changes_dict['source_not_in_target'] }}\n Target columns not in source: {{ schema_changes_dict['target_not_in_source'] }}\n New column types: {{ schema_changes_dict['new_target_types'] }}\n {% endset %}\n\n {% do exceptions.raise_compiler_error(fail_msg) %}\n\n {# -- unless we ignore, run the sync operation per the config #}\n {% else %}\n\n {% do sync_column_schemas(on_schema_change, target_relation, schema_changes_dict) %}\n\n {% endif %}\n\n {% endif %}\n\n {{ return(schema_changes_dict['source_columns']) }}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.check_for_schema_changes", "macro.dbt.sync_column_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.870711, "supported_languages": null}, "macro.dbt.materialization_table_default": {"unique_id": "macro.dbt.materialization_table_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/table.sql", "original_file_path": "macros/materializations/models/table/table.sql", "name": "materialization_table_default", "macro_sql": "{% materialization table, default %}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='table') %}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n See ../view/view.sql for more information about this relation.\n */\n {%- set backup_relation_type = 'table' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_table_as_sql(False, intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% do create_indexes(target_relation) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n -- finally, drop the existing/backup relation after the commit\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.drop_relation_if_exists", "macro.dbt.run_hooks", "macro.dbt.statement", "macro.dbt.get_create_table_as_sql", "macro.dbt.create_indexes", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.873237, "supported_languages": ["sql"]}, "macro.dbt.get_create_table_as_sql": {"unique_id": "macro.dbt.get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "get_create_table_as_sql", "macro_sql": "{% macro get_create_table_as_sql(temporary, relation, sql) -%}\n {{ adapter.dispatch('get_create_table_as_sql', 'dbt')(temporary, relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_table_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.873791, "supported_languages": null}, "macro.dbt.default__get_create_table_as_sql": {"unique_id": "macro.dbt.default__get_create_table_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__get_create_table_as_sql", "macro_sql": "{% macro default__get_create_table_as_sql(temporary, relation, sql) -%}\n {{ return(create_table_as(temporary, relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8739789, "supported_languages": null}, "macro.dbt.create_table_as": {"unique_id": "macro.dbt.create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "create_table_as", "macro_sql": "{% macro create_table_as(temporary, relation, compiled_code, language='sql') -%}\n {# backward compatibility for create_table_as that does not support language #}\n {% if language == \"sql\" %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code)}}\n {% else %}\n {{ adapter.dispatch('create_table_as', 'dbt')(temporary, relation, compiled_code, language) }}\n {% endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_table_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.874412, "supported_languages": null}, "macro.dbt.default__create_table_as": {"unique_id": "macro.dbt.default__create_table_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/table/create_table_as.sql", "original_file_path": "macros/materializations/models/table/create_table_as.sql", "name": "default__create_table_as", "macro_sql": "{% macro default__create_table_as(temporary, relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n\n create {% if temporary: -%}temporary{%- endif %} table\n {{ relation.include(database=(not temporary), schema=(not temporary)) }}\n as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8748102, "supported_languages": null}, "macro.dbt.materialization_view_default": {"unique_id": "macro.dbt.materialization_view_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/view.sql", "original_file_path": "macros/materializations/models/view/view.sql", "name": "materialization_view_default", "macro_sql": "{%- materialization view, default -%}\n\n {%- set existing_relation = load_cached_relation(this) -%}\n {%- set target_relation = this.incorporate(type='view') -%}\n {%- set intermediate_relation = make_intermediate_relation(target_relation) -%}\n\n -- the intermediate_relation should not already exist in the database; get_relation\n -- will return None in that case. Otherwise, we get a relation that we can drop\n -- later, before we try to use this name for the current operation\n {%- set preexisting_intermediate_relation = load_cached_relation(intermediate_relation) -%}\n /*\n This relation (probably) doesn't exist yet. If it does exist, it's a leftover from\n a previous run, and we're going to try to drop it immediately. At the end of this\n materialization, we're going to rename the \"existing_relation\" to this identifier,\n and then we're going to drop it. In order to make sure we run the correct one of:\n - drop view ...\n - drop table ...\n\n We need to set the type of this relation to be the type of the existing_relation, if it exists,\n or else \"view\" as a sane default if it does not. Note that if the existing_relation does not\n exist, then there is nothing to move out of the way and subsequentally drop. In that case,\n this relation will be effectively unused.\n */\n {%- set backup_relation_type = 'view' if existing_relation is none else existing_relation.type -%}\n {%- set backup_relation = make_backup_relation(target_relation, backup_relation_type) -%}\n -- as above, the backup_relation should not already exist\n {%- set preexisting_backup_relation = load_cached_relation(backup_relation) -%}\n -- grab current tables grants config for comparision later on\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- drop the temp relations if they exist already in the database\n {{ drop_relation_if_exists(preexisting_intermediate_relation) }}\n {{ drop_relation_if_exists(preexisting_backup_relation) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(intermediate_relation, sql) }}\n {%- endcall %}\n\n -- cleanup\n -- move the existing view out of the way\n {% if existing_relation is not none %}\n {{ adapter.rename_relation(existing_relation, backup_relation) }}\n {% endif %}\n {{ adapter.rename_relation(intermediate_relation, target_relation) }}\n\n {% set should_revoke = should_revoke(existing_relation, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n {{ adapter.commit() }}\n\n {{ drop_relation_if_exists(backup_relation) }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{%- endmaterialization -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation", "macro.dbt.make_intermediate_relation", "macro.dbt.make_backup_relation", "macro.dbt.run_hooks", "macro.dbt.drop_relation_if_exists", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.877324, "supported_languages": ["sql"]}, "macro.dbt.handle_existing_table": {"unique_id": "macro.dbt.handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "handle_existing_table", "macro_sql": "{% macro handle_existing_table(full_refresh, old_relation) %}\n {{ adapter.dispatch('handle_existing_table', 'dbt')(full_refresh, old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__handle_existing_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.877697, "supported_languages": null}, "macro.dbt.default__handle_existing_table": {"unique_id": "macro.dbt.default__handle_existing_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/helpers.sql", "original_file_path": "macros/materializations/models/view/helpers.sql", "name": "default__handle_existing_table", "macro_sql": "{% macro default__handle_existing_table(full_refresh, old_relation) %}\n {{ log(\"Dropping relation \" ~ old_relation ~ \" because it is of type \" ~ old_relation.type) }}\n {{ adapter.drop_relation(old_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8779142, "supported_languages": null}, "macro.dbt.create_or_replace_view": {"unique_id": "macro.dbt.create_or_replace_view", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_or_replace_view.sql", "original_file_path": "macros/materializations/models/view/create_or_replace_view.sql", "name": "create_or_replace_view", "macro_sql": "{% macro create_or_replace_view() %}\n {%- set identifier = model['alias'] -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set target_relation = api.Relation.create(\n identifier=identifier, schema=schema, database=database,\n type='view') -%}\n {% set grant_config = config.get('grants') %}\n\n {{ run_hooks(pre_hooks) }}\n\n -- If there's a table with the same name and we weren't told to full refresh,\n -- that's an error. If we were told to full refresh, drop it. This behavior differs\n -- for Snowflake and BigQuery, so multiple dispatch is used.\n {%- if old_relation is not none and old_relation.is_table -%}\n {{ handle_existing_table(should_full_refresh(), old_relation) }}\n {%- endif -%}\n\n -- build model\n {% call statement('main') -%}\n {{ get_create_view_as_sql(target_relation, sql) }}\n {%- endcall %}\n\n {% set should_revoke = should_revoke(exists_as_view, full_refresh_mode=True) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=True) %}\n\n {{ run_hooks(post_hooks) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_hooks", "macro.dbt.handle_existing_table", "macro.dbt.should_full_refresh", "macro.dbt.statement", "macro.dbt.get_create_view_as_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.879416, "supported_languages": null}, "macro.dbt.get_create_view_as_sql": {"unique_id": "macro.dbt.get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "get_create_view_as_sql", "macro_sql": "{% macro get_create_view_as_sql(relation, sql) -%}\n {{ adapter.dispatch('get_create_view_as_sql', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_create_view_as_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8798301, "supported_languages": null}, "macro.dbt.default__get_create_view_as_sql": {"unique_id": "macro.dbt.default__get_create_view_as_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__get_create_view_as_sql", "macro_sql": "{% macro default__get_create_view_as_sql(relation, sql) -%}\n {{ return(create_view_as(relation, sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.879987, "supported_languages": null}, "macro.dbt.create_view_as": {"unique_id": "macro.dbt.create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "create_view_as", "macro_sql": "{% macro create_view_as(relation, sql) -%}\n {{ adapter.dispatch('create_view_as', 'dbt')(relation, sql) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_view_as"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.880162, "supported_languages": null}, "macro.dbt.default__create_view_as": {"unique_id": "macro.dbt.default__create_view_as", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/models/view/create_view_as.sql", "original_file_path": "macros/materializations/models/view/create_view_as.sql", "name": "default__create_view_as", "macro_sql": "{% macro default__create_view_as(relation, sql) -%}\n {%- set sql_header = config.get('sql_header', none) -%}\n\n {{ sql_header if sql_header is not none }}\n create view {{ relation }} as (\n {{ sql }}\n );\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8804128, "supported_languages": null}, "macro.dbt.materialization_seed_default": {"unique_id": "macro.dbt.materialization_seed_default", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/seed.sql", "original_file_path": "macros/materializations/seeds/seed.sql", "name": "materialization_seed_default", "macro_sql": "{% materialization seed, default %}\n\n {%- set identifier = model['alias'] -%}\n {%- set full_refresh_mode = (should_full_refresh()) -%}\n\n {%- set old_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) -%}\n\n {%- set exists_as_table = (old_relation is not none and old_relation.is_table) -%}\n {%- set exists_as_view = (old_relation is not none and old_relation.is_view) -%}\n\n {%- set grant_config = config.get('grants') -%}\n {%- set agate_table = load_agate_table() -%}\n -- grab current tables grants config for comparision later on\n\n {%- do store_result('agate_table', response='OK', agate_table=agate_table) -%}\n\n {{ run_hooks(pre_hooks, inside_transaction=False) }}\n\n -- `BEGIN` happens here:\n {{ run_hooks(pre_hooks, inside_transaction=True) }}\n\n -- build model\n {% set create_table_sql = \"\" %}\n {% if exists_as_view %}\n {{ exceptions.raise_compiler_error(\"Cannot seed to '{}', it is a view\".format(old_relation)) }}\n {% elif exists_as_table %}\n {% set create_table_sql = reset_csv_table(model, full_refresh_mode, old_relation, agate_table) %}\n {% else %}\n {% set create_table_sql = create_csv_table(model, agate_table) %}\n {% endif %}\n\n {% set code = 'CREATE' if full_refresh_mode else 'INSERT' %}\n {% set rows_affected = (agate_table.rows | length) %}\n {% set sql = load_csv_rows(model, agate_table) %}\n\n {% call noop_statement('main', code ~ ' ' ~ rows_affected, code, rows_affected) %}\n {{ get_csv_sql(create_table_sql, sql) }};\n {% endcall %}\n\n {% set target_relation = this.incorporate(type='table') %}\n\n {% set should_revoke = should_revoke(old_relation, full_refresh_mode) %}\n {% do apply_grants(target_relation, grant_config, should_revoke=should_revoke) %}\n\n {% do persist_docs(target_relation, model) %}\n\n {% if full_refresh_mode or not exists_as_table %}\n {% do create_indexes(target_relation) %}\n {% endif %}\n\n {{ run_hooks(post_hooks, inside_transaction=True) }}\n\n -- `COMMIT` happens here\n {{ adapter.commit() }}\n\n {{ run_hooks(post_hooks, inside_transaction=False) }}\n\n {{ return({'relations': [target_relation]}) }}\n\n{% endmaterialization %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_full_refresh", "macro.dbt.run_hooks", "macro.dbt.reset_csv_table", "macro.dbt.create_csv_table", "macro.dbt.load_csv_rows", "macro.dbt.noop_statement", "macro.dbt.get_csv_sql", "macro.dbt.should_revoke", "macro.dbt.apply_grants", "macro.dbt.persist_docs", "macro.dbt.create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.883567, "supported_languages": ["sql"]}, "macro.dbt.create_csv_table": {"unique_id": "macro.dbt.create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "create_csv_table", "macro_sql": "{% macro create_csv_table(model, agate_table) -%}\n {{ adapter.dispatch('create_csv_table', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.888061, "supported_languages": null}, "macro.dbt.default__create_csv_table": {"unique_id": "macro.dbt.default__create_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__create_csv_table", "macro_sql": "{% macro default__create_csv_table(model, agate_table) %}\n {%- set column_override = model['config'].get('column_types', {}) -%}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n\n {% set sql %}\n create table {{ this.render() }} (\n {%- for col_name in agate_table.column_names -%}\n {%- set inferred_type = adapter.convert_type(agate_table, loop.index0) -%}\n {%- set type = column_override.get(col_name, inferred_type) -%}\n {%- set column_name = (col_name | string) -%}\n {{ adapter.quote_seed_column(column_name, quote_seed_column) }} {{ type }} {%- if not loop.last -%}, {%- endif -%}\n {%- endfor -%}\n )\n {% endset %}\n\n {% call statement('_') -%}\n {{ sql }}\n {%- endcall %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8889651, "supported_languages": null}, "macro.dbt.reset_csv_table": {"unique_id": "macro.dbt.reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "reset_csv_table", "macro_sql": "{% macro reset_csv_table(model, full_refresh, old_relation, agate_table) -%}\n {{ adapter.dispatch('reset_csv_table', 'dbt')(model, full_refresh, old_relation, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__reset_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.889201, "supported_languages": null}, "macro.dbt.default__reset_csv_table": {"unique_id": "macro.dbt.default__reset_csv_table", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__reset_csv_table", "macro_sql": "{% macro default__reset_csv_table(model, full_refresh, old_relation, agate_table) %}\n {% set sql = \"\" %}\n {% if full_refresh %}\n {{ adapter.drop_relation(old_relation) }}\n {% set sql = create_csv_table(model, agate_table) %}\n {% else %}\n {{ adapter.truncate_relation(old_relation) }}\n {% set sql = \"truncate table \" ~ old_relation %}\n {% endif %}\n\n {{ return(sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.create_csv_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.889675, "supported_languages": null}, "macro.dbt.get_csv_sql": {"unique_id": "macro.dbt.get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_csv_sql", "macro_sql": "{% macro get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ adapter.dispatch('get_csv_sql', 'dbt')(create_or_truncate_sql, insert_sql) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_csv_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8898659, "supported_languages": null}, "macro.dbt.default__get_csv_sql": {"unique_id": "macro.dbt.default__get_csv_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_csv_sql", "macro_sql": "{% macro default__get_csv_sql(create_or_truncate_sql, insert_sql) %}\n {{ create_or_truncate_sql }};\n -- dbt seed --\n {{ insert_sql }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.889995, "supported_languages": null}, "macro.dbt.get_binding_char": {"unique_id": "macro.dbt.get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_binding_char", "macro_sql": "{% macro get_binding_char() -%}\n {{ adapter.dispatch('get_binding_char', 'dbt')() }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8901298, "supported_languages": null}, "macro.dbt.default__get_binding_char": {"unique_id": "macro.dbt.default__get_binding_char", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_binding_char", "macro_sql": "{% macro default__get_binding_char() %}\n {{ return('%s') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.890239, "supported_languages": null}, "macro.dbt.get_batch_size": {"unique_id": "macro.dbt.get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_batch_size", "macro_sql": "{% macro get_batch_size() -%}\n {{ return(adapter.dispatch('get_batch_size', 'dbt')()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_batch_size"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.890393, "supported_languages": null}, "macro.dbt.default__get_batch_size": {"unique_id": "macro.dbt.default__get_batch_size", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__get_batch_size", "macro_sql": "{% macro default__get_batch_size() %}\n {{ return(10000) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.890504, "supported_languages": null}, "macro.dbt.get_seed_column_quoted_csv": {"unique_id": "macro.dbt.get_seed_column_quoted_csv", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "get_seed_column_quoted_csv", "macro_sql": "{% macro get_seed_column_quoted_csv(model, column_names) %}\n {%- set quote_seed_column = model['config'].get('quote_columns', None) -%}\n {% set quoted = [] %}\n {% for col in column_names -%}\n {%- do quoted.append(adapter.quote_seed_column(col, quote_seed_column)) -%}\n {%- endfor %}\n\n {%- set dest_cols_csv = quoted | join(', ') -%}\n {{ return(dest_cols_csv) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.891006, "supported_languages": null}, "macro.dbt.load_csv_rows": {"unique_id": "macro.dbt.load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "load_csv_rows", "macro_sql": "{% macro load_csv_rows(model, agate_table) -%}\n {{ adapter.dispatch('load_csv_rows', 'dbt')(model, agate_table) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__load_csv_rows"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8912, "supported_languages": null}, "macro.dbt.default__load_csv_rows": {"unique_id": "macro.dbt.default__load_csv_rows", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/materializations/seeds/helpers.sql", "original_file_path": "macros/materializations/seeds/helpers.sql", "name": "default__load_csv_rows", "macro_sql": "{% macro default__load_csv_rows(model, agate_table) %}\n\n {% set batch_size = get_batch_size() %}\n\n {% set cols_sql = get_seed_column_quoted_csv(model, agate_table.column_names) %}\n {% set bindings = [] %}\n\n {% set statements = [] %}\n\n {% for chunk in agate_table.rows | batch(batch_size) %}\n {% set bindings = [] %}\n\n {% for row in chunk %}\n {% do bindings.extend(row) %}\n {% endfor %}\n\n {% set sql %}\n insert into {{ this.render() }} ({{ cols_sql }}) values\n {% for row in chunk -%}\n ({%- for column in agate_table.column_names -%}\n {{ get_binding_char() }}\n {%- if not loop.last%},{%- endif %}\n {%- endfor -%})\n {%- if not loop.last%},{%- endif %}\n {%- endfor %}\n {% endset %}\n\n {% do adapter.add_query(sql, bindings=bindings, abridge_sql_log=True) %}\n\n {% if loop.index0 == 0 %}\n {% do statements.append(sql) %}\n {% endif %}\n {% endfor %}\n\n {# Return SQL so we can render it out into the compiled files #}\n {{ return(statements[0]) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_batch_size", "macro.dbt.get_seed_column_quoted_csv", "macro.dbt.get_binding_char"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8924758, "supported_languages": null}, "macro.dbt.generate_alias_name": {"unique_id": "macro.dbt.generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "generate_alias_name", "macro_sql": "{% macro generate_alias_name(custom_alias_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_alias_name', 'dbt')(custom_alias_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_alias_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.892968, "supported_languages": null}, "macro.dbt.default__generate_alias_name": {"unique_id": "macro.dbt.default__generate_alias_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_alias.sql", "original_file_path": "macros/get_custom_name/get_custom_alias.sql", "name": "default__generate_alias_name", "macro_sql": "{% macro default__generate_alias_name(custom_alias_name=none, node=none) -%}\n\n {%- if custom_alias_name is none -%}\n\n {{ node.name }}\n\n {%- else -%}\n\n {{ custom_alias_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8931909, "supported_languages": null}, "macro.dbt.generate_schema_name": {"unique_id": "macro.dbt.generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name", "macro_sql": "{% macro generate_schema_name(custom_schema_name=none, node=none) -%}\n {{ return(adapter.dispatch('generate_schema_name', 'dbt')(custom_schema_name, node)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.893769, "supported_languages": null}, "macro.dbt.default__generate_schema_name": {"unique_id": "macro.dbt.default__generate_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "default__generate_schema_name", "macro_sql": "{% macro default__generate_schema_name(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if custom_schema_name is none -%}\n\n {{ default_schema }}\n\n {%- else -%}\n\n {{ default_schema }}_{{ custom_schema_name | trim }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.894026, "supported_languages": null}, "macro.dbt.generate_schema_name_for_env": {"unique_id": "macro.dbt.generate_schema_name_for_env", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_schema.sql", "original_file_path": "macros/get_custom_name/get_custom_schema.sql", "name": "generate_schema_name_for_env", "macro_sql": "{% macro generate_schema_name_for_env(custom_schema_name, node) -%}\n\n {%- set default_schema = target.schema -%}\n {%- if target.name == 'prod' and custom_schema_name is not none -%}\n\n {{ custom_schema_name | trim }}\n\n {%- else -%}\n\n {{ default_schema }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.894301, "supported_languages": null}, "macro.dbt.generate_database_name": {"unique_id": "macro.dbt.generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "generate_database_name", "macro_sql": "{% macro generate_database_name(custom_database_name=none, node=none) -%}\n {% do return(adapter.dispatch('generate_database_name', 'dbt')(custom_database_name, node)) %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__generate_database_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.894756, "supported_languages": null}, "macro.dbt.default__generate_database_name": {"unique_id": "macro.dbt.default__generate_database_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/get_custom_name/get_custom_database.sql", "original_file_path": "macros/get_custom_name/get_custom_database.sql", "name": "default__generate_database_name", "macro_sql": "{% macro default__generate_database_name(custom_database_name=none, node=none) -%}\n {%- set default_database = target.database -%}\n {%- if custom_database_name is none -%}\n\n {{ default_database }}\n\n {%- else -%}\n\n {{ custom_database_name }}\n\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8950038, "supported_languages": null}, "macro.dbt.default__test_relationships": {"unique_id": "macro.dbt.default__test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/relationships.sql", "original_file_path": "macros/generic_test_sql/relationships.sql", "name": "default__test_relationships", "macro_sql": "{% macro default__test_relationships(model, column_name, to, field) %}\n\nwith child as (\n select {{ column_name }} as from_field\n from {{ model }}\n where {{ column_name }} is not null\n),\n\nparent as (\n select {{ field }} as to_field\n from {{ to }}\n)\n\nselect\n from_field\n\nfrom child\nleft join parent\n on child.from_field = parent.to_field\n\nwhere parent.to_field is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.895422, "supported_languages": null}, "macro.dbt.default__test_not_null": {"unique_id": "macro.dbt.default__test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/not_null.sql", "original_file_path": "macros/generic_test_sql/not_null.sql", "name": "default__test_not_null", "macro_sql": "{% macro default__test_not_null(model, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else column_name %}\n\nselect {{ column_list }}\nfrom {{ model }}\nwhere {{ column_name }} is null\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.895784, "supported_languages": null}, "macro.dbt.default__test_unique": {"unique_id": "macro.dbt.default__test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/unique.sql", "original_file_path": "macros/generic_test_sql/unique.sql", "name": "default__test_unique", "macro_sql": "{% macro default__test_unique(model, column_name) %}\n\nselect\n {{ column_name }} as unique_field,\n count(*) as n_records\n\nfrom {{ model }}\nwhere {{ column_name }} is not null\ngroup by {{ column_name }}\nhaving count(*) > 1\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.8960938, "supported_languages": null}, "macro.dbt.default__test_accepted_values": {"unique_id": "macro.dbt.default__test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/generic_test_sql/accepted_values.sql", "original_file_path": "macros/generic_test_sql/accepted_values.sql", "name": "default__test_accepted_values", "macro_sql": "{% macro default__test_accepted_values(model, column_name, values, quote=True) %}\n\nwith all_values as (\n\n select\n {{ column_name }} as value_field,\n count(*) as n_records\n\n from {{ model }}\n group by {{ column_name }}\n\n)\n\nselect *\nfrom all_values\nwhere value_field not in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n)\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.896704, "supported_languages": null}, "macro.dbt.statement": {"unique_id": "macro.dbt.statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "statement", "macro_sql": "\n{%- macro statement(name=None, fetch_result=False, auto_begin=True, language='sql') -%}\n {%- if execute: -%}\n {%- set compiled_code = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime {} for node \"{}\"'.format(language, model['unique_id'])) }}\n {{ write(compiled_code) }}\n {%- endif -%}\n {%- if language == 'sql'-%}\n {%- set res, table = adapter.execute(compiled_code, auto_begin=auto_begin, fetch=fetch_result) -%}\n {%- elif language == 'python' -%}\n {%- set res = submit_python_job(model, compiled_code) -%}\n {#-- TODO: What should table be for python models? --#}\n {%- set table = None -%}\n {%- else -%}\n {% do exceptions.raise_compiler_error(\"statement macro didn't get supported language\") %}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_result(name, response=res, agate_table=table) }}\n {%- endif -%}\n\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.898175, "supported_languages": null}, "macro.dbt.noop_statement": {"unique_id": "macro.dbt.noop_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "noop_statement", "macro_sql": "{% macro noop_statement(name=None, message=None, code=None, rows_affected=None, res=None) -%}\n {%- set sql = caller() -%}\n\n {%- if name == 'main' -%}\n {{ log('Writing runtime SQL for node \"{}\"'.format(model['unique_id'])) }}\n {{ write(sql) }}\n {%- endif -%}\n\n {%- if name is not none -%}\n {{ store_raw_result(name, message=message, code=code, rows_affected=rows_affected, agate_table=res) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.898797, "supported_languages": null}, "macro.dbt.run_query": {"unique_id": "macro.dbt.run_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/statement.sql", "original_file_path": "macros/etc/statement.sql", "name": "run_query", "macro_sql": "{% macro run_query(sql) %}\n {% call statement(\"run_query_statement\", fetch_result=true, auto_begin=false) %}\n {{ sql }}\n {% endcall %}\n\n {% do return(load_result(\"run_query_statement\").table) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.899088, "supported_languages": null}, "macro.dbt.convert_datetime": {"unique_id": "macro.dbt.convert_datetime", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "convert_datetime", "macro_sql": "{% macro convert_datetime(date_str, date_fmt) %}\n\n {% set error_msg -%}\n The provided partition date '{{ date_str }}' does not match the expected format '{{ date_fmt }}'\n {%- endset %}\n\n {% set res = try_or_compiler_error(error_msg, modules.datetime.datetime.strptime, date_str.strip(), date_fmt) %}\n {{ return(res) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.900828, "supported_languages": null}, "macro.dbt.dates_in_range": {"unique_id": "macro.dbt.dates_in_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "dates_in_range", "macro_sql": "{% macro dates_in_range(start_date_str, end_date_str=none, in_fmt=\"%Y%m%d\", out_fmt=\"%Y%m%d\") %}\n {% set end_date_str = start_date_str if end_date_str is none else end_date_str %}\n\n {% set start_date = convert_datetime(start_date_str, in_fmt) %}\n {% set end_date = convert_datetime(end_date_str, in_fmt) %}\n\n {% set day_count = (end_date - start_date).days %}\n {% if day_count < 0 %}\n {% set msg -%}\n Partiton start date is after the end date ({{ start_date }}, {{ end_date }})\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg, model) }}\n {% endif %}\n\n {% set date_list = [] %}\n {% for i in range(0, day_count + 1) %}\n {% set the_date = (modules.datetime.timedelta(days=i) + start_date) %}\n {% if not out_fmt %}\n {% set _ = date_list.append(the_date) %}\n {% else %}\n {% set _ = date_list.append(the_date.strftime(out_fmt)) %}\n {% endif %}\n {% endfor %}\n\n {{ return(date_list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.convert_datetime"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9019892, "supported_languages": null}, "macro.dbt.partition_range": {"unique_id": "macro.dbt.partition_range", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "partition_range", "macro_sql": "{% macro partition_range(raw_partition_date, date_fmt='%Y%m%d') %}\n {% set partition_range = (raw_partition_date | string).split(\",\") %}\n\n {% if (partition_range | length) == 1 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = none %}\n {% elif (partition_range | length) == 2 %}\n {% set start_date = partition_range[0] %}\n {% set end_date = partition_range[1] %}\n {% else %}\n {{ exceptions.raise_compiler_error(\"Invalid partition time. Expected format: {Start Date}[,{End Date}]. Got: \" ~ raw_partition_date) }}\n {% endif %}\n\n {{ return(dates_in_range(start_date, end_date, in_fmt=date_fmt)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dates_in_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.902705, "supported_languages": null}, "macro.dbt.py_current_timestring": {"unique_id": "macro.dbt.py_current_timestring", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/etc/datetime.sql", "original_file_path": "macros/etc/datetime.sql", "name": "py_current_timestring", "macro_sql": "{% macro py_current_timestring() %}\n {% set dt = modules.datetime.datetime.now() %}\n {% do return(dt.strftime(\"%Y%m%d%H%M%S%f\")) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.902935, "supported_languages": null}, "macro.dbt.except": {"unique_id": "macro.dbt.except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "except", "macro_sql": "{% macro except() %}\n {{ return(adapter.dispatch('except', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9032462, "supported_languages": null}, "macro.dbt.default__except": {"unique_id": "macro.dbt.default__except", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/except.sql", "original_file_path": "macros/utils/except.sql", "name": "default__except", "macro_sql": "{% macro default__except() %}\n\n except\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.903321, "supported_languages": null}, "macro.dbt.replace": {"unique_id": "macro.dbt.replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "replace", "macro_sql": "{% macro replace(field, old_chars, new_chars) -%}\n {{ return(adapter.dispatch('replace', 'dbt') (field, old_chars, new_chars)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__replace"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.903706, "supported_languages": null}, "macro.dbt.default__replace": {"unique_id": "macro.dbt.default__replace", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/replace.sql", "original_file_path": "macros/utils/replace.sql", "name": "default__replace", "macro_sql": "{% macro default__replace(field, old_chars, new_chars) %}\n\n replace(\n {{ field }},\n {{ old_chars }},\n {{ new_chars }}\n )\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9038641, "supported_languages": null}, "macro.dbt.concat": {"unique_id": "macro.dbt.concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "concat", "macro_sql": "{% macro concat(fields) -%}\n {{ return(adapter.dispatch('concat', 'dbt')(fields)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.904172, "supported_languages": null}, "macro.dbt.default__concat": {"unique_id": "macro.dbt.default__concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/concat.sql", "original_file_path": "macros/utils/concat.sql", "name": "default__concat", "macro_sql": "{% macro default__concat(fields) -%}\n {{ fields|join(' || ') }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.904298, "supported_languages": null}, "macro.dbt.length": {"unique_id": "macro.dbt.length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "length", "macro_sql": "{% macro length(expression) -%}\n {{ return(adapter.dispatch('length', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__length"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.904614, "supported_languages": null}, "macro.dbt.default__length": {"unique_id": "macro.dbt.default__length", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/length.sql", "original_file_path": "macros/utils/length.sql", "name": "default__length", "macro_sql": "{% macro default__length(expression) %}\n\n length(\n {{ expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.904722, "supported_languages": null}, "macro.dbt.dateadd": {"unique_id": "macro.dbt.dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "dateadd", "macro_sql": "{% macro dateadd(datepart, interval, from_date_or_timestamp) %}\n {{ return(adapter.dispatch('dateadd', 'dbt')(datepart, interval, from_date_or_timestamp)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.905123, "supported_languages": null}, "macro.dbt.default__dateadd": {"unique_id": "macro.dbt.default__dateadd", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/dateadd.sql", "original_file_path": "macros/utils/dateadd.sql", "name": "default__dateadd", "macro_sql": "{% macro default__dateadd(datepart, interval, from_date_or_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_date_or_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.905282, "supported_languages": null}, "macro.dbt.intersect": {"unique_id": "macro.dbt.intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "intersect", "macro_sql": "{% macro intersect() %}\n {{ return(adapter.dispatch('intersect', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__intersect"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9055731, "supported_languages": null}, "macro.dbt.default__intersect": {"unique_id": "macro.dbt.default__intersect", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/intersect.sql", "original_file_path": "macros/utils/intersect.sql", "name": "default__intersect", "macro_sql": "{% macro default__intersect() %}\n\n intersect\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.905668, "supported_languages": null}, "macro.dbt.escape_single_quotes": {"unique_id": "macro.dbt.escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "escape_single_quotes", "macro_sql": "{% macro escape_single_quotes(expression) %}\n {{ return(adapter.dispatch('escape_single_quotes', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__escape_single_quotes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.905992, "supported_languages": null}, "macro.dbt.default__escape_single_quotes": {"unique_id": "macro.dbt.default__escape_single_quotes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/escape_single_quotes.sql", "original_file_path": "macros/utils/escape_single_quotes.sql", "name": "default__escape_single_quotes", "macro_sql": "{% macro default__escape_single_quotes(expression) -%}\n{{ expression | replace(\"'\",\"''\") }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.906129, "supported_languages": null}, "macro.dbt.right": {"unique_id": "macro.dbt.right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "right", "macro_sql": "{% macro right(string_text, length_expression) -%}\n {{ return(adapter.dispatch('right', 'dbt') (string_text, length_expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__right"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9064782, "supported_languages": null}, "macro.dbt.default__right": {"unique_id": "macro.dbt.default__right", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/right.sql", "original_file_path": "macros/utils/right.sql", "name": "default__right", "macro_sql": "{% macro default__right(string_text, length_expression) %}\n\n right(\n {{ string_text }},\n {{ length_expression }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.906678, "supported_languages": null}, "macro.dbt.listagg": {"unique_id": "macro.dbt.listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "listagg", "macro_sql": "{% macro listagg(measure, delimiter_text=\"','\", order_by_clause=none, limit_num=none) -%}\n {{ return(adapter.dispatch('listagg', 'dbt') (measure, delimiter_text, order_by_clause, limit_num)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__listagg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.907336, "supported_languages": null}, "macro.dbt.default__listagg": {"unique_id": "macro.dbt.default__listagg", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/listagg.sql", "original_file_path": "macros/utils/listagg.sql", "name": "default__listagg", "macro_sql": "{% macro default__listagg(measure, delimiter_text, order_by_clause, limit_num) -%}\n\n {% if limit_num -%}\n array_to_string(\n array_slice(\n array_agg(\n {{ measure }}\n ){% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n ,0\n ,{{ limit_num }}\n ),\n {{ delimiter_text }}\n )\n {%- else %}\n listagg(\n {{ measure }},\n {{ delimiter_text }}\n )\n {% if order_by_clause -%}\n within group ({{ order_by_clause }})\n {%- endif %}\n {%- endif %}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.907737, "supported_languages": null}, "macro.dbt.datediff": {"unique_id": "macro.dbt.datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "datediff", "macro_sql": "{% macro datediff(first_date, second_date, datepart) %}\n {{ return(adapter.dispatch('datediff', 'dbt')(first_date, second_date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.908134, "supported_languages": null}, "macro.dbt.default__datediff": {"unique_id": "macro.dbt.default__datediff", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/datediff.sql", "original_file_path": "macros/utils/datediff.sql", "name": "default__datediff", "macro_sql": "{% macro default__datediff(first_date, second_date, datepart) -%}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.908294, "supported_languages": null}, "macro.dbt.safe_cast": {"unique_id": "macro.dbt.safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "safe_cast", "macro_sql": "{% macro safe_cast(field, type) %}\n {{ return(adapter.dispatch('safe_cast', 'dbt') (field, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__safe_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.908637, "supported_languages": null}, "macro.dbt.default__safe_cast": {"unique_id": "macro.dbt.default__safe_cast", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/safe_cast.sql", "original_file_path": "macros/utils/safe_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9087749, "supported_languages": null}, "macro.dbt.hash": {"unique_id": "macro.dbt.hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "hash", "macro_sql": "{% macro hash(field) -%}\n {{ return(adapter.dispatch('hash', 'dbt') (field)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__hash"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9091, "supported_languages": null}, "macro.dbt.default__hash": {"unique_id": "macro.dbt.default__hash", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/hash.sql", "original_file_path": "macros/utils/hash.sql", "name": "default__hash", "macro_sql": "{% macro default__hash(field) -%}\n md5(cast({{ field }} as {{ api.Column.translate_type('string') }}))\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.909258, "supported_languages": null}, "macro.dbt.cast_bool_to_text": {"unique_id": "macro.dbt.cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "cast_bool_to_text", "macro_sql": "{% macro cast_bool_to_text(field) %}\n {{ adapter.dispatch('cast_bool_to_text', 'dbt') (field) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.909573, "supported_languages": null}, "macro.dbt.default__cast_bool_to_text": {"unique_id": "macro.dbt.default__cast_bool_to_text", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/cast_bool_to_text.sql", "original_file_path": "macros/utils/cast_bool_to_text.sql", "name": "default__cast_bool_to_text", "macro_sql": "{% macro default__cast_bool_to_text(field) %}\n cast({{ field }} as {{ api.Column.translate_type('string') }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.909725, "supported_languages": null}, "macro.dbt.any_value": {"unique_id": "macro.dbt.any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "any_value", "macro_sql": "{% macro any_value(expression) -%}\n {{ return(adapter.dispatch('any_value', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__any_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.910035, "supported_languages": null}, "macro.dbt.default__any_value": {"unique_id": "macro.dbt.default__any_value", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/any_value.sql", "original_file_path": "macros/utils/any_value.sql", "name": "default__any_value", "macro_sql": "{% macro default__any_value(expression) -%}\n\n any_value({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9101388, "supported_languages": null}, "macro.dbt.position": {"unique_id": "macro.dbt.position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "position", "macro_sql": "{% macro position(substring_text, string_text) -%}\n {{ return(adapter.dispatch('position', 'dbt') (substring_text, string_text)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__position"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9104981, "supported_languages": null}, "macro.dbt.default__position": {"unique_id": "macro.dbt.default__position", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/position.sql", "original_file_path": "macros/utils/position.sql", "name": "default__position", "macro_sql": "{% macro default__position(substring_text, string_text) %}\n\n position(\n {{ substring_text }} in {{ string_text }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.910634, "supported_languages": null}, "macro.dbt.string_literal": {"unique_id": "macro.dbt.string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "string_literal", "macro_sql": "{%- macro string_literal(value) -%}\n {{ return(adapter.dispatch('string_literal', 'dbt') (value)) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__string_literal"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.910944, "supported_languages": null}, "macro.dbt.default__string_literal": {"unique_id": "macro.dbt.default__string_literal", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/literal.sql", "original_file_path": "macros/utils/literal.sql", "name": "default__string_literal", "macro_sql": "{% macro default__string_literal(value) -%}\n '{{ value }}'\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.911048, "supported_languages": null}, "macro.dbt.type_string": {"unique_id": "macro.dbt.type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_string", "macro_sql": "\n\n{%- macro type_string() -%}\n {{ return(adapter.dispatch('type_string', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.911988, "supported_languages": null}, "macro.dbt.default__type_string": {"unique_id": "macro.dbt.default__type_string", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_string", "macro_sql": "{% macro default__type_string() %}\n {{ return(api.Column.translate_type(\"string\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9121358, "supported_languages": null}, "macro.dbt.type_timestamp": {"unique_id": "macro.dbt.type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_timestamp", "macro_sql": "\n\n{%- macro type_timestamp() -%}\n {{ return(adapter.dispatch('type_timestamp', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.912354, "supported_languages": null}, "macro.dbt.default__type_timestamp": {"unique_id": "macro.dbt.default__type_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_timestamp", "macro_sql": "{% macro default__type_timestamp() %}\n {{ return(api.Column.translate_type(\"timestamp\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9125, "supported_languages": null}, "macro.dbt.type_float": {"unique_id": "macro.dbt.type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_float", "macro_sql": "\n\n{%- macro type_float() -%}\n {{ return(adapter.dispatch('type_float', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9126568, "supported_languages": null}, "macro.dbt.default__type_float": {"unique_id": "macro.dbt.default__type_float", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_float", "macro_sql": "{% macro default__type_float() %}\n {{ return(api.Column.translate_type(\"float\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.912811, "supported_languages": null}, "macro.dbt.type_numeric": {"unique_id": "macro.dbt.type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_numeric", "macro_sql": "\n\n{%- macro type_numeric() -%}\n {{ return(adapter.dispatch('type_numeric', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9129689, "supported_languages": null}, "macro.dbt.default__type_numeric": {"unique_id": "macro.dbt.default__type_numeric", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_numeric", "macro_sql": "{% macro default__type_numeric() %}\n {{ return(api.Column.numeric_type(\"numeric\", 28, 6)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.913138, "supported_languages": null}, "macro.dbt.type_bigint": {"unique_id": "macro.dbt.type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_bigint", "macro_sql": "\n\n{%- macro type_bigint() -%}\n {{ return(adapter.dispatch('type_bigint', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_bigint"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.913294, "supported_languages": null}, "macro.dbt.default__type_bigint": {"unique_id": "macro.dbt.default__type_bigint", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_bigint", "macro_sql": "{% macro default__type_bigint() %}\n {{ return(api.Column.translate_type(\"bigint\")) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.913443, "supported_languages": null}, "macro.dbt.type_int": {"unique_id": "macro.dbt.type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_int", "macro_sql": "\n\n{%- macro type_int() -%}\n {{ return(adapter.dispatch('type_int', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9136, "supported_languages": null}, "macro.dbt.default__type_int": {"unique_id": "macro.dbt.default__type_int", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_int", "macro_sql": "{%- macro default__type_int() -%}\n {{ return(api.Column.translate_type(\"integer\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.913742, "supported_languages": null}, "macro.dbt.type_boolean": {"unique_id": "macro.dbt.type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "type_boolean", "macro_sql": "\n\n{%- macro type_boolean() -%}\n {{ return(adapter.dispatch('type_boolean', 'dbt')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__type_boolean"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.913894, "supported_languages": null}, "macro.dbt.default__type_boolean": {"unique_id": "macro.dbt.default__type_boolean", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/data_types.sql", "original_file_path": "macros/utils/data_types.sql", "name": "default__type_boolean", "macro_sql": "{%- macro default__type_boolean() -%}\n {{ return(api.Column.translate_type(\"boolean\")) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.91403, "supported_languages": null}, "macro.dbt.array_concat": {"unique_id": "macro.dbt.array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "array_concat", "macro_sql": "{% macro array_concat(array_1, array_2) -%}\n {{ return(adapter.dispatch('array_concat', 'dbt')(array_1, array_2)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.914378, "supported_languages": null}, "macro.dbt.default__array_concat": {"unique_id": "macro.dbt.default__array_concat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_concat.sql", "original_file_path": "macros/utils/array_concat.sql", "name": "default__array_concat", "macro_sql": "{% macro default__array_concat(array_1, array_2) -%}\n array_cat({{ array_1 }}, {{ array_2 }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.914507, "supported_languages": null}, "macro.dbt.bool_or": {"unique_id": "macro.dbt.bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "bool_or", "macro_sql": "{% macro bool_or(expression) -%}\n {{ return(adapter.dispatch('bool_or', 'dbt') (expression)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__bool_or"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9148211, "supported_languages": null}, "macro.dbt.default__bool_or": {"unique_id": "macro.dbt.default__bool_or", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/bool_or.sql", "original_file_path": "macros/utils/bool_or.sql", "name": "default__bool_or", "macro_sql": "{% macro default__bool_or(expression) -%}\n\n bool_or({{ expression }})\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.914923, "supported_languages": null}, "macro.dbt.last_day": {"unique_id": "macro.dbt.last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "last_day", "macro_sql": "{% macro last_day(date, datepart) %}\n {{ return(adapter.dispatch('last_day', 'dbt') (date, datepart)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.915324, "supported_languages": null}, "macro.dbt.default_last_day": {"unique_id": "macro.dbt.default_last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default_last_day", "macro_sql": "\n\n{%- macro default_last_day(date, datepart) -%}\n cast(\n {{dbt.dateadd('day', '-1',\n dbt.dateadd(datepart, '1', dbt.date_trunc(datepart, date))\n )}}\n as date)\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.915584, "supported_languages": null}, "macro.dbt.default__last_day": {"unique_id": "macro.dbt.default__last_day", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/last_day.sql", "original_file_path": "macros/utils/last_day.sql", "name": "default__last_day", "macro_sql": "{% macro default__last_day(date, datepart) -%}\n {{dbt.default_last_day(date, datepart)}}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default_last_day"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9157262, "supported_languages": null}, "macro.dbt.split_part": {"unique_id": "macro.dbt.split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "split_part", "macro_sql": "{% macro split_part(string_text, delimiter_text, part_number) %}\n {{ return(adapter.dispatch('split_part', 'dbt') (string_text, delimiter_text, part_number)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.916279, "supported_languages": null}, "macro.dbt.default__split_part": {"unique_id": "macro.dbt.default__split_part", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "default__split_part", "macro_sql": "{% macro default__split_part(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9164412, "supported_languages": null}, "macro.dbt._split_part_negative": {"unique_id": "macro.dbt._split_part_negative", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/split_part.sql", "original_file_path": "macros/utils/split_part.sql", "name": "_split_part_negative", "macro_sql": "{% macro _split_part_negative(string_text, delimiter_text, part_number) %}\n\n split_part(\n {{ string_text }},\n {{ delimiter_text }},\n length({{ string_text }})\n - length(\n replace({{ string_text }}, {{ delimiter_text }}, '')\n ) + 2 {{ part_number }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.916726, "supported_languages": null}, "macro.dbt.date_trunc": {"unique_id": "macro.dbt.date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "date_trunc", "macro_sql": "{% macro date_trunc(datepart, date) -%}\n {{ return(adapter.dispatch('date_trunc', 'dbt') (datepart, date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__date_trunc"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.917074, "supported_languages": null}, "macro.dbt.default__date_trunc": {"unique_id": "macro.dbt.default__date_trunc", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/date_trunc.sql", "original_file_path": "macros/utils/date_trunc.sql", "name": "default__date_trunc", "macro_sql": "{% macro default__date_trunc(datepart, date) -%}\n date_trunc('{{datepart}}', {{date}})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.917195, "supported_languages": null}, "macro.dbt.array_construct": {"unique_id": "macro.dbt.array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "array_construct", "macro_sql": "{% macro array_construct(inputs=[], data_type=api.Column.translate_type('integer')) -%}\n {{ return(adapter.dispatch('array_construct', 'dbt')(inputs, data_type)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_construct"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.917619, "supported_languages": null}, "macro.dbt.default__array_construct": {"unique_id": "macro.dbt.default__array_construct", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_construct.sql", "original_file_path": "macros/utils/array_construct.sql", "name": "default__array_construct", "macro_sql": "{% macro default__array_construct(inputs, data_type) -%}\n {% if inputs|length > 0 %}\n array[ {{ inputs|join(' , ') }} ]\n {% else %}\n array[]::{{data_type}}[]\n {% endif %}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.91785, "supported_languages": null}, "macro.dbt.array_append": {"unique_id": "macro.dbt.array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "array_append", "macro_sql": "{% macro array_append(array, new_element) -%}\n {{ return(adapter.dispatch('array_append', 'dbt')(array, new_element)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__array_append"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.91819, "supported_languages": null}, "macro.dbt.default__array_append": {"unique_id": "macro.dbt.default__array_append", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/utils/array_append.sql", "original_file_path": "macros/utils/array_append.sql", "name": "default__array_append", "macro_sql": "{% macro default__array_append(array, new_element) -%}\n array_append({{ array }}, {{ new_element }})\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.918319, "supported_languages": null}, "macro.dbt.create_schema": {"unique_id": "macro.dbt.create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "create_schema", "macro_sql": "{% macro create_schema(relation) -%}\n {{ adapter.dispatch('create_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__create_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9187388, "supported_languages": null}, "macro.dbt.default__create_schema": {"unique_id": "macro.dbt.default__create_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__create_schema", "macro_sql": "{% macro default__create_schema(relation) -%}\n {%- call statement('create_schema') -%}\n create schema if not exists {{ relation.without_identifier() }}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.918922, "supported_languages": null}, "macro.dbt.drop_schema": {"unique_id": "macro.dbt.drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "drop_schema", "macro_sql": "{% macro drop_schema(relation) -%}\n {{ adapter.dispatch('drop_schema', 'dbt')(relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__drop_schema"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9190788, "supported_languages": null}, "macro.dbt.default__drop_schema": {"unique_id": "macro.dbt.default__drop_schema", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/schema.sql", "original_file_path": "macros/adapters/schema.sql", "name": "default__drop_schema", "macro_sql": "{% macro default__drop_schema(relation) -%}\n {%- call statement('drop_schema') -%}\n drop schema if exists {{ relation.without_identifier() }} cascade\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.919252, "supported_languages": null}, "macro.dbt.current_timestamp": {"unique_id": "macro.dbt.current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp", "macro_sql": "{%- macro current_timestamp() -%}\n {{ adapter.dispatch('current_timestamp', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.919769, "supported_languages": null}, "macro.dbt.default__current_timestamp": {"unique_id": "macro.dbt.default__current_timestamp", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp", "macro_sql": "{% macro default__current_timestamp() -%}\n {{ exceptions.raise_not_implemented(\n 'current_timestamp macro not implemented for adapter ' + adapter.type()) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.91991, "supported_languages": null}, "macro.dbt.snapshot_get_time": {"unique_id": "macro.dbt.snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "snapshot_get_time", "macro_sql": "\n\n{%- macro snapshot_get_time() -%}\n {{ adapter.dispatch('snapshot_get_time', 'dbt')() }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__snapshot_get_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.920042, "supported_languages": null}, "macro.dbt.default__snapshot_get_time": {"unique_id": "macro.dbt.default__snapshot_get_time", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__snapshot_get_time", "macro_sql": "{% macro default__snapshot_get_time() %}\n {{ current_timestamp() }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.920139, "supported_languages": null}, "macro.dbt.current_timestamp_backcompat": {"unique_id": "macro.dbt.current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_backcompat", "macro_sql": "{% macro current_timestamp_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.920299, "supported_languages": null}, "macro.dbt.default__current_timestamp_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_backcompat", "macro_sql": "{% macro default__current_timestamp_backcompat() %}\n current_timestamp::timestamp\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9203682, "supported_languages": null}, "macro.dbt.current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "current_timestamp_in_utc_backcompat", "macro_sql": "{% macro current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_in_utc_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__current_timestamp_in_utc_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.920523, "supported_languages": null}, "macro.dbt.default__current_timestamp_in_utc_backcompat": {"unique_id": "macro.dbt.default__current_timestamp_in_utc_backcompat", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/timestamps.sql", "original_file_path": "macros/adapters/timestamps.sql", "name": "default__current_timestamp_in_utc_backcompat", "macro_sql": "{% macro default__current_timestamp_in_utc_backcompat() %}\n {{ return(adapter.dispatch('current_timestamp_backcompat', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.current_timestamp_backcompat", "macro.dbt_postgres.postgres__current_timestamp_backcompat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.920727, "supported_languages": null}, "macro.dbt.get_create_index_sql": {"unique_id": "macro.dbt.get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "get_create_index_sql", "macro_sql": "{% macro get_create_index_sql(relation, index_dict) -%}\n {{ return(adapter.dispatch('get_create_index_sql', 'dbt')(relation, index_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_create_index_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.921298, "supported_languages": null}, "macro.dbt.default__get_create_index_sql": {"unique_id": "macro.dbt.default__get_create_index_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__get_create_index_sql", "macro_sql": "{% macro default__get_create_index_sql(relation, index_dict) -%}\n {% do return(None) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.921509, "supported_languages": null}, "macro.dbt.create_indexes": {"unique_id": "macro.dbt.create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "create_indexes", "macro_sql": "{% macro create_indexes(relation) -%}\n {{ adapter.dispatch('create_indexes', 'dbt')(relation) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__create_indexes"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9216661, "supported_languages": null}, "macro.dbt.default__create_indexes": {"unique_id": "macro.dbt.default__create_indexes", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/indexes.sql", "original_file_path": "macros/adapters/indexes.sql", "name": "default__create_indexes", "macro_sql": "{% macro default__create_indexes(relation) -%}\n {%- set _indexes = config.get('indexes', default=[]) -%}\n\n {% for _index_dict in _indexes %}\n {% set create_index_sql = get_create_index_sql(relation, _index_dict) %}\n {% if create_index_sql %}\n {% do run_query(create_index_sql) %}\n {% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.get_create_index_sql", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.922055, "supported_languages": null}, "macro.dbt.make_intermediate_relation": {"unique_id": "macro.dbt.make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_intermediate_relation", "macro_sql": "{% macro make_intermediate_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_intermediate_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_intermediate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9251049, "supported_languages": null}, "macro.dbt.default__make_intermediate_relation": {"unique_id": "macro.dbt.default__make_intermediate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_intermediate_relation", "macro_sql": "{% macro default__make_intermediate_relation(base_relation, suffix) %}\n {{ return(default__make_temp_relation(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.92527, "supported_languages": null}, "macro.dbt.make_temp_relation": {"unique_id": "macro.dbt.make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_temp_relation", "macro_sql": "{% macro make_temp_relation(base_relation, suffix='__dbt_tmp') %}\n {{ return(adapter.dispatch('make_temp_relation', 'dbt')(base_relation, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_temp_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9254808, "supported_languages": null}, "macro.dbt.default__make_temp_relation": {"unique_id": "macro.dbt.default__make_temp_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_temp_relation", "macro_sql": "{% macro default__make_temp_relation(base_relation, suffix) %}\n {%- set temp_identifier = base_relation.identifier ~ suffix -%}\n {%- set temp_relation = base_relation.incorporate(\n path={\"identifier\": temp_identifier}) -%}\n\n {{ return(temp_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.925767, "supported_languages": null}, "macro.dbt.make_backup_relation": {"unique_id": "macro.dbt.make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "make_backup_relation", "macro_sql": "{% macro make_backup_relation(base_relation, backup_relation_type, suffix='__dbt_backup') %}\n {{ return(adapter.dispatch('make_backup_relation', 'dbt')(base_relation, backup_relation_type, suffix)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__make_backup_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.926004, "supported_languages": null}, "macro.dbt.default__make_backup_relation": {"unique_id": "macro.dbt.default__make_backup_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__make_backup_relation", "macro_sql": "{% macro default__make_backup_relation(base_relation, backup_relation_type, suffix) %}\n {%- set backup_identifier = base_relation.identifier ~ suffix -%}\n {%- set backup_relation = base_relation.incorporate(\n path={\"identifier\": backup_identifier},\n type=backup_relation_type\n ) -%}\n {{ return(backup_relation) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.926309, "supported_languages": null}, "macro.dbt.drop_relation": {"unique_id": "macro.dbt.drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation", "macro_sql": "{% macro drop_relation(relation) -%}\n {{ return(adapter.dispatch('drop_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__drop_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.926486, "supported_languages": null}, "macro.dbt.default__drop_relation": {"unique_id": "macro.dbt.default__drop_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__drop_relation", "macro_sql": "{% macro default__drop_relation(relation) -%}\n {% call statement('drop_relation', auto_begin=False) -%}\n drop {{ relation.type }} if exists {{ relation }} cascade\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9266932, "supported_languages": null}, "macro.dbt.truncate_relation": {"unique_id": "macro.dbt.truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "truncate_relation", "macro_sql": "{% macro truncate_relation(relation) -%}\n {{ return(adapter.dispatch('truncate_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__truncate_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.92687, "supported_languages": null}, "macro.dbt.default__truncate_relation": {"unique_id": "macro.dbt.default__truncate_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__truncate_relation", "macro_sql": "{% macro default__truncate_relation(relation) -%}\n {% call statement('truncate_relation') -%}\n truncate table {{ relation }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.927022, "supported_languages": null}, "macro.dbt.rename_relation": {"unique_id": "macro.dbt.rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "rename_relation", "macro_sql": "{% macro rename_relation(from_relation, to_relation) -%}\n {{ return(adapter.dispatch('rename_relation', 'dbt')(from_relation, to_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__rename_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.927219, "supported_languages": null}, "macro.dbt.default__rename_relation": {"unique_id": "macro.dbt.default__rename_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__rename_relation", "macro_sql": "{% macro default__rename_relation(from_relation, to_relation) -%}\n {% set target_name = adapter.quote_as_configured(to_relation.identifier, 'identifier') %}\n {% call statement('rename_relation') -%}\n alter table {{ from_relation }} rename to {{ target_name }}\n {%- endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.927489, "supported_languages": null}, "macro.dbt.get_or_create_relation": {"unique_id": "macro.dbt.get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "get_or_create_relation", "macro_sql": "{% macro get_or_create_relation(database, schema, identifier, type) -%}\n {{ return(adapter.dispatch('get_or_create_relation', 'dbt')(database, schema, identifier, type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_or_create_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.927731, "supported_languages": null}, "macro.dbt.default__get_or_create_relation": {"unique_id": "macro.dbt.default__get_or_create_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "default__get_or_create_relation", "macro_sql": "{% macro default__get_or_create_relation(database, schema, identifier, type) %}\n {%- set target_relation = adapter.get_relation(database=database, schema=schema, identifier=identifier) %}\n\n {% if target_relation %}\n {% do return([true, target_relation]) %}\n {% endif %}\n\n {%- set new_relation = api.Relation.create(\n database=database,\n schema=schema,\n identifier=identifier,\n type=type\n ) -%}\n {% do return([false, new_relation]) %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.928267, "supported_languages": null}, "macro.dbt.load_cached_relation": {"unique_id": "macro.dbt.load_cached_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_cached_relation", "macro_sql": "{% macro load_cached_relation(relation) %}\n {% do return(adapter.get_relation(\n database=relation.database,\n schema=relation.schema,\n identifier=relation.identifier\n )) -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.928555, "supported_languages": null}, "macro.dbt.load_relation": {"unique_id": "macro.dbt.load_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "load_relation", "macro_sql": "{% macro load_relation(relation) %}\n {{ return(load_cached_relation(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.load_cached_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9286919, "supported_languages": null}, "macro.dbt.drop_relation_if_exists": {"unique_id": "macro.dbt.drop_relation_if_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/relation.sql", "original_file_path": "macros/adapters/relation.sql", "name": "drop_relation_if_exists", "macro_sql": "{% macro drop_relation_if_exists(relation) %}\n {% if relation is not none %}\n {{ adapter.drop_relation(relation) }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.928879, "supported_languages": null}, "macro.dbt.collect_freshness": {"unique_id": "macro.dbt.collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness', 'dbt')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.929357, "supported_languages": null}, "macro.dbt.default__collect_freshness": {"unique_id": "macro.dbt.default__collect_freshness", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/freshness.sql", "original_file_path": "macros/adapters/freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n select\n max({{ loaded_at_field }}) as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.929755, "supported_languages": null}, "macro.dbt.copy_grants": {"unique_id": "macro.dbt.copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "copy_grants", "macro_sql": "{% macro copy_grants() %}\n {{ return(adapter.dispatch('copy_grants', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.931391, "supported_languages": null}, "macro.dbt.default__copy_grants": {"unique_id": "macro.dbt.default__copy_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__copy_grants", "macro_sql": "{% macro default__copy_grants() %}\n {{ return(True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.931503, "supported_languages": null}, "macro.dbt.support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "support_multiple_grantees_per_dcl_statement", "macro_sql": "{% macro support_multiple_grantees_per_dcl_statement() %}\n {{ return(adapter.dispatch('support_multiple_grantees_per_dcl_statement', 'dbt')()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.931669, "supported_languages": null}, "macro.dbt.default__support_multiple_grantees_per_dcl_statement": {"unique_id": "macro.dbt.default__support_multiple_grantees_per_dcl_statement", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__support_multiple_grantees_per_dcl_statement", "macro_sql": "\n\n{%- macro default__support_multiple_grantees_per_dcl_statement() -%}\n {{ return(True) }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.931775, "supported_languages": null}, "macro.dbt.should_revoke": {"unique_id": "macro.dbt.should_revoke", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "should_revoke", "macro_sql": "{% macro should_revoke(existing_relation, full_refresh_mode=True) %}\n\n {% if not existing_relation %}\n {#-- The table doesn't already exist, so no grants to copy over --#}\n {{ return(False) }}\n {% elif full_refresh_mode %}\n {#-- The object is being REPLACED -- whether grants are copied over depends on the value of user config --#}\n {{ return(copy_grants()) }}\n {% else %}\n {#-- The table is being merged/upserted/inserted -- grants will be carried over --#}\n {{ return(True) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.copy_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.93211, "supported_languages": null}, "macro.dbt.get_show_grant_sql": {"unique_id": "macro.dbt.get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_show_grant_sql", "macro_sql": "{% macro get_show_grant_sql(relation) %}\n {{ return(adapter.dispatch(\"get_show_grant_sql\", \"dbt\")(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_show_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9322948, "supported_languages": null}, "macro.dbt.default__get_show_grant_sql": {"unique_id": "macro.dbt.default__get_show_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_show_grant_sql", "macro_sql": "{% macro default__get_show_grant_sql(relation) %}\n show grants on {{ relation }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.932393, "supported_languages": null}, "macro.dbt.get_grant_sql": {"unique_id": "macro.dbt.get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_grant_sql", "macro_sql": "{% macro get_grant_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_grant_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_grant_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.93262, "supported_languages": null}, "macro.dbt.default__get_grant_sql": {"unique_id": "macro.dbt.default__get_grant_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_grant_sql", "macro_sql": "\n\n{%- macro default__get_grant_sql(relation, privilege, grantees) -%}\n grant {{ privilege }} on {{ relation }} to {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.932802, "supported_languages": null}, "macro.dbt.get_revoke_sql": {"unique_id": "macro.dbt.get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_revoke_sql", "macro_sql": "{% macro get_revoke_sql(relation, privilege, grantees) %}\n {{ return(adapter.dispatch('get_revoke_sql', 'dbt')(relation, privilege, grantees)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_revoke_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.933017, "supported_languages": null}, "macro.dbt.default__get_revoke_sql": {"unique_id": "macro.dbt.default__get_revoke_sql", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_revoke_sql", "macro_sql": "\n\n{%- macro default__get_revoke_sql(relation, privilege, grantees) -%}\n revoke {{ privilege }} on {{ relation }} from {{ grantees | join(', ') }}\n{%- endmacro -%}\n\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.933197, "supported_languages": null}, "macro.dbt.get_dcl_statement_list": {"unique_id": "macro.dbt.get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "get_dcl_statement_list", "macro_sql": "{% macro get_dcl_statement_list(relation, grant_config, get_dcl_macro) %}\n {{ return(adapter.dispatch('get_dcl_statement_list', 'dbt')(relation, grant_config, get_dcl_macro)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_dcl_statement_list"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.933415, "supported_languages": null}, "macro.dbt.default__get_dcl_statement_list": {"unique_id": "macro.dbt.default__get_dcl_statement_list", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__get_dcl_statement_list", "macro_sql": "\n\n{%- macro default__get_dcl_statement_list(relation, grant_config, get_dcl_macro) -%}\n {#\n -- Unpack grant_config into specific privileges and the set of users who need them granted/revoked.\n -- Depending on whether this database supports multiple grantees per statement, pass in the list of\n -- all grantees per privilege, or (if not) template one statement per privilege-grantee pair.\n -- `get_dcl_macro` will be either `get_grant_sql` or `get_revoke_sql`\n #}\n {%- set dcl_statements = [] -%}\n {%- for privilege, grantees in grant_config.items() %}\n {%- if support_multiple_grantees_per_dcl_statement() and grantees -%}\n {%- set dcl = get_dcl_macro(relation, privilege, grantees) -%}\n {%- do dcl_statements.append(dcl) -%}\n {%- else -%}\n {%- for grantee in grantees -%}\n {% set dcl = get_dcl_macro(relation, privilege, [grantee]) %}\n {%- do dcl_statements.append(dcl) -%}\n {% endfor -%}\n {%- endif -%}\n {%- endfor -%}\n {{ return(dcl_statements) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.support_multiple_grantees_per_dcl_statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.934058, "supported_languages": null}, "macro.dbt.call_dcl_statements": {"unique_id": "macro.dbt.call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "call_dcl_statements", "macro_sql": "{% macro call_dcl_statements(dcl_statement_list) %}\n {{ return(adapter.dispatch(\"call_dcl_statements\", \"dbt\")(dcl_statement_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9343019, "supported_languages": null}, "macro.dbt.default__call_dcl_statements": {"unique_id": "macro.dbt.default__call_dcl_statements", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__call_dcl_statements", "macro_sql": "{% macro default__call_dcl_statements(dcl_statement_list) %}\n {#\n -- By default, supply all grant + revoke statements in a single semicolon-separated block,\n -- so that they're all processed together.\n\n -- Some databases do not support this. Those adapters will need to override this macro\n -- to run each statement individually.\n #}\n {% call statement('grants') %}\n {% for dcl_statement in dcl_statement_list %}\n {{ dcl_statement }};\n {% endfor %}\n {% endcall %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.934548, "supported_languages": null}, "macro.dbt.apply_grants": {"unique_id": "macro.dbt.apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "apply_grants", "macro_sql": "{% macro apply_grants(relation, grant_config, should_revoke) %}\n {{ return(adapter.dispatch(\"apply_grants\", \"dbt\")(relation, grant_config, should_revoke)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__apply_grants"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.934771, "supported_languages": null}, "macro.dbt.default__apply_grants": {"unique_id": "macro.dbt.default__apply_grants", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/apply_grants.sql", "original_file_path": "macros/adapters/apply_grants.sql", "name": "default__apply_grants", "macro_sql": "{% macro default__apply_grants(relation, grant_config, should_revoke=True) %}\n {#-- If grant_config is {} or None, this is a no-op --#}\n {% if grant_config %}\n {% if should_revoke %}\n {#-- We think previous grants may have carried over --#}\n {#-- Show current grants and calculate diffs --#}\n {% set current_grants_table = run_query(get_show_grant_sql(relation)) %}\n {% set current_grants_dict = adapter.standardize_grants_dict(current_grants_table) %}\n {% set needs_granting = diff_of_two_dicts(grant_config, current_grants_dict) %}\n {% set needs_revoking = diff_of_two_dicts(current_grants_dict, grant_config) %}\n {% if not (needs_granting or needs_revoking) %}\n {{ log('On ' ~ relation ~': All grants are in place, no revocation or granting needed.')}}\n {% endif %}\n {% else %}\n {#-- We don't think there's any chance of previous grants having carried over. --#}\n {#-- Jump straight to granting what the user has configured. --#}\n {% set needs_revoking = {} %}\n {% set needs_granting = grant_config %}\n {% endif %}\n {% if needs_granting or needs_revoking %}\n {% set revoke_statement_list = get_dcl_statement_list(relation, needs_revoking, get_revoke_sql) %}\n {% set grant_statement_list = get_dcl_statement_list(relation, needs_granting, get_grant_sql) %}\n {% set dcl_statement_list = revoke_statement_list + grant_statement_list %}\n {% if dcl_statement_list %}\n {{ call_dcl_statements(dcl_statement_list) }}\n {% endif %}\n {% endif %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.get_show_grant_sql", "macro.dbt.get_dcl_statement_list", "macro.dbt.call_dcl_statements"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.935874, "supported_languages": null}, "macro.dbt.alter_column_comment": {"unique_id": "macro.dbt.alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_column_comment", "macro_sql": "{% macro alter_column_comment(relation, column_dict) -%}\n {{ return(adapter.dispatch('alter_column_comment', 'dbt')(relation, column_dict)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.936585, "supported_languages": null}, "macro.dbt.default__alter_column_comment": {"unique_id": "macro.dbt.default__alter_column_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_column_comment", "macro_sql": "{% macro default__alter_column_comment(relation, column_dict) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_column_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.936752, "supported_languages": null}, "macro.dbt.alter_relation_comment": {"unique_id": "macro.dbt.alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "alter_relation_comment", "macro_sql": "{% macro alter_relation_comment(relation, relation_comment) -%}\n {{ return(adapter.dispatch('alter_relation_comment', 'dbt')(relation, relation_comment)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__alter_relation_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.936949, "supported_languages": null}, "macro.dbt.default__alter_relation_comment": {"unique_id": "macro.dbt.default__alter_relation_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__alter_relation_comment", "macro_sql": "{% macro default__alter_relation_comment(relation, relation_comment) -%}\n {{ exceptions.raise_not_implemented(\n 'alter_relation_comment macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.937121, "supported_languages": null}, "macro.dbt.persist_docs": {"unique_id": "macro.dbt.persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "persist_docs", "macro_sql": "{% macro persist_docs(relation, model, for_relation=true, for_columns=true) -%}\n {{ return(adapter.dispatch('persist_docs', 'dbt')(relation, model, for_relation, for_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__persist_docs"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.937377, "supported_languages": null}, "macro.dbt.default__persist_docs": {"unique_id": "macro.dbt.default__persist_docs", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/persist_docs.sql", "original_file_path": "macros/adapters/persist_docs.sql", "name": "default__persist_docs", "macro_sql": "{% macro default__persist_docs(relation, model, for_relation, for_columns) -%}\n {% if for_relation and config.persist_relation_docs() and model.description %}\n {% do run_query(alter_relation_comment(relation, model.description)) %}\n {% endif %}\n\n {% if for_columns and config.persist_column_docs() and model.columns %}\n {% do run_query(alter_column_comment(relation, model.columns)) %}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query", "macro.dbt.alter_relation_comment", "macro.dbt.alter_column_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.937841, "supported_languages": null}, "macro.dbt.get_catalog": {"unique_id": "macro.dbt.get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "get_catalog", "macro_sql": "{% macro get_catalog(information_schema, schemas) -%}\n {{ return(adapter.dispatch('get_catalog', 'dbt')(information_schema, schemas)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_catalog"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.939329, "supported_languages": null}, "macro.dbt.default__get_catalog": {"unique_id": "macro.dbt.default__get_catalog", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__get_catalog", "macro_sql": "{% macro default__get_catalog(information_schema, schemas) -%}\n\n {% set typename = adapter.type() %}\n {% set msg -%}\n get_catalog not implemented for {{ typename }}\n {%- endset %}\n\n {{ exceptions.raise_compiler_error(msg) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.939606, "supported_languages": null}, "macro.dbt.information_schema_name": {"unique_id": "macro.dbt.information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "information_schema_name", "macro_sql": "{% macro information_schema_name(database) %}\n {{ return(adapter.dispatch('information_schema_name', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__information_schema_name"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.939799, "supported_languages": null}, "macro.dbt.default__information_schema_name": {"unique_id": "macro.dbt.default__information_schema_name", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__information_schema_name", "macro_sql": "{% macro default__information_schema_name(database) -%}\n {%- if database -%}\n {{ database }}.INFORMATION_SCHEMA\n {%- else -%}\n INFORMATION_SCHEMA\n {%- endif -%}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9399529, "supported_languages": null}, "macro.dbt.list_schemas": {"unique_id": "macro.dbt.list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_schemas", "macro_sql": "{% macro list_schemas(database) -%}\n {{ return(adapter.dispatch('list_schemas', 'dbt')(database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_schemas"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.940129, "supported_languages": null}, "macro.dbt.default__list_schemas": {"unique_id": "macro.dbt.default__list_schemas", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_schemas", "macro_sql": "{% macro default__list_schemas(database) -%}\n {% set sql %}\n select distinct schema_name\n from {{ information_schema_name(database) }}.SCHEMATA\n where catalog_name ilike '{{ database }}'\n {% endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.information_schema_name", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.940369, "supported_languages": null}, "macro.dbt.check_schema_exists": {"unique_id": "macro.dbt.check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "check_schema_exists", "macro_sql": "{% macro check_schema_exists(information_schema, schema) -%}\n {{ return(adapter.dispatch('check_schema_exists', 'dbt')(information_schema, schema)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__check_schema_exists"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.940564, "supported_languages": null}, "macro.dbt.default__check_schema_exists": {"unique_id": "macro.dbt.default__check_schema_exists", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__check_schema_exists", "macro_sql": "{% macro default__check_schema_exists(information_schema, schema) -%}\n {% set sql -%}\n select count(*)\n from {{ information_schema.replace(information_schema_view='SCHEMATA') }}\n where catalog_name='{{ information_schema.database }}'\n and schema_name='{{ schema }}'\n {%- endset %}\n {{ return(run_query(sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.940856, "supported_languages": null}, "macro.dbt.list_relations_without_caching": {"unique_id": "macro.dbt.list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "list_relations_without_caching", "macro_sql": "{% macro list_relations_without_caching(schema_relation) %}\n {{ return(adapter.dispatch('list_relations_without_caching', 'dbt')(schema_relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__list_relations_without_caching"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.941035, "supported_languages": null}, "macro.dbt.default__list_relations_without_caching": {"unique_id": "macro.dbt.default__list_relations_without_caching", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/metadata.sql", "original_file_path": "macros/adapters/metadata.sql", "name": "default__list_relations_without_caching", "macro_sql": "{% macro default__list_relations_without_caching(schema_relation) %}\n {{ exceptions.raise_not_implemented(\n 'list_relations_without_caching macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.941191, "supported_languages": null}, "macro.dbt.get_columns_in_relation": {"unique_id": "macro.dbt.get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_relation", "macro_sql": "{% macro get_columns_in_relation(relation) -%}\n {{ return(adapter.dispatch('get_columns_in_relation', 'dbt')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_postgres.postgres__get_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.942834, "supported_languages": null}, "macro.dbt.default__get_columns_in_relation": {"unique_id": "macro.dbt.default__get_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_relation", "macro_sql": "{% macro default__get_columns_in_relation(relation) -%}\n {{ exceptions.raise_not_implemented(\n 'get_columns_in_relation macro not implemented for adapter '+adapter.type()) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.943062, "supported_languages": null}, "macro.dbt.sql_convert_columns_in_relation": {"unique_id": "macro.dbt.sql_convert_columns_in_relation", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "sql_convert_columns_in_relation", "macro_sql": "{% macro sql_convert_columns_in_relation(table) -%}\n {% set columns = [] %}\n {% for row in table %}\n {% do columns.append(api.Column(*row)) %}\n {% endfor %}\n {{ return(columns) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.943373, "supported_languages": null}, "macro.dbt.get_columns_in_query": {"unique_id": "macro.dbt.get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "get_columns_in_query", "macro_sql": "{% macro get_columns_in_query(select_sql) -%}\n {{ return(adapter.dispatch('get_columns_in_query', 'dbt')(select_sql)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__get_columns_in_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.943552, "supported_languages": null}, "macro.dbt.default__get_columns_in_query": {"unique_id": "macro.dbt.default__get_columns_in_query", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__get_columns_in_query", "macro_sql": "{% macro default__get_columns_in_query(select_sql) %}\n {% call statement('get_columns_in_query', fetch_result=True, auto_begin=False) -%}\n select * from (\n {{ select_sql }}\n ) as __dbt_sbq\n where false\n limit 0\n {% endcall %}\n\n {{ return(load_result('get_columns_in_query').table.columns | map(attribute='name') | list) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.943878, "supported_languages": null}, "macro.dbt.alter_column_type": {"unique_id": "macro.dbt.alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_column_type", "macro_sql": "{% macro alter_column_type(relation, column_name, new_column_type) -%}\n {{ return(adapter.dispatch('alter_column_type', 'dbt')(relation, column_name, new_column_type)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_column_type"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.944097, "supported_languages": null}, "macro.dbt.default__alter_column_type": {"unique_id": "macro.dbt.default__alter_column_type", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_column_type", "macro_sql": "{% macro default__alter_column_type(relation, column_name, new_column_type) -%}\n {#\n 1. Create a new column (w/ temp name and correct type)\n 2. Copy data over to it\n 3. Drop the existing column (cascade!)\n 4. Rename the new column to existing column\n #}\n {%- set tmp_column = column_name + \"__dbt_alter\" -%}\n\n {% call statement('alter_column_type') %}\n alter table {{ relation }} add column {{ adapter.quote(tmp_column) }} {{ new_column_type }};\n update {{ relation }} set {{ adapter.quote(tmp_column) }} = {{ adapter.quote(column_name) }};\n alter table {{ relation }} drop column {{ adapter.quote(column_name) }} cascade;\n alter table {{ relation }} rename column {{ adapter.quote(tmp_column) }} to {{ adapter.quote(column_name) }}\n {% endcall %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9446778, "supported_languages": null}, "macro.dbt.alter_relation_add_remove_columns": {"unique_id": "macro.dbt.alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "alter_relation_add_remove_columns", "macro_sql": "{% macro alter_relation_add_remove_columns(relation, add_columns = none, remove_columns = none) -%}\n {{ return(adapter.dispatch('alter_relation_add_remove_columns', 'dbt')(relation, add_columns, remove_columns)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__alter_relation_add_remove_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9449222, "supported_languages": null}, "macro.dbt.default__alter_relation_add_remove_columns": {"unique_id": "macro.dbt.default__alter_relation_add_remove_columns", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/adapters/columns.sql", "original_file_path": "macros/adapters/columns.sql", "name": "default__alter_relation_add_remove_columns", "macro_sql": "{% macro default__alter_relation_add_remove_columns(relation, add_columns, remove_columns) %}\n\n {% if add_columns is none %}\n {% set add_columns = [] %}\n {% endif %}\n {% if remove_columns is none %}\n {% set remove_columns = [] %}\n {% endif %}\n\n {% set sql -%}\n\n alter {{ relation.type }} {{ relation }}\n\n {% for column in add_columns %}\n add column {{ column.name }} {{ column.data_type }}{{ ',' if not loop.last }}\n {% endfor %}{{ ',' if add_columns and remove_columns }}\n\n {% for column in remove_columns %}\n drop column {{ column.name }}{{ ',' if not loop.last }}\n {% endfor %}\n\n {%- endset -%}\n\n {% do run_query(sql) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.945667, "supported_languages": null}, "macro.dbt.build_ref_function": {"unique_id": "macro.dbt.build_ref_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_ref_function", "macro_sql": "{% macro build_ref_function(model) %}\n\n {%- set ref_dict = {} -%}\n {%- for _ref in model.refs -%}\n {%- set resolved = ref(*_ref) -%}\n {%- do ref_dict.update({_ref | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef ref(*args,dbt_load_df_function):\n refs = {{ ref_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(refs[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.947103, "supported_languages": null}, "macro.dbt.build_source_function": {"unique_id": "macro.dbt.build_source_function", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_source_function", "macro_sql": "{% macro build_source_function(model) %}\n\n {%- set source_dict = {} -%}\n {%- for _source in model.sources -%}\n {%- set resolved = source(*_source) -%}\n {%- do source_dict.update({_source | join(\".\"): resolved.quote(database=False, schema=False, identifier=False) | string}) -%}\n {%- endfor -%}\n\ndef source(*args, dbt_load_df_function):\n sources = {{ source_dict | tojson }}\n key = \".\".join(args)\n return dbt_load_df_function(sources[key])\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9475598, "supported_languages": null}, "macro.dbt.build_config_dict": {"unique_id": "macro.dbt.build_config_dict", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "build_config_dict", "macro_sql": "{% macro build_config_dict(model) %}\n {%- set config_dict = {} -%}\n {%- for key in model.config.config_keys_used -%}\n {# weird type testing with enum, would be much easier to write this logic in Python! #}\n {%- if key == 'language' -%}\n {%- set value = 'python' -%}\n {%- endif -%}\n {%- set value = model.config[key] -%}\n {%- do config_dict.update({key: value}) -%}\n {%- endfor -%}\nconfig_dict = {{ config_dict }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.948012, "supported_languages": null}, "macro.dbt.py_script_postfix": {"unique_id": "macro.dbt.py_script_postfix", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_postfix", "macro_sql": "{% macro py_script_postfix(model) %}\n# This part is user provided model code\n# you will need to copy the next section to run the code\n# COMMAND ----------\n# this part is dbt logic for get ref work, do not modify\n\n{{ build_ref_function(model ) }}\n{{ build_source_function(model ) }}\n{{ build_config_dict(model) }}\n\nclass config:\n def __init__(self, *args, **kwargs):\n pass\n\n @staticmethod\n def get(key, default=None):\n return config_dict.get(key, default)\n\nclass this:\n \"\"\"dbt.this() or dbt.this.identifier\"\"\"\n database = '{{ this.database }}'\n schema = '{{ this.schema }}'\n identifier = '{{ this.identifier }}'\n def __repr__(self):\n return '{{ this }}'\n\n\nclass dbtObj:\n def __init__(self, load_df_function) -> None:\n self.source = lambda *args: source(*args, dbt_load_df_function=load_df_function)\n self.ref = lambda *args: ref(*args, dbt_load_df_function=load_df_function)\n self.config = config\n self.this = this()\n self.is_incremental = {{ is_incremental() }}\n\n# COMMAND ----------\n{{py_script_comment()}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.build_ref_function", "macro.dbt.build_source_function", "macro.dbt.build_config_dict", "macro.dbt.is_incremental", "macro.dbt.py_script_comment"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.948416, "supported_languages": null}, "macro.dbt.py_script_comment": {"unique_id": "macro.dbt.py_script_comment", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "macros/python_model/python.sql", "original_file_path": "macros/python_model/python.sql", "name": "py_script_comment", "macro_sql": "{%macro py_script_comment()%}\n{%endmacro%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.94849, "supported_languages": null}, "macro.dbt.test_unique": {"unique_id": "macro.dbt.test_unique", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_unique", "macro_sql": "{% test unique(model, column_name) %}\n {% set macro = adapter.dispatch('test_unique', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_unique"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.949066, "supported_languages": null}, "macro.dbt.test_not_null": {"unique_id": "macro.dbt.test_not_null", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_not_null", "macro_sql": "{% test not_null(model, column_name) %}\n {% set macro = adapter.dispatch('test_not_null', 'dbt') %}\n {{ macro(model, column_name) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_not_null"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.949288, "supported_languages": null}, "macro.dbt.test_accepted_values": {"unique_id": "macro.dbt.test_accepted_values", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_accepted_values", "macro_sql": "{% test accepted_values(model, column_name, values, quote=True) %}\n {% set macro = adapter.dispatch('test_accepted_values', 'dbt') %}\n {{ macro(model, column_name, values, quote) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9495711, "supported_languages": null}, "macro.dbt.test_relationships": {"unique_id": "macro.dbt.test_relationships", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "tests/generic/builtin.sql", "original_file_path": "tests/generic/builtin.sql", "name": "test_relationships", "macro_sql": "{% test relationships(model, column_name, to, field) %}\n {% set macro = adapter.dispatch('test_relationships', 'dbt') %}\n {{ macro(model, column_name, to, field) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.default__test_relationships"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.949839, "supported_languages": null}, "macro.dbt_utils.get_url_host": {"unique_id": "macro.dbt_utils.get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "get_url_host", "macro_sql": "{% macro get_url_host(field) -%}\n {{ return(adapter.dispatch('get_url_host', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_host"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.950258, "supported_languages": null}, "macro.dbt_utils.default__get_url_host": {"unique_id": "macro.dbt_utils.default__get_url_host", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_host.sql", "original_file_path": "macros/web/get_url_host.sql", "name": "default__get_url_host", "macro_sql": "{% macro default__get_url_host(field) -%}\n\n{%- set parsed =\n dbt.split_part(\n dbt.split_part(\n dbt.replace(\n dbt.replace(\n dbt.replace(field, \"'android-app://'\", \"''\"\n ), \"'http://'\", \"''\"\n ), \"'https://'\", \"''\"\n ), \"'/'\", 1\n ), \"'?'\", 1\n )\n\n-%}\n\n\n {{ dbt.safe_cast(\n parsed,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part", "macro.dbt.replace", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9507189, "supported_languages": null}, "macro.dbt_utils.get_url_path": {"unique_id": "macro.dbt_utils.get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "get_url_path", "macro_sql": "{% macro get_url_path(field) -%}\n {{ return(adapter.dispatch('get_url_path', 'dbt_utils')(field)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_path"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.951243, "supported_languages": null}, "macro.dbt_utils.default__get_url_path": {"unique_id": "macro.dbt_utils.default__get_url_path", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_path.sql", "original_file_path": "macros/web/get_url_path.sql", "name": "default__get_url_path", "macro_sql": "{% macro default__get_url_path(field) -%}\n\n {%- set stripped_url =\n dbt.replace(\n dbt.replace(field, \"'http://'\", \"''\"), \"'https://'\", \"''\")\n -%}\n\n {%- set first_slash_pos -%}\n coalesce(\n nullif({{ dbt.position(\"'/'\", stripped_url) }}, 0),\n {{ dbt.position(\"'?'\", stripped_url) }} - 1\n )\n {%- endset -%}\n\n {%- set parsed_path =\n dbt.split_part(\n dbt.right(\n stripped_url,\n dbt.length(stripped_url) ~ \"-\" ~ first_slash_pos\n ),\n \"'?'\", 1\n )\n -%}\n\n {{ dbt.safe_cast(\n parsed_path,\n dbt.type_string()\n )}}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.replace", "macro.dbt.position", "macro.dbt.split_part", "macro.dbt.right", "macro.dbt.length", "macro.dbt.safe_cast", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.952103, "supported_languages": null}, "macro.dbt_utils.get_url_parameter": {"unique_id": "macro.dbt_utils.get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "get_url_parameter", "macro_sql": "{% macro get_url_parameter(field, url_parameter) -%}\n {{ return(adapter.dispatch('get_url_parameter', 'dbt_utils')(field, url_parameter)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_url_parameter"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9524858, "supported_languages": null}, "macro.dbt_utils.default__get_url_parameter": {"unique_id": "macro.dbt_utils.default__get_url_parameter", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/web/get_url_parameter.sql", "original_file_path": "macros/web/get_url_parameter.sql", "name": "default__get_url_parameter", "macro_sql": "{% macro default__get_url_parameter(field, url_parameter) -%}\n\n{%- set formatted_url_parameter = \"'\" + url_parameter + \"='\" -%}\n\n{%- set split = dbt.split_part(dbt.split_part(field, formatted_url_parameter, 2), \"'&'\", 1) -%}\n\nnullif({{ split }},'')\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.split_part"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.952794, "supported_languages": null}, "macro.dbt_utils.test_fewer_rows_than": {"unique_id": "macro.dbt_utils.test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "test_fewer_rows_than", "macro_sql": "{% test fewer_rows_than(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_fewer_rows_than', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_fewer_rows_than"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.953853, "supported_languages": null}, "macro.dbt_utils.default__test_fewer_rows_than": {"unique_id": "macro.dbt_utils.default__test_fewer_rows_than", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/fewer_rows_than.sql", "original_file_path": "macros/generic_tests/fewer_rows_than.sql", "name": "default__test_fewer_rows_than", "macro_sql": "{% macro default__test_fewer_rows_than(model, compare_model, group_by_columns) %}\n\n{{ config(fail_calc = 'sum(coalesce(row_count_delta, 0))') }}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in equal_rowcount. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_fewer_rows_than'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_our_model \n from {{ model }}\n {{ groupby_gb_cols }}\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_fewer_rows_than,\n count(*) as count_comparison_model \n from {{ compare_model }}\n {{ groupby_gb_cols }}\n\n),\ncounts as (\n\n select\n\n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_our_model,\n count_comparison_model\n from a\n full join b on \n a.id_dbtutils_test_fewer_rows_than = b.id_dbtutils_test_fewer_rows_than\n {{ join_gb_cols }}\n\n),\nfinal as (\n\n select *,\n case\n -- fail the test if we have more rows than the reference model and return the row count delta\n when count_our_model > count_comparison_model then (count_our_model - count_comparison_model)\n -- fail the test if they are the same number\n when count_our_model = count_comparison_model then 1\n -- pass the test if the delta is positive (i.e. return the number 0)\n else 0\n end as row_count_delta\n from counts\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9548411, "supported_languages": null}, "macro.dbt_utils.test_equal_rowcount": {"unique_id": "macro.dbt_utils.test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "test_equal_rowcount", "macro_sql": "{% test equal_rowcount(model, compare_model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_equal_rowcount', 'dbt_utils')(model, compare_model, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equal_rowcount"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.955704, "supported_languages": null}, "macro.dbt_utils.default__test_equal_rowcount": {"unique_id": "macro.dbt_utils.default__test_equal_rowcount", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equal_rowcount.sql", "original_file_path": "macros/generic_tests/equal_rowcount.sql", "name": "default__test_equal_rowcount", "macro_sql": "{% macro default__test_equal_rowcount(model, compare_model, group_by_columns) %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = 'sum(coalesce(diff_count, 0))') }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(', ') + ', ' %}\n {% set join_gb_cols %}\n {% for c in group_by_columns %}\n and a.{{c}} = b.{{c}}\n {% endfor %}\n {% endset %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n{#-- We must add a fake join key in case additional grouping variables are not provided --#}\n{#-- Redshift does not allow for dynamically created join conditions (e.g. full join on 1 = 1 --#}\n{#-- The same logic is used in fewer_rows_than. In case of changes, maintain consistent logic --#}\n{% set group_by_columns = ['id_dbtutils_test_equal_rowcount'] + group_by_columns %}\n{% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n\nwith a as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_a \n from {{ model }}\n {{groupby_gb_cols}}\n\n\n),\nb as (\n\n select \n {{select_gb_cols}}\n 1 as id_dbtutils_test_equal_rowcount,\n count(*) as count_b \n from {{ compare_model }}\n {{groupby_gb_cols}}\n\n),\nfinal as (\n\n select\n \n {% for c in group_by_columns -%}\n a.{{c}} as {{c}}_a,\n b.{{c}} as {{c}}_b,\n {% endfor %}\n\n count_a,\n count_b,\n abs(count_a - count_b) as diff_count\n\n from a\n full join b\n on\n a.id_dbtutils_test_equal_rowcount = b.id_dbtutils_test_equal_rowcount\n {{join_gb_cols}}\n\n\n)\n\nselect * from final\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.956733, "supported_languages": null}, "macro.dbt_utils.test_relationships_where": {"unique_id": "macro.dbt_utils.test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "test_relationships_where", "macro_sql": "{% test relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n {{ return(adapter.dispatch('test_relationships_where', 'dbt_utils')(model, column_name, to, field, from_condition, to_condition)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_relationships_where"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.957421, "supported_languages": null}, "macro.dbt_utils.default__test_relationships_where": {"unique_id": "macro.dbt_utils.default__test_relationships_where", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/relationships_where.sql", "original_file_path": "macros/generic_tests/relationships_where.sql", "name": "default__test_relationships_where", "macro_sql": "{% macro default__test_relationships_where(model, column_name, to, field, from_condition=\"1=1\", to_condition=\"1=1\") %}\n\n{# T-SQL has no boolean data type so we use 1=1 which returns TRUE #}\n{# ref https://stackoverflow.com/a/7170753/3842610 #}\n\nwith left_table as (\n\n select\n {{column_name}} as id\n\n from {{model}}\n\n where {{column_name}} is not null\n and {{from_condition}}\n\n),\n\nright_table as (\n\n select\n {{field}} as id\n\n from {{to}}\n\n where {{field}} is not null\n and {{to_condition}}\n\n),\n\nexceptions as (\n\n select\n left_table.id,\n right_table.id as right_id\n\n from left_table\n\n left join right_table\n on left_table.id = right_table.id\n\n where right_table.id is null\n\n)\n\nselect * from exceptions\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.957751, "supported_languages": null}, "macro.dbt_utils.test_recency": {"unique_id": "macro.dbt_utils.test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "test_recency", "macro_sql": "{% test recency(model, field, datepart, interval, ignore_time_component=False, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_recency', 'dbt_utils')(model, field, datepart, interval, ignore_time_component, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_recency"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.958505, "supported_languages": null}, "macro.dbt_utils.default__test_recency": {"unique_id": "macro.dbt_utils.default__test_recency", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/recency.sql", "original_file_path": "macros/generic_tests/recency.sql", "name": "default__test_recency", "macro_sql": "{% macro default__test_recency(model, field, datepart, interval, ignore_time_component, group_by_columns) %}\n\n{% set threshold = 'cast(' ~ dbt.dateadd(datepart, interval * -1, dbt.current_timestamp()) ~ ' as ' ~ ('date' if ignore_time_component else dbt.type_timestamp()) ~ ')' %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nwith recency as (\n\n select \n\n {{ select_gb_cols }}\n {% if ignore_time_component %}\n cast(max({{ field }}) as date) as most_recent\n {%- else %}\n max({{ field }}) as most_recent\n {%- endif %}\n\n from {{ model }}\n\n {{ groupby_gb_cols }}\n\n)\n\nselect\n\n {{ select_gb_cols }}\n most_recent,\n {{ threshold }} as threshold\n\nfrom recency\nwhere most_recent < {{ threshold }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd", "macro.dbt.current_timestamp", "macro.dbt.type_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.959316, "supported_languages": null}, "macro.dbt_utils.test_not_constant": {"unique_id": "macro.dbt_utils.test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "test_not_constant", "macro_sql": "{% test not_constant(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_constant', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_constant"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.959811, "supported_languages": null}, "macro.dbt_utils.default__test_not_constant": {"unique_id": "macro.dbt_utils.default__test_not_constant", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_constant.sql", "original_file_path": "macros/generic_tests/not_constant.sql", "name": "default__test_not_constant", "macro_sql": "{% macro default__test_not_constant(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\n\nselect\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count(distinct {{ column_name }}) as filler_column\n\nfrom {{ model }}\n\n {{groupby_gb_cols}}\n\nhaving count(distinct {{ column_name }}) = 1\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.960253, "supported_languages": null}, "macro.dbt_utils.test_accepted_range": {"unique_id": "macro.dbt_utils.test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "test_accepted_range", "macro_sql": "{% test accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n {{ return(adapter.dispatch('test_accepted_range', 'dbt_utils')(model, column_name, min_value, max_value, inclusive)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_accepted_range"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.960893, "supported_languages": null}, "macro.dbt_utils.default__test_accepted_range": {"unique_id": "macro.dbt_utils.default__test_accepted_range", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/accepted_range.sql", "original_file_path": "macros/generic_tests/accepted_range.sql", "name": "default__test_accepted_range", "macro_sql": "{% macro default__test_accepted_range(model, column_name, min_value=none, max_value=none, inclusive=true) %}\n\nwith meet_condition as(\n select *\n from {{ model }}\n),\n\nvalidation_errors as (\n select *\n from meet_condition\n where\n -- never true, defaults to an empty result set. Exists to ensure any combo of the `or` clauses below succeeds\n 1 = 2\n\n {%- if min_value is not none %}\n -- records with a value >= min_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} > {{- \"=\" if inclusive }} {{ min_value }}\n {%- endif %}\n\n {%- if max_value is not none %}\n -- records with a value <= max_value are permitted. The `not` flips this to find records that don't meet the rule.\n or not {{ column_name }} < {{- \"=\" if inclusive }} {{ max_value }}\n {%- endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9613419, "supported_languages": null}, "macro.dbt_utils.test_not_accepted_values": {"unique_id": "macro.dbt_utils.test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "test_not_accepted_values", "macro_sql": "{% test not_accepted_values(model, column_name, values, quote=True) %}\n {{ return(adapter.dispatch('test_not_accepted_values', 'dbt_utils')(model, column_name, values, quote)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_accepted_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.961922, "supported_languages": null}, "macro.dbt_utils.default__test_not_accepted_values": {"unique_id": "macro.dbt_utils.default__test_not_accepted_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_accepted_values.sql", "original_file_path": "macros/generic_tests/not_accepted_values.sql", "name": "default__test_not_accepted_values", "macro_sql": "{% macro default__test_not_accepted_values(model, column_name, values, quote=True) %}\nwith all_values as (\n\n select distinct\n {{ column_name }} as value_field\n\n from {{ model }}\n\n),\n\nvalidation_errors as (\n\n select\n value_field\n\n from all_values\n where value_field in (\n {% for value in values -%}\n {% if quote -%}\n '{{ value }}'\n {%- else -%}\n {{ value }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {%- endfor %}\n )\n\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.962293, "supported_languages": null}, "macro.dbt_utils.test_at_least_one": {"unique_id": "macro.dbt_utils.test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "test_at_least_one", "macro_sql": "{% test at_least_one(model, column_name, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_at_least_one', 'dbt_utils')(model, column_name, group_by_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_at_least_one"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.962795, "supported_languages": null}, "macro.dbt_utils.default__test_at_least_one": {"unique_id": "macro.dbt_utils.default__test_at_least_one", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/at_least_one.sql", "original_file_path": "macros/generic_tests/at_least_one.sql", "name": "default__test_at_least_one", "macro_sql": "{% macro default__test_at_least_one(model, column_name, group_by_columns) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nselect *\nfrom (\n select\n {# In TSQL, subquery aggregate columns need aliases #}\n {# thus: a filler col name, 'filler_column' #}\n {{select_gb_cols}}\n count({{ column_name }}) as filler_column\n\n from {{ model }}\n\n {{groupby_gb_cols}}\n\n having count({{ column_name }}) = 0\n\n) validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.963315, "supported_languages": null}, "macro.dbt_utils.test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "test_unique_combination_of_columns", "macro_sql": "{% test unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n {{ return(adapter.dispatch('test_unique_combination_of_columns', 'dbt_utils')(model, combination_of_columns, quote_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_unique_combination_of_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.963968, "supported_languages": null}, "macro.dbt_utils.default__test_unique_combination_of_columns": {"unique_id": "macro.dbt_utils.default__test_unique_combination_of_columns", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/unique_combination_of_columns.sql", "original_file_path": "macros/generic_tests/unique_combination_of_columns.sql", "name": "default__test_unique_combination_of_columns", "macro_sql": "{% macro default__test_unique_combination_of_columns(model, combination_of_columns, quote_columns=false) %}\n\n{% if not quote_columns %}\n {%- set column_list=combination_of_columns %}\n{% elif quote_columns %}\n {%- set column_list=[] %}\n {% for column in combination_of_columns -%}\n {% set column_list = column_list.append( adapter.quote(column) ) %}\n {%- endfor %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`quote_columns` argument for unique_combination_of_columns test must be one of [True, False] Got: '\" ~ quote ~\"'.'\"\n ) }}\n{% endif %}\n\n{%- set columns_csv=column_list | join(', ') %}\n\n\nwith validation_errors as (\n\n select\n {{ columns_csv }}\n from {{ model }}\n group by {{ columns_csv }}\n having count(*) > 1\n\n)\n\nselect *\nfrom validation_errors\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.964583, "supported_languages": null}, "macro.dbt_utils.test_cardinality_equality": {"unique_id": "macro.dbt_utils.test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "test_cardinality_equality", "macro_sql": "{% test cardinality_equality(model, column_name, to, field) %}\n {{ return(adapter.dispatch('test_cardinality_equality', 'dbt_utils')(model, column_name, to, field)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_cardinality_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.965173, "supported_languages": null}, "macro.dbt_utils.default__test_cardinality_equality": {"unique_id": "macro.dbt_utils.default__test_cardinality_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/cardinality_equality.sql", "original_file_path": "macros/generic_tests/cardinality_equality.sql", "name": "default__test_cardinality_equality", "macro_sql": "{% macro default__test_cardinality_equality(model, column_name, to, field) %}\n\n{# T-SQL does not let you use numbers as aliases for columns #}\n{# Thus, no \"GROUP BY 1\" #}\n\nwith table_a as (\nselect\n {{ column_name }},\n count(*) as num_rows\nfrom {{ model }}\ngroup by {{ column_name }}\n),\n\ntable_b as (\nselect\n {{ field }},\n count(*) as num_rows\nfrom {{ to }}\ngroup by {{ field }}\n),\n\nexcept_a as (\n select *\n from table_a\n {{ dbt.except() }}\n select *\n from table_b\n),\n\nexcept_b as (\n select *\n from table_b\n {{ dbt.except() }}\n select *\n from table_a\n),\n\nunioned as (\n select *\n from except_a\n union all\n select *\n from except_b\n)\n\nselect *\nfrom unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.965502, "supported_languages": null}, "macro.dbt_utils.test_expression_is_true": {"unique_id": "macro.dbt_utils.test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "test_expression_is_true", "macro_sql": "{% test expression_is_true(model, expression, column_name=None) %}\n {{ return(adapter.dispatch('test_expression_is_true', 'dbt_utils')(model, expression, column_name)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_expression_is_true"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.965983, "supported_languages": null}, "macro.dbt_utils.default__test_expression_is_true": {"unique_id": "macro.dbt_utils.default__test_expression_is_true", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/expression_is_true.sql", "original_file_path": "macros/generic_tests/expression_is_true.sql", "name": "default__test_expression_is_true", "macro_sql": "{% macro default__test_expression_is_true(model, expression, column_name) %}\n\n{% set column_list = '*' if should_store_failures() else \"1\" %}\n\nselect\n {{ column_list }}\nfrom {{ model }}\n{% if column_name is none %}\nwhere not({{ expression }})\n{%- else %}\nwhere not({{ column_name }} {{ expression }})\n{%- endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.should_store_failures"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9663281, "supported_languages": null}, "macro.dbt_utils.test_not_null_proportion": {"unique_id": "macro.dbt_utils.test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "test_not_null_proportion", "macro_sql": "{% macro test_not_null_proportion(model, group_by_columns = []) %}\n {{ return(adapter.dispatch('test_not_null_proportion', 'dbt_utils')(model, group_by_columns, **kwargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_null_proportion"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.967006, "supported_languages": null}, "macro.dbt_utils.default__test_not_null_proportion": {"unique_id": "macro.dbt_utils.default__test_not_null_proportion", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_null_proportion.sql", "original_file_path": "macros/generic_tests/not_null_proportion.sql", "name": "default__test_not_null_proportion", "macro_sql": "{% macro default__test_not_null_proportion(model, group_by_columns) %}\n\n{% set column_name = kwargs.get('column_name', kwargs.get('arg')) %}\n{% set at_least = kwargs.get('at_least', kwargs.get('arg')) %}\n{% set at_most = kwargs.get('at_most', kwargs.get('arg', 1)) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(' ,') + ', ' %}\n {% set groupby_gb_cols = 'group by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith validation as (\n select\n {{select_gb_cols}}\n sum(case when {{ column_name }} is null then 0 else 1 end) / cast(count(*) as numeric) as not_null_proportion\n from {{ model }}\n {{groupby_gb_cols}}\n),\nvalidation_errors as (\n select\n {{select_gb_cols}}\n not_null_proportion\n from validation\n where not_null_proportion < {{ at_least }} or not_null_proportion > {{ at_most }}\n)\nselect\n *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9677901, "supported_languages": null}, "macro.dbt_utils.test_sequential_values": {"unique_id": "macro.dbt_utils.test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "test_sequential_values", "macro_sql": "{% test sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n {{ return(adapter.dispatch('test_sequential_values', 'dbt_utils')(model, column_name, interval, datepart, group_by_columns)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_sequential_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.968683, "supported_languages": null}, "macro.dbt_utils.default__test_sequential_values": {"unique_id": "macro.dbt_utils.default__test_sequential_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/sequential_values.sql", "original_file_path": "macros/generic_tests/sequential_values.sql", "name": "default__test_sequential_values", "macro_sql": "{% macro default__test_sequential_values(model, column_name, interval=1, datepart=None, group_by_columns = []) %}\n\n{% set previous_column_name = \"previous_\" ~ dbt_utils.slugify(column_name) %}\n\n{% if group_by_columns|length() > 0 %}\n {% set select_gb_cols = group_by_columns|join(',') + ', ' %}\n {% set partition_gb_cols = 'partition by ' + group_by_columns|join(',') %}\n{% endif %}\n\nwith windowed as (\n\n select\n {{ select_gb_cols }}\n {{ column_name }},\n lag({{ column_name }}) over (\n {{partition_gb_cols}}\n order by {{ column_name }}\n ) as {{ previous_column_name }}\n from {{ model }}\n),\n\nvalidation_errors as (\n select\n *\n from windowed\n {% if datepart %}\n where not(cast({{ column_name }} as {{ dbt.type_timestamp() }})= cast({{ dbt.dateadd(datepart, interval, previous_column_name) }} as {{ dbt.type_timestamp() }}))\n {% else %}\n where not({{ column_name }} = {{ previous_column_name }} + {{ interval }})\n {% endif %}\n)\n\nselect *\nfrom validation_errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.slugify", "macro.dbt.type_timestamp", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9695659, "supported_languages": null}, "macro.dbt_utils.test_equality": {"unique_id": "macro.dbt_utils.test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "test_equality", "macro_sql": "{% test equality(model, compare_model, compare_columns=None) %}\n {{ return(adapter.dispatch('test_equality', 'dbt_utils')(model, compare_model, compare_columns)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_equality"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9703832, "supported_languages": null}, "macro.dbt_utils.default__test_equality": {"unique_id": "macro.dbt_utils.default__test_equality", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/equality.sql", "original_file_path": "macros/generic_tests/equality.sql", "name": "default__test_equality", "macro_sql": "{% macro default__test_equality(model, compare_model, compare_columns=None) %}\n\n{% set set_diff %}\n count(*) + coalesce(abs(\n sum(case when which_diff = 'a_minus_b' then 1 else 0 end) -\n sum(case when which_diff = 'b_minus_a' then 1 else 0 end)\n ), 0)\n{% endset %}\n\n{#-- Needs to be set at parse time, before we return '' below --#}\n{{ config(fail_calc = set_diff) }}\n\n{#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n{%- if not execute -%}\n {{ return('') }}\n{% endif %}\n\n-- setup\n{%- do dbt_utils._is_relation(model, 'test_equality') -%}\n\n{#-\nIf the compare_cols arg is provided, we can run this test without querying the\ninformation schema\u00a0\u2014 this allows the model to be an ephemeral model\n-#}\n\n{%- if not compare_columns -%}\n {%- do dbt_utils._is_ephemeral(model, 'test_equality') -%}\n {%- set compare_columns = adapter.get_columns_in_relation(model) | map(attribute='quoted') -%}\n{%- endif -%}\n\n{% set compare_cols_csv = compare_columns | join(', ') %}\n\nwith a as (\n\n select * from {{ model }}\n\n),\n\nb as (\n\n select * from {{ compare_model }}\n\n),\n\na_minus_b as (\n\n select {{compare_cols_csv}} from a\n {{ dbt.except() }}\n select {{compare_cols_csv}} from b\n\n),\n\nb_minus_a as (\n\n select {{compare_cols_csv}} from b\n {{ dbt.except() }}\n select {{compare_cols_csv}} from a\n\n),\n\nunioned as (\n\n select 'a_minus_b' as which_diff, a_minus_b.* from a_minus_b\n union all\n select 'b_minus_a' as which_diff, b_minus_a.* from b_minus_a\n\n)\n\nselect * from unioned\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.except"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.97124, "supported_languages": null}, "macro.dbt_utils.test_not_empty_string": {"unique_id": "macro.dbt_utils.test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "test_not_empty_string", "macro_sql": "{% test not_empty_string(model, column_name, trim_whitespace=true) %}\n\n {{ return(adapter.dispatch('test_not_empty_string', 'dbt_utils')(model, column_name, trim_whitespace)) }}\n\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_not_empty_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.971809, "supported_languages": null}, "macro.dbt_utils.default__test_not_empty_string": {"unique_id": "macro.dbt_utils.default__test_not_empty_string", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/not_empty_string.sql", "original_file_path": "macros/generic_tests/not_empty_string.sql", "name": "default__test_not_empty_string", "macro_sql": "{% macro default__test_not_empty_string(model, column_name, trim_whitespace=true) %}\n\n with\n \n all_values as (\n\n select \n\n\n {% if trim_whitespace == true -%}\n\n trim({{ column_name }}) as {{ column_name }}\n\n {%- else -%}\n\n {{ column_name }}\n\n {%- endif %}\n \n from {{ model }}\n\n ),\n\n errors as (\n\n select * from all_values\n where {{ column_name }} = ''\n\n )\n\n select * from errors\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9721, "supported_languages": null}, "macro.dbt_utils.test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "test_mutually_exclusive_ranges", "macro_sql": "{% test mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n {{ return(adapter.dispatch('test_mutually_exclusive_ranges', 'dbt_utils')(model, lower_bound_column, upper_bound_column, partition_by, gaps, zero_length_range_allowed)) }}\n{% endtest %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__test_mutually_exclusive_ranges"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9752588, "supported_languages": null}, "macro.dbt_utils.default__test_mutually_exclusive_ranges": {"unique_id": "macro.dbt_utils.default__test_mutually_exclusive_ranges", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/generic_tests/mutually_exclusive_ranges.sql", "original_file_path": "macros/generic_tests/mutually_exclusive_ranges.sql", "name": "default__test_mutually_exclusive_ranges", "macro_sql": "{% macro default__test_mutually_exclusive_ranges(model, lower_bound_column, upper_bound_column, partition_by=None, gaps='allowed', zero_length_range_allowed=False) %}\n{% if gaps == 'not_allowed' %}\n {% set allow_gaps_operator='=' %}\n {% set allow_gaps_operator_in_words='equal_to' %}\n{% elif gaps == 'allowed' %}\n {% set allow_gaps_operator='<=' %}\n {% set allow_gaps_operator_in_words='less_than_or_equal_to' %}\n{% elif gaps == 'required' %}\n {% set allow_gaps_operator='<' %}\n {% set allow_gaps_operator_in_words='less_than' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`gaps` argument for mutually_exclusive_ranges test must be one of ['not_allowed', 'allowed', 'required'] Got: '\" ~ gaps ~\"'.'\"\n ) }}\n{% endif %}\n{% if not zero_length_range_allowed %}\n {% set allow_zero_length_operator='<' %}\n {% set allow_zero_length_operator_in_words='less_than' %}\n{% elif zero_length_range_allowed %}\n {% set allow_zero_length_operator='<=' %}\n {% set allow_zero_length_operator_in_words='less_than_or_equal_to' %}\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"`zero_length_range_allowed` argument for mutually_exclusive_ranges test must be one of [true, false] Got: '\" ~ zero_length_range_allowed ~\"'.'\"\n ) }}\n{% endif %}\n\n{% set partition_clause=\"partition by \" ~ partition_by if partition_by else '' %}\n\nwith window_functions as (\n\n select\n {% if partition_by %}\n {{ partition_by }} as partition_by_col,\n {% endif %}\n {{ lower_bound_column }} as lower_bound,\n {{ upper_bound_column }} as upper_bound,\n\n lead({{ lower_bound_column }}) over (\n {{ partition_clause }}\n order by {{ lower_bound_column }}, {{ upper_bound_column }}\n ) as next_lower_bound,\n\n row_number() over (\n {{ partition_clause }}\n order by {{ lower_bound_column }} desc, {{ upper_bound_column }} desc\n ) = 1 as is_last_record\n\n from {{ model }}\n\n),\n\ncalc as (\n -- We want to return records where one of our assumptions fails, so we'll use\n -- the `not` function with `and` statements so we can write our assumptions more cleanly\n select\n *,\n\n -- For each record: lower_bound should be < upper_bound.\n -- Coalesce it to return an error on the null case (implicit assumption\n -- these columns are not_null)\n coalesce(\n lower_bound {{ allow_zero_length_operator }} upper_bound,\n false\n ) as lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound,\n\n -- For each record: upper_bound {{ allow_gaps_operator }} the next lower_bound.\n -- Coalesce it to handle null cases for the last record.\n coalesce(\n upper_bound {{ allow_gaps_operator }} next_lower_bound,\n is_last_record,\n false\n ) as upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n\n from window_functions\n\n),\n\nvalidation_errors as (\n\n select\n *\n from calc\n\n where not(\n -- THE FOLLOWING SHOULD BE TRUE --\n lower_bound_{{ allow_zero_length_operator_in_words }}_upper_bound\n and upper_bound_{{ allow_gaps_operator_in_words }}_next_lower_bound\n )\n)\n\nselect * from validation_errors\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.976794, "supported_languages": null}, "macro.dbt_utils.pretty_log_format": {"unique_id": "macro.dbt_utils.pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "pretty_log_format", "macro_sql": "{% macro pretty_log_format(message) %}\n {{ return(adapter.dispatch('pretty_log_format', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9771461, "supported_languages": null}, "macro.dbt_utils.default__pretty_log_format": {"unique_id": "macro.dbt_utils.default__pretty_log_format", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_log_format.sql", "original_file_path": "macros/jinja_helpers/pretty_log_format.sql", "name": "default__pretty_log_format", "macro_sql": "{% macro default__pretty_log_format(message) %}\n {{ return( dbt_utils.pretty_time() ~ ' + ' ~ message) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.97731, "supported_languages": null}, "macro.dbt_utils._is_relation": {"unique_id": "macro.dbt_utils._is_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_relation.sql", "original_file_path": "macros/jinja_helpers/_is_relation.sql", "name": "_is_relation", "macro_sql": "{% macro _is_relation(obj, macro) %}\n {%- if not (obj is mapping and obj.get('metadata', {}).get('type', '').endswith('Relation')) -%}\n {%- do exceptions.raise_compiler_error(\"Macro \" ~ macro ~ \" expected a Relation but received the value: \" ~ obj) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.977809, "supported_languages": null}, "macro.dbt_utils.pretty_time": {"unique_id": "macro.dbt_utils.pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "pretty_time", "macro_sql": "{% macro pretty_time(format='%H:%M:%S') %}\n {{ return(adapter.dispatch('pretty_time', 'dbt_utils')(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pretty_time"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.978147, "supported_languages": null}, "macro.dbt_utils.default__pretty_time": {"unique_id": "macro.dbt_utils.default__pretty_time", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/pretty_time.sql", "original_file_path": "macros/jinja_helpers/pretty_time.sql", "name": "default__pretty_time", "macro_sql": "{% macro default__pretty_time(format='%H:%M:%S') %}\n {{ return(modules.datetime.datetime.now().strftime(format)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.978338, "supported_languages": null}, "macro.dbt_utils.log_info": {"unique_id": "macro.dbt_utils.log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "log_info", "macro_sql": "{% macro log_info(message) %}\n {{ return(adapter.dispatch('log_info', 'dbt_utils')(message)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__log_info"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.978652, "supported_languages": null}, "macro.dbt_utils.default__log_info": {"unique_id": "macro.dbt_utils.default__log_info", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/log_info.sql", "original_file_path": "macros/jinja_helpers/log_info.sql", "name": "default__log_info", "macro_sql": "{% macro default__log_info(message) %}\n {{ log(dbt_utils.pretty_log_format(message), info=True) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.pretty_log_format"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.978824, "supported_languages": null}, "macro.dbt_utils.slugify": {"unique_id": "macro.dbt_utils.slugify", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/slugify.sql", "original_file_path": "macros/jinja_helpers/slugify.sql", "name": "slugify", "macro_sql": "{% macro slugify(string) %}\n\n{#- Lower case the string -#}\n{% set string = string | lower %}\n{#- Replace spaces and dashes with underscores -#}\n{% set string = modules.re.sub('[ -]+', '_', string) %}\n{#- Only take letters, numbers, and underscores -#}\n{% set string = modules.re.sub('[^a-z0-9_]+', '', string) %}\n{#- Prepends \"_\" if string begins with a number -#}\n{% set string = modules.re.sub('^[0-9]', '_' + string[0], string) %}\n\n{{ return(string) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.979485, "supported_languages": null}, "macro.dbt_utils._is_ephemeral": {"unique_id": "macro.dbt_utils._is_ephemeral", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/jinja_helpers/_is_ephemeral.sql", "original_file_path": "macros/jinja_helpers/_is_ephemeral.sql", "name": "_is_ephemeral", "macro_sql": "{% macro _is_ephemeral(obj, macro) %}\n {%- if obj.is_cte -%}\n {% set ephemeral_prefix = api.Relation.add_ephemeral_prefix('') %}\n {% if obj.name.startswith(ephemeral_prefix) %}\n {% set model_name = obj.name[(ephemeral_prefix|length):] %}\n {% else %}\n {% set model_name = obj.name %}\n {%- endif -%}\n {% set error_message %}\nThe `{{ macro }}` macro cannot be used with ephemeral models, as it relies on the information schema.\n\n`{{ model_name }}` is an ephemeral model. Consider making it a view or table instead.\n {% endset %}\n {%- do exceptions.raise_compiler_error(error_message) -%}\n {%- endif -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.980341, "supported_languages": null}, "macro.dbt_utils.get_intervals_between": {"unique_id": "macro.dbt_utils.get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "get_intervals_between", "macro_sql": "{% macro get_intervals_between(start_date, end_date, datepart) -%}\n {{ return(adapter.dispatch('get_intervals_between', 'dbt_utils')(start_date, end_date, datepart)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_intervals_between"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.981057, "supported_languages": null}, "macro.dbt_utils.default__get_intervals_between": {"unique_id": "macro.dbt_utils.default__get_intervals_between", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__get_intervals_between", "macro_sql": "{% macro default__get_intervals_between(start_date, end_date, datepart) -%}\n {%- call statement('get_intervals_between', fetch_result=True) %}\n\n select {{ dbt.datediff(start_date, end_date, datepart) }}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_intervals_between') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values[0]) }}\n {%- else -%}\n {{ return(1) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.981636, "supported_languages": null}, "macro.dbt_utils.date_spine": {"unique_id": "macro.dbt_utils.date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "date_spine", "macro_sql": "{% macro date_spine(datepart, start_date, end_date) %}\n {{ return(adapter.dispatch('date_spine', 'dbt_utils')(datepart, start_date, end_date)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__date_spine"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.981865, "supported_languages": null}, "macro.dbt_utils.default__date_spine": {"unique_id": "macro.dbt_utils.default__date_spine", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/date_spine.sql", "original_file_path": "macros/sql/date_spine.sql", "name": "default__date_spine", "macro_sql": "{% macro default__date_spine(datepart, start_date, end_date) %}\n\n\n{# call as follows:\n\ndate_spine(\n \"day\",\n \"to_date('01/01/2016', 'mm/dd/yyyy')\",\n \"dbt.dateadd(week, 1, current_date)\"\n) #}\n\n\nwith rawdata as (\n\n {{dbt_utils.generate_series(\n dbt_utils.get_intervals_between(start_date, end_date, datepart)\n )}}\n\n),\n\nall_periods as (\n\n select (\n {{\n dbt.dateadd(\n datepart,\n \"row_number() over (order by 1) - 1\",\n start_date\n )\n }}\n ) as date_{{datepart}}\n from rawdata\n\n),\n\nfiltered as (\n\n select *\n from all_periods\n where date_{{datepart}} <= {{ end_date }}\n\n)\n\nselect * from filtered\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.generate_series", "macro.dbt_utils.get_intervals_between", "macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.98222, "supported_languages": null}, "macro.dbt_utils.nullcheck_table": {"unique_id": "macro.dbt_utils.nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "nullcheck_table", "macro_sql": "{% macro nullcheck_table(relation) %}\n {{ return(adapter.dispatch('nullcheck_table', 'dbt_utils')(relation)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck_table"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9825861, "supported_languages": null}, "macro.dbt_utils.default__nullcheck_table": {"unique_id": "macro.dbt_utils.default__nullcheck_table", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck_table.sql", "original_file_path": "macros/sql/nullcheck_table.sql", "name": "default__nullcheck_table", "macro_sql": "{% macro default__nullcheck_table(relation) %}\n\n {%- do dbt_utils._is_relation(relation, 'nullcheck_table') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'nullcheck_table') -%}\n {% set cols = adapter.get_columns_in_relation(relation) %}\n\n select {{ dbt_utils.nullcheck(cols) }}\n from {{relation}}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9829178, "supported_languages": null}, "macro.dbt_utils.get_relations_by_pattern": {"unique_id": "macro.dbt_utils.get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "get_relations_by_pattern", "macro_sql": "{% macro get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_pattern', 'dbt_utils')(schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_pattern"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9836202, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_pattern": {"unique_id": "macro.dbt_utils.default__get_relations_by_pattern", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_pattern.sql", "original_file_path": "macros/sql/get_relations_by_pattern.sql", "name": "default__get_relations_by_pattern", "macro_sql": "{% macro default__get_relations_by_pattern(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9845, "supported_languages": null}, "macro.dbt_utils.get_powers_of_two": {"unique_id": "macro.dbt_utils.get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "get_powers_of_two", "macro_sql": "{% macro get_powers_of_two(upper_bound) %}\n {{ return(adapter.dispatch('get_powers_of_two', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9853451, "supported_languages": null}, "macro.dbt_utils.default__get_powers_of_two": {"unique_id": "macro.dbt_utils.default__get_powers_of_two", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__get_powers_of_two", "macro_sql": "{% macro default__get_powers_of_two(upper_bound) %}\n\n {% if upper_bound <= 0 %}\n {{ exceptions.raise_compiler_error(\"upper bound must be positive\") }}\n {% endif %}\n\n {% for _ in range(1, 100) %}\n {% if upper_bound <= 2 ** loop.index %}{{ return(loop.index) }}{% endif %}\n {% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.985752, "supported_languages": null}, "macro.dbt_utils.generate_series": {"unique_id": "macro.dbt_utils.generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "generate_series", "macro_sql": "{% macro generate_series(upper_bound) %}\n {{ return(adapter.dispatch('generate_series', 'dbt_utils')(upper_bound)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_series"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.985931, "supported_languages": null}, "macro.dbt_utils.default__generate_series": {"unique_id": "macro.dbt_utils.default__generate_series", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_series.sql", "original_file_path": "macros/sql/generate_series.sql", "name": "default__generate_series", "macro_sql": "{% macro default__generate_series(upper_bound) %}\n\n {% set n = dbt_utils.get_powers_of_two(upper_bound) %}\n\n with p as (\n select 0 as generated_number union all select 1\n ), unioned as (\n\n select\n\n {% for i in range(n) %}\n p{{i}}.generated_number * power(2, {{i}})\n {% if not loop.last %} + {% endif %}\n {% endfor %}\n + 1\n as generated_number\n\n from\n\n {% for i in range(n) %}\n p as p{{i}}\n {% if not loop.last %} cross join {% endif %}\n {% endfor %}\n\n )\n\n select *\n from unioned\n where generated_number <= {{upper_bound}}\n order by generated_number\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_powers_of_two"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.986428, "supported_languages": null}, "macro.dbt_utils.get_relations_by_prefix": {"unique_id": "macro.dbt_utils.get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "get_relations_by_prefix", "macro_sql": "{% macro get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_relations_by_prefix', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_relations_by_prefix"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.987124, "supported_languages": null}, "macro.dbt_utils.default__get_relations_by_prefix": {"unique_id": "macro.dbt_utils.default__get_relations_by_prefix", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_relations_by_prefix.sql", "original_file_path": "macros/sql/get_relations_by_prefix.sql", "name": "default__get_relations_by_prefix", "macro_sql": "{% macro default__get_relations_by_prefix(schema, prefix, exclude='', database=target.database) %}\n\n {%- call statement('get_tables', fetch_result=True) %}\n\n {{ dbt_utils.get_tables_by_prefix_sql(schema, prefix, exclude, database) }}\n\n {%- endcall -%}\n\n {%- set table_list = load_result('get_tables') -%}\n\n {%- if table_list and table_list['table'] -%}\n {%- set tbl_relations = [] -%}\n {%- for row in table_list['table'] -%}\n {%- set tbl_relation = api.Relation.create(\n database=database,\n schema=row.table_schema,\n identifier=row.table_name,\n type=row.table_type\n ) -%}\n {%- do tbl_relations.append(tbl_relation) -%}\n {%- endfor -%}\n\n {{ return(tbl_relations) }}\n {%- else -%}\n {{ return([]) }}\n {%- endif -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt_utils.get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.987956, "supported_languages": null}, "macro.dbt_utils.get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "get_tables_by_prefix_sql", "macro_sql": "{% macro get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_prefix_sql', 'dbt_utils')(schema, prefix, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_prefix_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.988416, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_prefix_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_prefix_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_prefix_sql.sql", "original_file_path": "macros/sql/get_tables_by_prefix_sql.sql", "name": "default__get_tables_by_prefix_sql", "macro_sql": "{% macro default__get_tables_by_prefix_sql(schema, prefix, exclude='', database=target.database) %}\n\n {{ dbt_utils.get_tables_by_pattern_sql(\n schema_pattern = schema,\n table_pattern = prefix ~ '%',\n exclude = exclude,\n database = database\n ) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.988694, "supported_languages": null}, "macro.dbt_utils.star": {"unique_id": "macro.dbt_utils.star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "star", "macro_sql": "{% macro star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {{ return(adapter.dispatch('star', 'dbt_utils')(from, relation_alias, except, prefix, suffix, quote_identifiers)) }}\r\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__star"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9899, "supported_languages": null}, "macro.dbt_utils.default__star": {"unique_id": "macro.dbt_utils.default__star", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/star.sql", "original_file_path": "macros/sql/star.sql", "name": "default__star", "macro_sql": "{% macro default__star(from, relation_alias=False, except=[], prefix='', suffix='', quote_identifiers=True) -%}\r\n {%- do dbt_utils._is_relation(from, 'star') -%}\r\n {%- do dbt_utils._is_ephemeral(from, 'star') -%}\r\n\r\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\r\n {%- if not execute -%}\r\n {% do return('*') %}\r\n {%- endif -%}\r\n\r\n {% set cols = dbt_utils.get_filtered_columns_in_relation(from, except) %}\r\n\r\n {%- if cols|length <= 0 -%}\r\n {% if flags.WHICH == 'compile' %}\r\n {% set response %}\r\n*\r\n/* No columns were returned. Maybe the relation doesn't exist yet \r\nor all columns were excluded. This star is only output during \r\ndbt compile, and exists to keep SQLFluff happy. */\r\n {% endset %}\r\n {% do return(response) %}\r\n {% else %}\r\n {% do return(\"/* no columns returned from star() macro */\") %}\r\n {% endif %}\r\n {%- else -%}\r\n {%- for col in cols %}\r\n {%- if relation_alias %}{{ relation_alias }}.{% else %}{%- endif -%}\r\n {%- if quote_identifiers -%}\r\n {{ adapter.quote(col)|trim }} {%- if prefix!='' or suffix!='' %} as {{ adapter.quote(prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {%- else -%}\r\n {{ col|trim }} {%- if prefix!='' or suffix!='' %} as {{ (prefix ~ col ~ suffix)|trim }} {%- endif -%}\r\n {% endif %}\r\n {%- if not loop.last %},{{ '\\n ' }}{%- endif -%}\r\n {%- endfor -%}\r\n {% endif %}\r\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt_utils.get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.9912581, "supported_languages": null}, "macro.dbt_utils.unpivot": {"unique_id": "macro.dbt_utils.unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "unpivot", "macro_sql": "{% macro unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n {{ return(adapter.dispatch('unpivot', 'dbt_utils')(relation, cast_to, exclude, remove, field_name, value_name)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__unpivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.992547, "supported_languages": null}, "macro.dbt_utils.default__unpivot": {"unique_id": "macro.dbt_utils.default__unpivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/unpivot.sql", "original_file_path": "macros/sql/unpivot.sql", "name": "default__unpivot", "macro_sql": "{% macro default__unpivot(relation=none, cast_to='varchar', exclude=none, remove=none, field_name='field_name', value_name='value') -%}\n\n {% if not relation %}\n {{ exceptions.raise_compiler_error(\"Error: argument `relation` is required for `unpivot` macro.\") }}\n {% endif %}\n\n {%- set exclude = exclude if exclude is not none else [] %}\n {%- set remove = remove if remove is not none else [] %}\n\n {%- set include_cols = [] %}\n\n {%- set table_columns = {} %}\n\n {%- do table_columns.update({relation: []}) %}\n\n {%- do dbt_utils._is_relation(relation, 'unpivot') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'unpivot') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) %}\n\n {%- for col in cols -%}\n {%- if col.column.lower() not in remove|map('lower') and col.column.lower() not in exclude|map('lower') -%}\n {% do include_cols.append(col) %}\n {%- endif %}\n {%- endfor %}\n\n\n {%- for col in include_cols -%}\n select\n {%- for exclude_col in exclude %}\n {{ exclude_col }},\n {%- endfor %}\n\n cast('{{ col.column }}' as {{ dbt.type_string() }}) as {{ field_name }},\n cast( {% if col.data_type == 'boolean' %}\n {{ dbt.cast_bool_to_text(col.column) }}\n {% else %}\n {{ col.column }}\n {% endif %}\n as {{ cast_to }}) as {{ value_name }}\n\n from {{ relation }}\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n {%- endfor -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.type_string", "macro.dbt.cast_bool_to_text"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.994138, "supported_languages": null}, "macro.dbt_utils.safe_divide": {"unique_id": "macro.dbt_utils.safe_divide", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "safe_divide", "macro_sql": "{% macro safe_divide(numerator, denominator) -%}\n {{ return(adapter.dispatch('safe_divide', 'dbt_utils')(numerator, denominator)) }}\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_divide"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.994494, "supported_languages": null}, "macro.dbt_utils.default__safe_divide": {"unique_id": "macro.dbt_utils.default__safe_divide", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_divide.sql", "original_file_path": "macros/sql/safe_divide.sql", "name": "default__safe_divide", "macro_sql": "{% macro default__safe_divide(numerator, denominator) %}\n ( {{ numerator }} ) / nullif( ( {{ denominator }} ), 0)\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.994623, "supported_languages": null}, "macro.dbt_utils.union_relations": {"unique_id": "macro.dbt_utils.union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n {{ return(adapter.dispatch('union_relations', 'dbt_utils')(relations, column_override, include, exclude, source_column_name, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466638.997524, "supported_languages": null}, "macro.dbt_utils.default__union_relations": {"unique_id": "macro.dbt_utils.default__union_relations", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/union.sql", "original_file_path": "macros/sql/union.sql", "name": "default__union_relations", "macro_sql": "\n\n{%- macro default__union_relations(relations, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_relation', where=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n {%- set all_excludes = [] -%}\n {%- set all_includes = [] -%}\n\n {%- if exclude -%}\n {%- for exc in exclude -%}\n {%- do all_excludes.append(exc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- if include -%}\n {%- for inc in include -%}\n {%- do all_includes.append(inc | lower) -%}\n {%- endfor -%}\n {%- endif -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- do dbt_utils._is_ephemeral(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column | lower in all_excludes -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column | lower not in all_includes -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n {%- set dbt_command = flags.WHICH -%}\n\n\n {% if dbt_command in ['run', 'build'] %}\n {% if (include | length > 0 or exclude | length > 0) and not column_superset.keys() %}\n {%- set relations_string -%}\n {%- for relation in relations -%}\n {{ relation.name }}\n {%- if not loop.last %}, {% endif -%}\n {%- endfor -%}\n {%- endset -%}\n\n {%- set error_message -%}\n There were no columns found to union for relations {{ relations_string }}\n {%- endset -%}\n\n {{ exceptions.raise_compiler_error(error_message) }}\n {%- endif -%}\n {%- endif -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n {%- if source_column_name is not none %}\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {%- endif %}\n\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ relation }}\n\n {% if where -%}\n where {{ where }}\n {%- endif %}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.000843, "supported_languages": null}, "macro.dbt_utils.group_by": {"unique_id": "macro.dbt_utils.group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "group_by", "macro_sql": "{%- macro group_by(n) -%}\n {{ return(adapter.dispatch('group_by', 'dbt_utils')(n)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__group_by"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.001224, "supported_languages": null}, "macro.dbt_utils.default__group_by": {"unique_id": "macro.dbt_utils.default__group_by", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/groupby.sql", "original_file_path": "macros/sql/groupby.sql", "name": "default__group_by", "macro_sql": "\n\n{%- macro default__group_by(n) -%}\n\n group by {% for i in range(1, n + 1) -%}\n {{ i }}{{ ',' if not loop.last }} \n {%- endfor -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.001471, "supported_languages": null}, "macro.dbt_utils.deduplicate": {"unique_id": "macro.dbt_utils.deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "deduplicate", "macro_sql": "{%- macro deduplicate(relation, partition_by, order_by) -%}\n {{ return(adapter.dispatch('deduplicate', 'dbt_utils')(relation, partition_by, order_by)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.002235, "supported_languages": null}, "macro.dbt_utils.default__deduplicate": {"unique_id": "macro.dbt_utils.default__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "default__deduplicate", "macro_sql": "\n\n{%- macro default__deduplicate(relation, partition_by, order_by) -%}\n\n with row_numbered as (\n select\n _inner.*,\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) as rn\n from {{ relation }} as _inner\n )\n\n select\n distinct data.*\n from {{ relation }} as data\n {#\n -- Not all DBs will support natural joins but the ones that do include:\n -- Oracle, MySQL, SQLite, Redshift, Teradata, Materialize, Databricks\n -- Apache Spark, SingleStore, Vertica\n -- Those that do not appear to support natural joins include:\n -- SQLServer, Trino, Presto, Rockset, Athena\n #}\n natural join row_numbered\n where row_numbered.rn = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.002444, "supported_languages": null}, "macro.dbt_utils.redshift__deduplicate": {"unique_id": "macro.dbt_utils.redshift__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "redshift__deduplicate", "macro_sql": "{% macro redshift__deduplicate(relation, partition_by, order_by) -%}\n\n {{ return(dbt_utils.default__deduplicate(relation, partition_by, order_by=order_by)) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__deduplicate"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.002642, "supported_languages": null}, "macro.dbt_utils.postgres__deduplicate": {"unique_id": "macro.dbt_utils.postgres__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "postgres__deduplicate", "macro_sql": "\n{%- macro postgres__deduplicate(relation, partition_by, order_by) -%}\n\n select\n distinct on ({{ partition_by }}) *\n from {{ relation }}\n order by {{ partition_by }}{{ ',' ~ order_by }}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0028281, "supported_languages": null}, "macro.dbt_utils.snowflake__deduplicate": {"unique_id": "macro.dbt_utils.snowflake__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "snowflake__deduplicate", "macro_sql": "\n{%- macro snowflake__deduplicate(relation, partition_by, order_by) -%}\n\n select *\n from {{ relation }}\n qualify\n row_number() over (\n partition by {{ partition_by }}\n order by {{ order_by }}\n ) = 1\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.002985, "supported_languages": null}, "macro.dbt_utils.bigquery__deduplicate": {"unique_id": "macro.dbt_utils.bigquery__deduplicate", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/deduplicate.sql", "original_file_path": "macros/sql/deduplicate.sql", "name": "bigquery__deduplicate", "macro_sql": "\n{%- macro bigquery__deduplicate(relation, partition_by, order_by) -%}\n\n select unique.*\n from (\n select\n array_agg (\n original\n order by {{ order_by }}\n limit 1\n )[offset(0)] unique\n from {{ relation }} original\n group by {{ partition_by }}\n )\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.003146, "supported_languages": null}, "macro.dbt_utils.surrogate_key": {"unique_id": "macro.dbt_utils.surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "surrogate_key", "macro_sql": "{%- macro surrogate_key(field_list) -%}\n {% set frustrating_jinja_feature = varargs %}\n {{ return(adapter.dispatch('surrogate_key', 'dbt_utils')(field_list, *varargs)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.003587, "supported_languages": null}, "macro.dbt_utils.default__surrogate_key": {"unique_id": "macro.dbt_utils.default__surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/surrogate_key.sql", "original_file_path": "macros/sql/surrogate_key.sql", "name": "default__surrogate_key", "macro_sql": "\n\n{%- macro default__surrogate_key(field_list) -%}\n\n{%- set error_message = '\nWarning: `dbt_utils.surrogate_key` has been replaced by \\\n`dbt_utils.generate_surrogate_key`. The new macro treats null values \\\ndifferently to empty strings. To restore the behaviour of the original \\\nmacro, add a global variable in dbt_project.yml called \\\n`surrogate_key_treat_nulls_as_empty_strings` to your \\\ndbt_project.yml file with a value of True. \\\nThe {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.raise_compiler_error(error_message) -%}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0038168, "supported_languages": null}, "macro.dbt_utils.safe_add": {"unique_id": "macro.dbt_utils.safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "safe_add", "macro_sql": "{%- macro safe_add(field_list) -%}\n {{ return(adapter.dispatch('safe_add', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__safe_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.004243, "supported_languages": null}, "macro.dbt_utils.default__safe_add": {"unique_id": "macro.dbt_utils.default__safe_add", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/safe_add.sql", "original_file_path": "macros/sql/safe_add.sql", "name": "default__safe_add", "macro_sql": "\n\n{%- macro default__safe_add(field_list) -%}\n\n{%- if field_list is not iterable or field_list is string or field_list is mapping -%}\n\n{%- set error_message = '\nWarning: the `safe_add` macro now takes a single list argument instead of \\\nstring arguments. The {}.{} model triggered this warning. \\\n'.format(model.package_name, model.name) -%}\n\n{%- do exceptions.warn(error_message) -%}\n\n{%- endif -%}\n\n{% set fields = [] %}\n\n{%- for field in field_list -%}\n\n {% do fields.append(\"coalesce(\" ~ field ~ \", 0)\") %}\n\n{%- endfor -%}\n\n{{ fields|join(' +\\n ') }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.004769, "supported_languages": null}, "macro.dbt_utils.nullcheck": {"unique_id": "macro.dbt_utils.nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "nullcheck", "macro_sql": "{% macro nullcheck(cols) %}\n {{ return(adapter.dispatch('nullcheck', 'dbt_utils')(cols)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__nullcheck"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.005159, "supported_languages": null}, "macro.dbt_utils.default__nullcheck": {"unique_id": "macro.dbt_utils.default__nullcheck", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/nullcheck.sql", "original_file_path": "macros/sql/nullcheck.sql", "name": "default__nullcheck", "macro_sql": "{% macro default__nullcheck(cols) %}\n{%- for col in cols %}\n\n {% if col.is_string() -%}\n\n nullif({{col.name}},'') as {{col.name}}\n\n {%- else -%}\n\n {{col.name}}\n\n {%- endif -%}\n\n{%- if not loop.last -%} , {%- endif -%}\n\n{%- endfor -%}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0054789, "supported_languages": null}, "macro.dbt_utils.get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "get_tables_by_pattern_sql", "macro_sql": "{% macro get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n {{ return(adapter.dispatch('get_tables_by_pattern_sql', 'dbt_utils')\n (schema_pattern, table_pattern, exclude, database)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_tables_by_pattern_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.007087, "supported_languages": null}, "macro.dbt_utils.default__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.default__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "default__get_tables_by_pattern_sql", "macro_sql": "{% macro default__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n select distinct\n table_schema as {{ adapter.quote('table_schema') }},\n table_name as {{ adapter.quote('table_name') }},\n {{ dbt_utils.get_table_types_sql() }}\n from {{ database }}.information_schema.tables\n where table_schema ilike '{{ schema_pattern }}'\n and table_name ilike '{{ table_pattern }}'\n and table_name not ilike '{{ exclude }}'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0074391, "supported_languages": null}, "macro.dbt_utils.bigquery__get_tables_by_pattern_sql": {"unique_id": "macro.dbt_utils.bigquery__get_tables_by_pattern_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "bigquery__get_tables_by_pattern_sql", "macro_sql": "{% macro bigquery__get_tables_by_pattern_sql(schema_pattern, table_pattern, exclude='', database=target.database) %}\n\n {% if '%' in schema_pattern %}\n {% set schemata=dbt_utils._bigquery__get_matching_schemata(schema_pattern, database) %}\n {% else %}\n {% set schemata=[schema_pattern] %}\n {% endif %}\n\n {% set sql %}\n {% for schema in schemata %}\n select distinct\n table_schema,\n table_name,\n {{ dbt_utils.get_table_types_sql() }}\n\n from {{ adapter.quote(database) }}.{{ schema }}.INFORMATION_SCHEMA.TABLES\n where lower(table_name) like lower ('{{ table_pattern }}')\n and lower(table_name) not like lower ('{{ exclude }}')\n\n {% if not loop.last %} union all {% endif %}\n\n {% endfor %}\n {% endset %}\n\n {{ return(sql) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._bigquery__get_matching_schemata", "macro.dbt_utils.get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.008197, "supported_languages": null}, "macro.dbt_utils._bigquery__get_matching_schemata": {"unique_id": "macro.dbt_utils._bigquery__get_matching_schemata", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_tables_by_pattern_sql.sql", "original_file_path": "macros/sql/get_tables_by_pattern_sql.sql", "name": "_bigquery__get_matching_schemata", "macro_sql": "{% macro _bigquery__get_matching_schemata(schema_pattern, database) %}\n {% if execute %}\n\n {% set sql %}\n select schema_name from {{ adapter.quote(database) }}.INFORMATION_SCHEMA.SCHEMATA\n where lower(schema_name) like lower('{{ schema_pattern }}')\n {% endset %}\n\n {% set results=run_query(sql) %}\n\n {% set schemata=results.columns['schema_name'].values() %}\n\n {{ return(schemata) }}\n\n {% else %}\n\n {{ return([]) }}\n\n {% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.run_query"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.008681, "supported_languages": null}, "macro.dbt_utils.get_column_values": {"unique_id": "macro.dbt_utils.get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "get_column_values", "macro_sql": "{% macro get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {{ return(adapter.dispatch('get_column_values', 'dbt_utils')(table, column, order_by, max_records, default, where)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_column_values"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0097952, "supported_languages": null}, "macro.dbt_utils.default__get_column_values": {"unique_id": "macro.dbt_utils.default__get_column_values", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_column_values.sql", "original_file_path": "macros/sql/get_column_values.sql", "name": "default__get_column_values", "macro_sql": "{% macro default__get_column_values(table, column, order_by='count(*) desc', max_records=none, default=none, where=none) -%}\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {% set default = [] if not default %}\n {{ return(default) }}\n {% endif %}\n\n {%- do dbt_utils._is_ephemeral(table, 'get_column_values') -%}\n\n {# Not all relations are tables. Renaming for internal clarity without breaking functionality for anyone using named arguments #}\n {# TODO: Change the method signature in a future 0.x.0 release #}\n {%- set target_relation = table -%}\n\n {# adapter.load_relation is a convenience wrapper to avoid building a Relation when we already have one #}\n {% set relation_exists = (load_relation(target_relation)) is not none %}\n\n {%- call statement('get_column_values', fetch_result=true) %}\n\n {%- if not relation_exists and default is none -%}\n\n {{ exceptions.raise_compiler_error(\"In get_column_values(): relation \" ~ target_relation ~ \" does not exist and no default value was provided.\") }}\n\n {%- elif not relation_exists and default is not none -%}\n\n {{ log(\"Relation \" ~ target_relation ~ \" does not exist. Returning the default value: \" ~ default) }}\n\n {{ return(default) }}\n\n {%- else -%}\n\n\n select\n {{ column }} as value\n\n from {{ target_relation }}\n\n {% if where is not none %}\n where {{ where }}\n {% endif %}\n\n group by {{ column }}\n order by {{ order_by }}\n\n {% if max_records is not none %}\n limit {{ max_records }}\n {% endif %}\n\n {% endif %}\n\n {%- endcall -%}\n\n {%- set value_list = load_result('get_column_values') -%}\n\n {%- if value_list and value_list['data'] -%}\n {%- set values = value_list['data'] | map(attribute=0) | list %}\n {{ return(values) }}\n {%- else -%}\n {{ return(default) }}\n {%- endif -%}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_ephemeral", "macro.dbt.load_relation", "macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0112371, "supported_languages": null}, "macro.dbt_utils.pivot": {"unique_id": "macro.dbt_utils.pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "pivot", "macro_sql": "{% macro pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {{ return(adapter.dispatch('pivot', 'dbt_utils')(column, values, alias, agg, cmp, prefix, suffix, then_value, else_value, quote_identifiers, distinct)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__pivot"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0122938, "supported_languages": null}, "macro.dbt_utils.default__pivot": {"unique_id": "macro.dbt_utils.default__pivot", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/pivot.sql", "original_file_path": "macros/sql/pivot.sql", "name": "default__pivot", "macro_sql": "{% macro default__pivot(column,\n values,\n alias=True,\n agg='sum',\n cmp='=',\n prefix='',\n suffix='',\n then_value=1,\n else_value=0,\n quote_identifiers=True,\n distinct=False) %}\n {% for value in values %}\n {{ agg }}(\n {% if distinct %} distinct {% endif %}\n case\n when {{ column }} {{ cmp }} '{{ dbt.escape_single_quotes(value) }}'\n then {{ then_value }}\n else {{ else_value }}\n end\n )\n {% if alias %}\n {% if quote_identifiers %}\n as {{ adapter.quote(prefix ~ value ~ suffix) }}\n {% else %}\n as {{ dbt_utils.slugify(prefix ~ value ~ suffix) }}\n {% endif %}\n {% endif %}\n {% if not loop.last %},{% endif %}\n {% endfor %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.escape_single_quotes", "macro.dbt_utils.slugify"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.013097, "supported_languages": null}, "macro.dbt_utils.get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "get_filtered_columns_in_relation", "macro_sql": "{% macro get_filtered_columns_in_relation(from, except=[]) -%}\n {{ return(adapter.dispatch('get_filtered_columns_in_relation', 'dbt_utils')(from, except)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_filtered_columns_in_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.013619, "supported_languages": null}, "macro.dbt_utils.default__get_filtered_columns_in_relation": {"unique_id": "macro.dbt_utils.default__get_filtered_columns_in_relation", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_filtered_columns_in_relation.sql", "original_file_path": "macros/sql/get_filtered_columns_in_relation.sql", "name": "default__get_filtered_columns_in_relation", "macro_sql": "{% macro default__get_filtered_columns_in_relation(from, except=[]) -%}\n {%- do dbt_utils._is_relation(from, 'get_filtered_columns_in_relation') -%}\n {%- do dbt_utils._is_ephemeral(from, 'get_filtered_columns_in_relation') -%}\n\n {# -- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. #}\n {%- if not execute -%}\n {{ return('') }}\n {% endif %}\n\n {%- set include_cols = [] %}\n {%- set cols = adapter.get_columns_in_relation(from) -%}\n {%- set except = except | map(\"lower\") | list %}\n {%- for col in cols -%}\n {%- if col.column|lower not in except -%}\n {% do include_cols.append(col.column) %}\n {%- endif %}\n {%- endfor %}\n\n {{ return(include_cols) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt_utils._is_ephemeral"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0143209, "supported_languages": null}, "macro.dbt_utils.width_bucket": {"unique_id": "macro.dbt_utils.width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "width_bucket", "macro_sql": "{% macro width_bucket(expr, min_value, max_value, num_buckets) %}\n {{ return(adapter.dispatch('width_bucket', 'dbt_utils') (expr, min_value, max_value, num_buckets)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__width_bucket"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.01572, "supported_languages": null}, "macro.dbt_utils.default__width_bucket": {"unique_id": "macro.dbt_utils.default__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "default__width_bucket", "macro_sql": "{% macro default__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is eaxtly at the bucket egde\n case\n when\n mod(\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }},\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n ) = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.016171, "supported_languages": null}, "macro.dbt_utils.redshift__width_bucket": {"unique_id": "macro.dbt_utils.redshift__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "redshift__width_bucket", "macro_sql": "{% macro redshift__width_bucket(expr, min_value, max_value, num_buckets) -%}\n\n {% set bin_size -%}\n (( {{ max_value }} - {{ min_value }} ) / {{ num_buckets }} )\n {%- endset %}\n (\n -- to break ties when the amount is exactly at the bucket edge\n case\n when\n {{ dbt.safe_cast(expr, dbt.type_numeric() ) }} %\n {{ dbt.safe_cast(bin_size, dbt.type_numeric() ) }}\n = 0\n then 1\n else 0\n end\n ) +\n -- Anything over max_value goes the N+1 bucket\n least(\n ceil(\n ({{ expr }} - {{ min_value }})/{{ bin_size }}\n ),\n {{ num_buckets }} + 1\n )\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.safe_cast", "macro.dbt.type_numeric"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.016618, "supported_languages": null}, "macro.dbt_utils.snowflake__width_bucket": {"unique_id": "macro.dbt_utils.snowflake__width_bucket", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/width_bucket.sql", "original_file_path": "macros/sql/width_bucket.sql", "name": "snowflake__width_bucket", "macro_sql": "{% macro snowflake__width_bucket(expr, min_value, max_value, num_buckets) %}\n width_bucket({{ expr }}, {{ min_value }}, {{ max_value }}, {{ num_buckets }} )\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.016803, "supported_languages": null}, "macro.dbt_utils.get_query_results_as_dict": {"unique_id": "macro.dbt_utils.get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "get_query_results_as_dict", "macro_sql": "{% macro get_query_results_as_dict(query) %}\n {{ return(adapter.dispatch('get_query_results_as_dict', 'dbt_utils')(query)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_query_results_as_dict"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.017256, "supported_languages": null}, "macro.dbt_utils.default__get_query_results_as_dict": {"unique_id": "macro.dbt_utils.default__get_query_results_as_dict", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_query_results_as_dict.sql", "original_file_path": "macros/sql/get_query_results_as_dict.sql", "name": "default__get_query_results_as_dict", "macro_sql": "{% macro default__get_query_results_as_dict(query) %}\n\n{# This macro returns a dictionary of the form {column_name: (tuple_of_results)} #}\n\n {%- call statement('get_query_results', fetch_result=True,auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {% set sql_results={} %}\n\n {%- if execute -%}\n {% set sql_results_table = load_result('get_query_results').table.columns %}\n {% for column_name, column in sql_results_table.items() %}\n {% do sql_results.update({column_name: column.values()}) %}\n {% endfor %}\n {%- endif -%}\n\n {{ return(sql_results) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.017826, "supported_languages": null}, "macro.dbt_utils.generate_surrogate_key": {"unique_id": "macro.dbt_utils.generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "generate_surrogate_key", "macro_sql": "{%- macro generate_surrogate_key(field_list) -%}\n {{ return(adapter.dispatch('generate_surrogate_key', 'dbt_utils')(field_list)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__generate_surrogate_key"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0183308, "supported_languages": null}, "macro.dbt_utils.default__generate_surrogate_key": {"unique_id": "macro.dbt_utils.default__generate_surrogate_key", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/generate_surrogate_key.sql", "original_file_path": "macros/sql/generate_surrogate_key.sql", "name": "default__generate_surrogate_key", "macro_sql": "\n\n{%- macro default__generate_surrogate_key(field_list) -%}\n\n{% if var('surrogate_key_treat_nulls_as_empty_strings', False) %}\n {% set default_null_value = \"\" %}\n{% else %}\n {% set default_null_value = '_dbt_utils_surrogate_key_null_'%}\n{% endif %}\n\n{%- set fields = [] -%}\n\n{%- for field in field_list -%}\n\n {%- do fields.append(\n \"coalesce(cast(\" ~ field ~ \" as \" ~ dbt.type_string() ~ \"), '\" ~ default_null_value ~\"')\"\n ) -%}\n\n {%- if not loop.last %}\n {%- do fields.append(\"'-'\") -%}\n {%- endif -%}\n\n{%- endfor -%}\n\n{{ dbt.hash(dbt.concat(fields)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.hash", "macro.dbt.concat"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.018965, "supported_languages": null}, "macro.dbt_utils.get_table_types_sql": {"unique_id": "macro.dbt_utils.get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "get_table_types_sql", "macro_sql": "{%- macro get_table_types_sql() -%}\n {{ return(adapter.dispatch('get_table_types_sql', 'dbt_utils')()) }}\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.postgres__get_table_types_sql"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0194051, "supported_languages": null}, "macro.dbt_utils.default__get_table_types_sql": {"unique_id": "macro.dbt_utils.default__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "default__get_table_types_sql", "macro_sql": "{% macro default__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'EXTERNAL TABLE' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.019538, "supported_languages": null}, "macro.dbt_utils.postgres__get_table_types_sql": {"unique_id": "macro.dbt_utils.postgres__get_table_types_sql", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_table_types_sql.sql", "original_file_path": "macros/sql/get_table_types_sql.sql", "name": "postgres__get_table_types_sql", "macro_sql": "{% macro postgres__get_table_types_sql() %}\n case table_type\n when 'BASE TABLE' then 'table'\n when 'FOREIGN' then 'external'\n when 'MATERIALIZED VIEW' then 'materializedview'\n else lower(table_type)\n end as {{ adapter.quote('table_type') }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.019666, "supported_languages": null}, "macro.dbt_utils.get_single_value": {"unique_id": "macro.dbt_utils.get_single_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "get_single_value", "macro_sql": "{% macro get_single_value(query, default=none) %}\n {{ return(adapter.dispatch('get_single_value', 'dbt_utils')(query, default)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__get_single_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0202181, "supported_languages": null}, "macro.dbt_utils.default__get_single_value": {"unique_id": "macro.dbt_utils.default__get_single_value", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/get_single_value.sql", "original_file_path": "macros/sql/get_single_value.sql", "name": "default__get_single_value", "macro_sql": "{% macro default__get_single_value(query, default) %}\n\n{# This macro returns the (0, 0) record in a query, i.e. the first row of the first column #}\n\n {%- call statement('get_query_result', fetch_result=True, auto_begin=false) -%}\n\n {{ query }}\n\n {%- endcall -%}\n\n {%- if execute -%}\n\n {% set r = load_result('get_query_result').table.columns[0].values() %}\n {% if r | length == 0 %}\n {% do print('Query `' ~ query ~ '` returned no rows. Using the default value: ' ~ default) %}\n {% set sql_result = default %}\n {% else %}\n {% set sql_result = r[0] %}\n {% endif %}\n \n {%- else -%}\n \n {% set sql_result = default %}\n \n {%- endif -%}\n\n {% do return(sql_result) %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0209951, "supported_languages": null}, "macro.dbt_utils.degrees_to_radians": {"unique_id": "macro.dbt_utils.degrees_to_radians", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "degrees_to_radians", "macro_sql": "{% macro degrees_to_radians(degrees) -%}\n acos(-1) * {{degrees}} / 180\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.022054, "supported_languages": null}, "macro.dbt_utils.haversine_distance": {"unique_id": "macro.dbt_utils.haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "haversine_distance", "macro_sql": "{% macro haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n {{ return(adapter.dispatch('haversine_distance', 'dbt_utils')(lat1,lon1,lat2,lon2,unit)) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.default__haversine_distance"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.022322, "supported_languages": null}, "macro.dbt_utils.default__haversine_distance": {"unique_id": "macro.dbt_utils.default__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "default__haversine_distance", "macro_sql": "{% macro default__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n\n 2 * 3961 * asin(sqrt(power((sin(radians(({{ lat2 }} - {{ lat1 }}) / 2))), 2) +\n cos(radians({{lat1}})) * cos(radians({{lat2}})) *\n power((sin(radians(({{ lon2 }} - {{ lon1 }}) / 2))), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.022872, "supported_languages": null}, "macro.dbt_utils.bigquery__haversine_distance": {"unique_id": "macro.dbt_utils.bigquery__haversine_distance", "package_name": "dbt_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/dbt_utils", "path": "macros/sql/haversine_distance.sql", "original_file_path": "macros/sql/haversine_distance.sql", "name": "bigquery__haversine_distance", "macro_sql": "{% macro bigquery__haversine_distance(lat1, lon1, lat2, lon2, unit='mi') -%}\n{% set radians_lat1 = dbt_utils.degrees_to_radians(lat1) %}\n{% set radians_lat2 = dbt_utils.degrees_to_radians(lat2) %}\n{% set radians_lon1 = dbt_utils.degrees_to_radians(lon1) %}\n{% set radians_lon2 = dbt_utils.degrees_to_radians(lon2) %}\n{%- if unit == 'mi' %}\n {% set conversion_rate = 1 %}\n{% elif unit == 'km' %}\n {% set conversion_rate = 1.60934 %}\n{% else %}\n {{ exceptions.raise_compiler_error(\"unit input must be one of 'mi' or 'km'. Got \" ~ unit) }}\n{% endif %}\n 2 * 3961 * asin(sqrt(power(sin(({{ radians_lat2 }} - {{ radians_lat1 }}) / 2), 2) +\n cos({{ radians_lat1 }}) * cos({{ radians_lat2 }}) *\n power(sin(({{ radians_lon2 }} - {{ radians_lon1 }}) / 2), 2))) * {{ conversion_rate }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.degrees_to_radians"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.023662, "supported_languages": null}, "macro.netsuite_source.get_expense_accounts_columns": {"unique_id": "macro.netsuite_source.get_expense_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_expense_accounts_columns.sql", "original_file_path": "macros/get_expense_accounts_columns.sql", "name": "get_expense_accounts_columns", "macro_sql": "{% macro get_expense_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"current_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"desription\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_including_child_subs\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0255308, "supported_languages": null}, "macro.netsuite_source.get_locationmainaddress_columns": {"unique_id": "macro.netsuite_source.get_locationmainaddress_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locationmainaddress_columns.sql", "original_file_path": "macros/get_locationmainaddress_columns.sql", "name": "get_locationmainaddress_columns", "macro_sql": "{% macro get_locationmainaddress_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"addr1\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr2\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr3\", \"datatype\": dbt.type_string()},\n {\"name\": \"addressee\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrtext\", \"datatype\": dbt.type_string()},\n {\"name\": \"attention\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dropdownstate\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"nkey\", \"datatype\": dbt.type_int()},\n {\"name\": \"override\", \"datatype\": dbt.type_string()},\n {\"name\": \"recordowner\", \"datatype\": dbt.type_int()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0275772, "supported_languages": null}, "macro.netsuite_source.get_accounts_columns": {"unique_id": "macro.netsuite_source.get_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "name": "get_accounts_columns", "macro_sql": "{% macro get_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"general_rate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_balancesheet\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_leftside\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"type_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.029186, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounts_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounts_columns.sql", "original_file_path": "macros/get_accounts_columns.sql", "name": "get_netsuite2_accounts_columns", "macro_sql": "{% macro get_netsuite2_accounts_columns() %}\n\n{% set columns = [\n\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"acctnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"accttype\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"deferralacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"cashflowrate\", \"datatype\": dbt.type_string()},\n {\"name\": \"generalrate\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"includechildren\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"issummary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('accounts_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.030966, "supported_languages": null}, "macro.netsuite_source.get_classes_columns": {"unique_id": "macro.netsuite_source.get_classes_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "name": "get_classes_columns", "macro_sql": "{% macro get_classes_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0317628, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_classes_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_classes_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_classes_columns.sql", "original_file_path": "macros/get_classes_columns.sql", "name": "get_netsuite2_classes_columns", "macro_sql": "{% macro get_netsuite2_classes_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('classes_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0325398, "supported_languages": null}, "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns": {"unique_id": "macro.netsuite_source.get_accountingperiodfiscalcalendars_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "original_file_path": "macros/get_accountingperiodfiscalcalendars_columns.sql", "name": "get_accountingperiodfiscalcalendars_columns", "macro_sql": "{% macro get_accountingperiodfiscalcalendars_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fiscalcalendar\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0334458, "supported_languages": null}, "macro.netsuite_source.get_accountingbooksubsidiaries_columns": {"unique_id": "macro.netsuite_source.get_accountingbooksubsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accountingbooksubsidiaries_columns.sql", "original_file_path": "macros/get_accountingbooksubsidiaries_columns.sql", "name": "get_accountingbooksubsidiaries_columns", "macro_sql": "{% macro get_accountingbooksubsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.034357, "supported_languages": null}, "macro.netsuite_source.get_items_columns": {"unique_id": "macro.netsuite_source.get_items_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "name": "get_items_columns", "macro_sql": "{% macro get_items_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"allow_drop_ship\", \"datatype\": dbt.type_string()},\n {\"name\": \"alt_demand_source_item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"asset_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"atp_lead_time\", \"datatype\": dbt.type_float()},\n {\"name\": \"atp_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"available_to_partners\", \"datatype\": dbt.type_string()},\n {\"name\": \"avatax_taxcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"averagecost\", \"datatype\": dbt.type_float()},\n {\"name\": \"backward_consumption_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"build_sub_assemblies\", \"datatype\": dbt.type_string()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"code_of_supply_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"commodity_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"consumption_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_0\", \"datatype\": dbt.type_float()},\n {\"name\": \"cost_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost_estimate_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"costing_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"country_of_manufacture\", \"datatype\": dbt.type_string()},\n {\"name\": \"create_plan_on_event_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"created\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"current_on_order_count\", \"datatype\": dbt.type_float()},\n {\"name\": \"custreturn_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_of_last_transaction\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"default_return_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"deferred_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"deferred_revenue_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"demand_source\", \"datatype\": dbt.type_string()},\n {\"name\": \"demand_time_fence\", \"datatype\": dbt.type_float()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"deposit\", \"datatype\": dbt.type_string()},\n {\"name\": \"displayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"distribution_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"distribution_network\", \"datatype\": dbt.type_string()},\n {\"name\": \"dropship_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"effective_bom_control_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"featureddescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"featureditem\", \"datatype\": dbt.type_string()},\n {\"name\": \"fixed_lot_size\", \"datatype\": dbt.type_float()},\n {\"name\": \"forward_consumption_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"fraud_risk\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fx_adjustment_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"gain_loss_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"handling_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"hazmat\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_hazard_class\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_item_units\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_item_units_qty\", \"datatype\": dbt.type_float()},\n {\"name\": \"hazmat_packing_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"hazmat_shipping_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"include_child_subsidiaries\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"interco_expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"interco_income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"invt_count_classification\", \"datatype\": dbt.type_float()},\n {\"name\": \"invt_count_interval\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_cont_rev_handling\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_enforce_min_qty_internally\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_hold_rev_rec\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_moss\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_phantom\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_special_order_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isonline\", \"datatype\": dbt.type_string()},\n {\"name\": \"istaxable\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_defined_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_image\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_revenue_category\", \"datatype\": dbt.type_string()},\n {\"name\": \"item_term_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"last_cogs_correction\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_invt_count_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_purchase_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"lot_numbered_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"lot_sizing_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturer\", \"datatype\": dbt.type_string()},\n {\"name\": \"manufacturing_charge_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"match_bill_to_receipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrix_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"maximum_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"minimum_quantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"mpn\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"nature_of_transaction_codes_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"next_invt_count_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ng_asset_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"ns_lead_time\", \"datatype\": dbt.type_float()},\n {\"name\": \"offersupport\", \"datatype\": dbt.type_string()},\n {\"name\": \"onspecial\", \"datatype\": dbt.type_string()},\n {\"name\": \"overhead_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"payment_method_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"periodic_lot_size_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"periodic_lot_size_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"pref_purchase_tax_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"pref_sale_tax_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"pref_stock_level\", \"datatype\": dbt.type_float()},\n {\"name\": \"prices_include_tax\", \"datatype\": dbt.type_string()},\n {\"name\": \"pricing_group_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"print_sub_items\", \"datatype\": dbt.type_string()},\n {\"name\": \"prod_price_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"prod_qty_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"prompt_payment_discount_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchase_price_var_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchase_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchasedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantityavailable\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantitybackordered\", \"datatype\": dbt.type_float()},\n {\"name\": \"quantityonhand\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"reorder_multiple\", \"datatype\": dbt.type_float()},\n {\"name\": \"reorderpoint\", \"datatype\": dbt.type_float()},\n {\"name\": \"replenishment_method\", \"datatype\": dbt.type_string()},\n {\"name\": \"resalable\", \"datatype\": dbt.type_string()},\n {\"name\": \"reschedule_in_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"reschedule_out_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"rev_rec_forecast_rule_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"rev_rec_rule_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"revenue_allocation_group\", \"datatype\": dbt.type_string()},\n {\"name\": \"round_up_as_component\", \"datatype\": dbt.type_string()},\n {\"name\": \"safety_stock_days\", \"datatype\": dbt.type_float()},\n {\"name\": \"safety_stock_level\", \"datatype\": dbt.type_float()},\n {\"name\": \"sale_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"salesdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesforce_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesprice\", \"datatype\": dbt.type_string()},\n {\"name\": \"scrap_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"serialized_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"shippingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"special_work_order_item\", \"datatype\": dbt.type_string()},\n {\"name\": \"specialsdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"stock_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"storedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedetaileddescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplementary_unit__abberviat\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplementary_unit_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"supply_time_fence\", \"datatype\": dbt.type_float()},\n {\"name\": \"supply_type\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"totalvalue\", \"datatype\": dbt.type_float()},\n {\"name\": \"transferprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"type_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"type_of_goods_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"udf1\", \"datatype\": dbt.type_string()},\n {\"name\": \"udf2\", \"datatype\": dbt.type_string()},\n {\"name\": \"un_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbuild_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"units_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"upc_code\", \"datatype\": dbt.type_string()},\n {\"name\": \"use_component_yield\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendorname\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendreturn_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vsoe_deferral\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_delivered\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_discount\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoe_price\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_in_user_defined_unit\", \"datatype\": dbt.type_float()},\n {\"name\": \"weight_unit_index\", \"datatype\": dbt.type_float()},\n {\"name\": \"wip_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"wip_cost_variance_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"work_order_lead_time\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('items_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.07376, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_items_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_items_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_items_columns.sql", "original_file_path": "macros/get_items_columns.sql", "name": "get_netsuite2_items_columns", "macro_sql": "{% macro get_netsuite2_items_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"alternatedemandsourceitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"amortizationperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"amortizationtemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"assetaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"atpmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"autoexpandkitforrevenuemgmt\", \"datatype\": dbt.type_string()},\n {\"name\": \"averagecost\", \"datatype\": dbt.type_float()},\n {\"name\": \"backwardconsumptiondays\", \"datatype\": dbt.type_int()},\n {\"name\": \"billexchratevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"billingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"billpricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"billqtyvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"buildentireassembly\", \"datatype\": dbt.type_string()},\n {\"name\": \"buildtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"consumptionunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"copydescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"costestimate\", \"datatype\": dbt.type_float()},\n {\"name\": \"costestimatetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"costingmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"costingmethoddisplay\", \"datatype\": dbt.type_string()},\n {\"name\": \"countryofmanufacture\", \"datatype\": dbt.type_string()},\n {\"name\": \"createddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"createexpenseplanson\", \"datatype\": dbt.type_int()},\n {\"name\": \"createjob\", \"datatype\": dbt.type_string()},\n {\"name\": \"createrevenueplanson\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"deferralaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"deferredrevenueaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"deferrevrec\", \"datatype\": dbt.type_string()},\n {\"name\": \"demandmodifier\", \"datatype\": dbt.type_float()},\n {\"name\": \"demandsource\", \"datatype\": dbt.type_string()},\n {\"name\": \"demandtimefence\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"description\", \"datatype\": dbt.type_string()},\n {\"name\": \"directrevenueposting\", \"datatype\": dbt.type_string()},\n {\"name\": \"displayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"dropshipexpenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"enforceminqtyinternally\", \"datatype\": dbt.type_string()},\n {\"name\": \"excludefromsitemap\", \"datatype\": dbt.type_string()},\n {\"name\": \"expenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"expenseamortizationrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fixedlotsize\", \"datatype\": dbt.type_float()},\n {\"name\": \"forwardconsumptiondays\", \"datatype\": dbt.type_int()},\n {\"name\": \"froogleproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"gainlossaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"generateaccruals\", \"datatype\": dbt.type_string()},\n {\"name\": \"handlingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includechildren\", \"datatype\": dbt.type_string()},\n {\"name\": \"incomeaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercodefrevaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercoexpenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"intercoincomeaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"isdropshipitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isfulfillable\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"islotitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isonline\", \"datatype\": dbt.type_string()},\n {\"name\": \"isphantom\", \"datatype\": dbt.type_string()},\n {\"name\": \"isserialitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isspecialorderitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"isspecialworkorderitem\", \"datatype\": dbt.type_string()},\n {\"name\": \"itemid\", \"datatype\": dbt.type_string()},\n {\"name\": \"itemrevenuecategory\", \"datatype\": dbt.type_int()},\n {\"name\": \"itemtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastpurchaseprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"leadtime\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"manufacturer\", \"datatype\": dbt.type_string()},\n {\"name\": \"matchbilltoreceipt\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrixitemnametemplate\", \"datatype\": dbt.type_string()},\n {\"name\": \"matrixtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"maximumquantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"minimumquantity\", \"datatype\": dbt.type_int()},\n {\"name\": \"mpn\", \"datatype\": dbt.type_string()},\n {\"name\": \"nextagcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"nextagproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"overallquantitypricingtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodiclotsizedays\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodiclotsizetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"preferredlocation\", \"datatype\": dbt.type_int()},\n {\"name\": \"pricinggroup\", \"datatype\": dbt.type_int()},\n {\"name\": \"printitems\", \"datatype\": dbt.type_string()},\n {\"name\": \"prodpricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"prodqtyvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"projectexpensetype\", \"datatype\": dbt.type_int()},\n {\"name\": \"projecttemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchasedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchasepricevarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"purchaseunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"quantitypricingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"relateditemsdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"rescheduleindays\", \"datatype\": dbt.type_int()},\n {\"name\": \"rescheduleoutdays\", \"datatype\": dbt.type_int()},\n {\"name\": \"residual\", \"datatype\": dbt.type_float()},\n {\"name\": \"revenueallocationgroup\", \"datatype\": dbt.type_int()},\n {\"name\": \"revenuerecognitionrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"revrecforecastrule\", \"datatype\": dbt.type_int()},\n {\"name\": \"revreclassfxaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"roundupascomponent\", \"datatype\": dbt.type_string()},\n {\"name\": \"safetystocklevel\", \"datatype\": dbt.type_float()},\n {\"name\": \"saleunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"scrapacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"searchkeywords\", \"datatype\": dbt.type_string()},\n {\"name\": \"seasonaldemand\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipindividually\", \"datatype\": dbt.type_string()},\n {\"name\": \"shippackage\", \"datatype\": dbt.type_int()},\n {\"name\": \"shippingcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"shoppingdotcomcategory\", \"datatype\": dbt.type_string()},\n {\"name\": \"shoppingproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"shopzillacategoryid\", \"datatype\": dbt.type_int()},\n {\"name\": \"shopzillaproductfeed\", \"datatype\": dbt.type_string()},\n {\"name\": \"sitemappriority\", \"datatype\": dbt.type_string()},\n {\"name\": \"stockdescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"stockunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"storedescription\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplayimage\", \"datatype\": dbt.type_int()},\n {\"name\": \"storedisplayname\", \"datatype\": dbt.type_string()},\n {\"name\": \"storedisplaythumbnail\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()},\n {\"name\": \"subtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplylotsizingmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplyreplenishmentmethod\", \"datatype\": dbt.type_string()},\n {\"name\": \"supplytimefence\", \"datatype\": dbt.type_int()},\n {\"name\": \"supplytype\", \"datatype\": dbt.type_string()},\n {\"name\": \"totalquantityonhand\", \"datatype\": dbt.type_float()},\n {\"name\": \"totalvalue\", \"datatype\": dbt.type_float()},\n {\"name\": \"transferprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbuildvarianceaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"unitstype\", \"datatype\": dbt.type_int()},\n {\"name\": \"upccode\", \"datatype\": dbt.type_string()},\n {\"name\": \"usebins\", \"datatype\": dbt.type_string()},\n {\"name\": \"usemarginalrates\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendorname\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendreturnvarianceaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"vsoedelivered\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoepermitdiscount\", \"datatype\": dbt.type_string()},\n {\"name\": \"vsoesopgroup\", \"datatype\": dbt.type_string()},\n {\"name\": \"weight\", \"datatype\": dbt.type_float()},\n {\"name\": \"weightunit\", \"datatype\": dbt.type_int()},\n {\"name\": \"weightunits\", \"datatype\": dbt.type_string()},\n {\"name\": \"wipacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"wipvarianceacct\", \"datatype\": dbt.type_int()},\n {\"name\": \"yahooproductfeed\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('items_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.086518, "supported_languages": null}, "macro.netsuite_source.get_transaction_lines_columns": {"unique_id": "macro.netsuite_source.get_transaction_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "name": "get_transaction_lines_columns", "macro_sql": "{% macro get_transaction_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"company_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"item_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"non_posting_line\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_line_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.088489, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_lines_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transaction_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_lines_columns.sql", "original_file_path": "macros/get_transaction_lines_columns.sql", "name": "get_netsuite2_transaction_lines_columns", "macro_sql": "{% macro get_netsuite2_transaction_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"linesequencenumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"entity\", \"datatype\": dbt.type_int()},\n {\"name\": \"item\", \"datatype\": dbt.type_int()},\n {\"name\": \"class\", \"datatype\": dbt.type_int()},\n {\"name\": \"location\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"department\", \"datatype\": dbt.type_int()},\n {\"name\": \"isclosed\", \"datatype\": dbt.type_string()},\n {\"name\": \"isbillable\", \"datatype\": dbt.type_string()},\n {\"name\": \"iscogs\", \"datatype\": dbt.type_string()},\n {\"name\": \"cleared\", \"datatype\": dbt.type_string()},\n {\"name\": \"commitmentfirm\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainline\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxline\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transaction_lines_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.0902379, "supported_languages": null}, "macro.netsuite_source.get_vendors_columns": {"unique_id": "macro.netsuite_source.get_vendors_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "name": "get_vendors_columns", "macro_sql": "{% macro get_vendors_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_owner\", \"datatype\": dbt.type_string()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"accounts_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"annual_revenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"auto_renewals\", \"datatype\": dbt.type_string()},\n {\"name\": \"auto_send_statements\", \"datatype\": dbt.type_string()},\n {\"name\": \"billaddress\", \"datatype\": dbt.type_string()},\n {\"name\": \"billing_class_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"create_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"creditlimit\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dic\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_bill_payment_vouchers\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_cash_sales\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_credit_notes\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_invoices\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_item_fulfilments\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_purchase_orders\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_quotes\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_sales_orders\", \"datatype\": dbt.type_string()},\n {\"name\": \"email_statements\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"exemption_certificate_no\", \"datatype\": dbt.type_string()},\n {\"name\": \"expense_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"home_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"hris_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"ico\", \"datatype\": dbt.type_string()},\n {\"name\": \"id_number_in_the_country_of_r\", \"datatype\": dbt.type_string()},\n {\"name\": \"id_type_in_the_country_of_r_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"in_transit_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"incoterm\", \"datatype\": dbt.type_string()},\n {\"name\": \"industry_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"invoice_via_procurement_syste\", \"datatype\": dbt.type_string()},\n {\"name\": \"invoicing_details\", \"datatype\": dbt.type_string()},\n {\"name\": \"is1099eligible\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_partner\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_person\", \"datatype\": dbt.type_string()},\n {\"name\": \"isemailhtml\", \"datatype\": dbt.type_string()},\n {\"name\": \"isemailpdf\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"labor_cost\", \"datatype\": dbt.type_float()},\n {\"name\": \"last_modified_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"last_sales_activity\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"line1\", \"datatype\": dbt.type_string()},\n {\"name\": \"line2\", \"datatype\": dbt.type_string()},\n {\"name\": \"line3\", \"datatype\": dbt.type_string()},\n {\"name\": \"loginaccess\", \"datatype\": dbt.type_string()},\n {\"name\": \"lsa_link\", \"datatype\": dbt.type_string()},\n {\"name\": \"lsa_link_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobile_phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"msa_effective_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"no__of_employees\", \"datatype\": dbt.type_float()},\n {\"name\": \"openbalance\", \"datatype\": dbt.type_float()},\n {\"name\": \"openbalance_foreign\", \"datatype\": dbt.type_float()},\n {\"name\": \"payables_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"payment_terms_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"prepayment_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"printoncheckas\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchases_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"represents_subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"restrict_access_to_expensify\", \"datatype\": dbt.type_string()},\n {\"name\": \"salesforce_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipaddress\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_email\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_contact_first_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_contact_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"tax_contact_last_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_contact_middle_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"tax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"taxidnum\", \"datatype\": dbt.type_string()},\n {\"name\": \"time_approver_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transactions_need_approval\", \"datatype\": dbt.type_string()},\n {\"name\": \"uen\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilled_orders\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbilled_orders_foreign\", \"datatype\": dbt.type_float()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"vat_registration_no\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendor_type_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('vendors_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.105765, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_vendors_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_vendors_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendors_columns.sql", "original_file_path": "macros/get_vendors_columns.sql", "name": "get_netsuite2_vendors_columns", "macro_sql": "{% macro get_netsuite2_vendors_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"altemail\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"altphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"balanceprimary\", \"datatype\": dbt.type_float()},\n {\"name\": \"billingclass\", \"datatype\": dbt.type_int()},\n {\"name\": \"category\", \"datatype\": dbt.type_int()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"contactlist\", \"datatype\": dbt.type_string()},\n {\"name\": \"creditlimit\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultbankaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultvendorpaymentaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"emailpreference\", \"datatype\": dbt.type_string()},\n {\"name\": \"emailtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"expenseaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"faxtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"giveaccess\", \"datatype\": dbt.type_string()},\n {\"name\": \"homephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"incoterm\", \"datatype\": dbt.type_int()},\n {\"name\": \"isautogeneratedrepresentingentity\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isjobresourcevend\", \"datatype\": dbt.type_string()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"laborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"legalname\", \"datatype\": dbt.type_string()},\n {\"name\": \"middlename\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobilephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"payablesaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"printoncheckas\", \"datatype\": dbt.type_string()},\n {\"name\": \"printtransactions\", \"datatype\": dbt.type_string()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"representingsubsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"rolesforsearch\", \"datatype\": dbt.type_string()},\n {\"name\": \"salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiaryedition\", \"datatype\": dbt.type_string()},\n {\"name\": \"terms\", \"datatype\": dbt.type_int()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilledorders\", \"datatype\": dbt.type_float()},\n {\"name\": \"unbilledordersprimary\", \"datatype\": dbt.type_float()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"workcalendar\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('vendors_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.111431, "supported_languages": null}, "macro.netsuite_source.get_transactionaccountingline_columns": {"unique_id": "macro.netsuite_source.get_transactionaccountingline_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactionaccountingline_columns.sql", "original_file_path": "macros/get_transactionaccountingline_columns.sql", "name": "get_transactionaccountingline_columns", "macro_sql": "{% macro get_transactionaccountingline_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account\", \"datatype\": dbt.type_int()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountlinked\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountunpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"debit\", \"datatype\": dbt.type_float()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"netamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"overheadparentitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"paymentamountunused\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountused\", \"datatype\": dbt.type_float()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionline\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1135292, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transaction_accounting_lines_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transaction_accounting_lines_columns.sql", "original_file_path": "macros/get_transaction_accounting_lines_columns.sql", "name": "get_netsuite2_transaction_accounting_lines_columns", "macro_sql": "{% macro get_netsuite2_transaction_accounting_lines_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account\", \"datatype\": dbt.type_int()},\n {\"name\": \"accountingbook\", \"datatype\": dbt.type_int()},\n {\"name\": \"amount\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"amountunpaid\", \"datatype\": dbt.type_float()},\n {\"name\": \"credit\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"debit\", \"datatype\": dbt.type_float()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"netamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountunused\", \"datatype\": dbt.type_float()},\n {\"name\": \"paymentamountused\", \"datatype\": dbt.type_float()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"transaction\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionline\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_float", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.115394, "supported_languages": null}, "macro.netsuite_source.get_vendorcategory_columns": {"unique_id": "macro.netsuite_source.get_vendorcategory_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendorcategory_columns.sql", "original_file_path": "macros/get_vendorcategory_columns.sql", "name": "get_vendorcategory_columns", "macro_sql": "{% macro get_vendorcategory_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"istaxagency\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1164758, "supported_languages": null}, "macro.netsuite_source.get_accounttype_columns": {"unique_id": "macro.netsuite_source.get_accounttype_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounttype_columns.sql", "original_file_path": "macros/get_accounttype_columns.sql", "name": "get_accounttype_columns", "macro_sql": "{% macro get_accounttype_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"balancesheet\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultcashflowratetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"defaultgeneralratetype\", \"datatype\": dbt.type_string()},\n {\"name\": \"eliminationalgo\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_string()},\n {\"name\": \"includeinrevaldefault\", \"datatype\": dbt.type_string()},\n {\"name\": \"internalid\", \"datatype\": dbt.type_int()},\n {\"name\": \"left\", \"datatype\": dbt.type_string(), \"quote\": True},\n {\"name\": \"longname\", \"datatype\": dbt.type_string()},\n {\"name\": \"seqnum\", \"datatype\": dbt.type_int()},\n {\"name\": \"usercanchangerevaloption\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1180742, "supported_languages": null}, "macro.netsuite_source.get_accounting_books_columns": {"unique_id": "macro.netsuite_source.get_accounting_books_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "name": "get_accounting_books_columns", "macro_sql": "{% macro get_accounting_books_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_book_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"accounting_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accounting_book_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"base_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_created\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effective_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"form_template_component_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"form_template_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_adjustment_only\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_arrangement_level_reclass\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_consolidated\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_contingent_revenue_handling\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_include_child_subsidiaries\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_primary\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_two_step_revenue_allocation\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilled_receivable_grouping\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.120692, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_books_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounting_books_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_books_columns.sql", "original_file_path": "macros/get_accounting_books_columns.sql", "name": "get_netsuite2_accounting_books_columns", "macro_sql": "{% macro get_netsuite2_accounting_books_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"basebook\", \"datatype\": dbt.type_int()},\n {\"name\": \"contingentrevenuehandling\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"effectiveperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isadjustmentonly\", \"datatype\": dbt.type_string()},\n {\"name\": \"isconsolidated\", \"datatype\": dbt.type_string()},\n {\"name\": \"isprimary\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiariesstring\", \"datatype\": dbt.type_string()},\n {\"name\": \"twosteprevenueallocation\", \"datatype\": dbt.type_string()},\n {\"name\": \"unbilledreceivablegrouping\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.122141, "supported_languages": null}, "macro.netsuite_source.get_departments_columns": {"unique_id": "macro.netsuite_source.get_departments_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "name": "get_departments_columns", "macro_sql": "{% macro get_departments_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"department_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.123057, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_departments_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_departments_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_departments_columns.sql", "original_file_path": "macros/get_departments_columns.sql", "name": "get_netsuite2_departments_columns", "macro_sql": "{% macro get_netsuite2_departments_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('departments_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.123914, "supported_languages": null}, "macro.netsuite_source.get_transactions_columns": {"unique_id": "macro.netsuite_source.get_transactions_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "name": "get_transactions_columns", "macro_sql": "{% macro get_transactions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"due_date\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"is_advanced_intercompany\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_intercompany\", \"datatype\": dbt.type_string()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"trandate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"transaction_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"transaction_type\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1255722, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_transactions_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_transactions_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_transactions_columns.sql", "original_file_path": "macros/get_transactions_columns.sql", "name": "get_netsuite2_transactions_columns", "macro_sql": "{% macro get_netsuite2_transactions_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"transactionnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"memo\", \"datatype\": dbt.type_string()},\n {\"name\": \"trandate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"status\", \"datatype\": dbt.type_string()},\n {\"name\": \"createddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"duedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"closedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"entity\", \"datatype\": dbt.type_int()},\n {\"name\": \"postingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"posting\", \"datatype\": dbt.type_string()},\n {\"name\": \"intercoadj\", \"datatype\": dbt.type_string()},\n {\"name\": \"isreversal\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('transactions_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.12717, "supported_languages": null}, "macro.netsuite_source.get_entity_columns": {"unique_id": "macro.netsuite_source.get_entity_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_entity_columns.sql", "original_file_path": "macros/get_entity_columns.sql", "name": "get_entity_columns", "macro_sql": "{% macro get_entity_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"altemail\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"altphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"employee\", \"datatype\": dbt.type_int()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fax\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"genericresource\", \"datatype\": dbt.type_int()},\n {\"name\": \"homephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"laborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"middlename\", \"datatype\": dbt.type_string()},\n {\"name\": \"mobilephone\", \"datatype\": dbt.type_string()},\n {\"name\": \"othername\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"partner\", \"datatype\": dbt.type_int()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"project\", \"datatype\": dbt.type_int()},\n {\"name\": \"projecttemplate\", \"datatype\": dbt.type_int()},\n {\"name\": \"salutation\", \"datatype\": dbt.type_string()},\n {\"name\": \"title\", \"datatype\": dbt.type_string()},\n {\"name\": \"toplevelparent\", \"datatype\": dbt.type_int()},\n {\"name\": \"type\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.131351, "supported_languages": null}, "macro.netsuite_source.get_accounting_periods_columns": {"unique_id": "macro.netsuite_source.get_accounting_periods_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "name": "get_accounting_periods_columns", "macro_sql": "{% macro get_accounting_periods_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"closed\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_accounts_payable\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_accounts_receivable\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_all\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed_on\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"closed_payroll\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"ending\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"fiscal_calendar_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"fivetran_index\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_adjustment\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_accounts_payable\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_accounts_receivable\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_all\", \"datatype\": dbt.type_string()},\n {\"name\": \"locked_payroll\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"quarter\", \"datatype\": dbt.type_string()},\n {\"name\": \"starting\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"year_0\", \"datatype\": dbt.type_string()},\n {\"name\": \"year_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.134781, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_accounting_periods_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_accounting_periods_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_accounting_periods_columns.sql", "original_file_path": "macros/get_accounting_periods_columns.sql", "name": "get_netsuite2_accounting_periods_columns", "macro_sql": "{% macro get_netsuite2_accounting_periods_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"alllocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"allownonglchanges\", \"datatype\": dbt.type_string()},\n {\"name\": \"aplocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"arlocked\", \"datatype\": dbt.type_string()},\n {\"name\": \"closed\", \"datatype\": dbt.type_string()},\n {\"name\": \"closedondate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"enddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"isadjust\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isposting\", \"datatype\": dbt.type_string()},\n {\"name\": \"isquarter\", \"datatype\": dbt.type_string()},\n {\"name\": \"isyear\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"periodname\", \"datatype\": dbt.type_string()},\n {\"name\": \"startdate\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.13658, "supported_languages": null}, "macro.netsuite_source.get_consolidated_exchange_rates_columns": {"unique_id": "macro.netsuite_source.get_consolidated_exchange_rates_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "name": "get_consolidated_exchange_rates_columns", "macro_sql": "{% macro get_consolidated_exchange_rates_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accounting_book_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"accounting_period_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"average_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"consolidated_exchange_rate_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"current_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"current_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"from_subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"historical_budget_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"historical_rate\", \"datatype\": dbt.type_float()},\n {\"name\": \"to_subsidiary_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.138528, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_consolidated_exchange_rates_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_consolidated_exchange_rates_columns.sql", "original_file_path": "macros/get_consolidated_exchange_rates_columns.sql", "name": "get_netsuite2_consolidated_exchange_rates_columns", "macro_sql": "{% macro get_netsuite2_consolidated_exchange_rates_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"averagerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"currentrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"fromcurrency\", \"datatype\": dbt.type_int()},\n {\"name\": \"fromsubsidiary\", \"datatype\": dbt.type_int()},\n {\"name\": \"historicalrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"postingperiod\", \"datatype\": dbt.type_int()},\n {\"name\": \"tocurrency\", \"datatype\": dbt.type_int()},\n {\"name\": \"tosubsidiary\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('consolidated_exchange_rates_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_float", "macro.dbt.type_int", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.139643, "supported_languages": null}, "macro.netsuite_source.get_income_accounts_columns": {"unique_id": "macro.netsuite_source.get_income_accounts_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_income_accounts_columns.sql", "original_file_path": "macros/get_income_accounts_columns.sql", "name": "get_income_accounts_columns", "macro_sql": "{% macro get_income_accounts_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"account_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"current_balance\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"desription\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"income_account_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"is_including_child_subs\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_summary\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.141511, "supported_languages": null}, "macro.netsuite_source.get_customers_columns": {"unique_id": "macro.netsuite_source.get_customers_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "name": "get_customers_columns", "macro_sql": "{% macro get_customers_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"customer_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_first_order\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.143046, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_customers_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_customers_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_customers_columns.sql", "original_file_path": "macros/get_customers_columns.sql", "name": "get_netsuite2_customers_columns", "macro_sql": "{% macro get_netsuite2_customers_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"isperson\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"firstname\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastname\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"phone\", \"datatype\": dbt.type_string()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"receivablesaccount\", \"datatype\": dbt.type_int()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"firstorderdate\", \"datatype\": dbt.type_timestamp()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('customers_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_timestamp", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1445608, "supported_languages": null}, "macro.netsuite_source.get_locations_columns": {"unique_id": "macro.netsuite_source.get_locations_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "name": "get_locations_columns", "macro_sql": "{% macro get_locations_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"location_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.145776, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_locations_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_locations_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_locations_columns.sql", "original_file_path": "macros/get_locations_columns.sql", "name": "get_netsuite2_locations_columns", "macro_sql": "{% macro get_netsuite2_locations_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"subsidiary\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('locations_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.146626, "supported_languages": null}, "macro.netsuite_source.get_entityaddress_columns": {"unique_id": "macro.netsuite_source.get_entityaddress_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_entityaddress_columns.sql", "original_file_path": "macros/get_entityaddress_columns.sql", "name": "get_entityaddress_columns", "macro_sql": "{% macro get_entityaddress_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"addr1\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr2\", \"datatype\": dbt.type_string()},\n {\"name\": \"addr3\", \"datatype\": dbt.type_string()},\n {\"name\": \"addressee\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrphone\", \"datatype\": dbt.type_string()},\n {\"name\": \"addrtext\", \"datatype\": dbt.type_string()},\n {\"name\": \"attention\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"dropdownstate\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"nkey\", \"datatype\": dbt.type_int()},\n {\"name\": \"override\", \"datatype\": dbt.type_string()},\n {\"name\": \"recordowner\", \"datatype\": dbt.type_int()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"zip\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1486652, "supported_languages": null}, "macro.netsuite_source.get_vendor_types_columns": {"unique_id": "macro.netsuite_source.get_vendor_types_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_vendor_types_columns.sql", "original_file_path": "macros/get_vendor_types_columns.sql", "name": "get_vendor_types_columns", "macro_sql": "{% macro get_vendor_types_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"vendor_type_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"vendor_type_id\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.149672, "supported_languages": null}, "macro.netsuite_source.get_subsidiaries_columns": {"unique_id": "macro.netsuite_source.get_subsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "name": "get_subsidiaries_columns", "macro_sql": "{% macro get_subsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"address\", \"datatype\": dbt.type_string()},\n {\"name\": \"address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"base_currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"branch_id\", \"datatype\": dbt.type_string()},\n {\"name\": \"brn\", \"datatype\": dbt.type_string()},\n {\"name\": \"city\", \"datatype\": dbt.type_string()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"edition\", \"datatype\": dbt.type_string()},\n {\"name\": \"federal_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"fiscal_calendar_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"full_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_elimination\", \"datatype\": dbt.type_string()},\n {\"name\": \"is_moss\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive_bool\", \"datatype\": dbt.type_string()},\n {\"name\": \"legal_name\", \"datatype\": dbt.type_string()},\n {\"name\": \"moss_nexus_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"purchaseorderquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptamount\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantity\", \"datatype\": dbt.type_float()},\n {\"name\": \"receiptquantitydiff\", \"datatype\": dbt.type_float()},\n {\"name\": \"return_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"return_zipcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address1\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_address2\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_city\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_country\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_state\", \"datatype\": dbt.type_string()},\n {\"name\": \"shipping_zipcode\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"state_tax_number\", \"datatype\": dbt.type_string()},\n {\"name\": \"subnav__searchable_subsidiary\", \"datatype\": dbt.type_float()},\n {\"name\": \"subsidiary_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"subsidiary_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"taxonomy_reference_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"tran_num_prefix\", \"datatype\": dbt.type_string()},\n {\"name\": \"uen\", \"datatype\": dbt.type_string()},\n {\"name\": \"url\", \"datatype\": dbt.type_string()},\n {\"name\": \"zipcode\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.15603, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_subsidiaries_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_subsidiaries_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_subsidiaries_columns.sql", "original_file_path": "macros/get_subsidiaries_columns.sql", "name": "get_netsuite2_subsidiaries_columns", "macro_sql": "{% macro get_netsuite2_subsidiaries_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"fullname\", \"datatype\": dbt.type_string()},\n {\"name\": \"email\", \"datatype\": dbt.type_string()},\n {\"name\": \"mainaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"country\", \"datatype\": dbt.type_string()},\n {\"name\": \"state\", \"datatype\": dbt.type_string()},\n {\"name\": \"fiscalcalendar\", \"datatype\": dbt.type_int()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ fivetran_utils.add_pass_through_columns(columns, var('subsidiaries_pass_through_columns')) }}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.fivetran_utils.add_pass_through_columns"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.157171, "supported_languages": null}, "macro.netsuite_source.get_job_columns": {"unique_id": "macro.netsuite_source.get_job_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_job_columns.sql", "original_file_path": "macros/get_job_columns.sql", "name": "get_job_columns", "macro_sql": "{% macro get_job_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"accountnumber\", \"datatype\": dbt.type_string()},\n {\"name\": \"actualtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"allowallresourcesfortasks\", \"datatype\": dbt.type_string()},\n {\"name\": \"allowexpenses\", \"datatype\": dbt.type_string()},\n {\"name\": \"allowtime\", \"datatype\": dbt.type_string()},\n {\"name\": \"alternatecontact\", \"datatype\": dbt.type_string()},\n {\"name\": \"altname\", \"datatype\": dbt.type_string()},\n {\"name\": \"billingschedule\", \"datatype\": dbt.type_int()},\n {\"name\": \"calculatedenddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"calculatedenddatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"category\", \"datatype\": dbt.type_int()},\n {\"name\": \"comments\", \"datatype\": dbt.type_string()},\n {\"name\": \"companyname\", \"datatype\": dbt.type_string()},\n {\"name\": \"contact\", \"datatype\": dbt.type_int()},\n {\"name\": \"contactlist\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency\", \"datatype\": dbt.type_int()},\n {\"name\": \"currencyprecision\", \"datatype\": dbt.type_int()},\n {\"name\": \"custentity1\", \"datatype\": dbt.type_string()},\n {\"name\": \"custentity4\", \"datatype\": dbt.type_string()},\n {\"name\": \"custentity5\", \"datatype\": dbt.type_int()},\n {\"name\": \"customer\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"datecreated\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"defaultbillingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"defaultshippingaddress\", \"datatype\": dbt.type_int()},\n {\"name\": \"enddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"entityid\", \"datatype\": dbt.type_string()},\n {\"name\": \"entitynumber\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitystatus\", \"datatype\": dbt.type_int()},\n {\"name\": \"entitytitle\", \"datatype\": dbt.type_string()},\n {\"name\": \"estimatedcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedgrossprofit\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedgrossprofitpercent\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborcost\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborcostbaseline\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedlaborrevenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedrevenue\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtime\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtimeoverride\", \"datatype\": dbt.type_float()},\n {\"name\": \"estimatedtimeoverridebaseline\", \"datatype\": dbt.type_float()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"files\", \"datatype\": dbt.type_string()},\n {\"name\": \"forecastchargerunondemand\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxrate\", \"datatype\": dbt.type_float()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includecrmtasksintotals\", \"datatype\": dbt.type_string()},\n {\"name\": \"isexempttime\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"isproductivetime\", \"datatype\": dbt.type_string()},\n {\"name\": \"isutilizedtime\", \"datatype\": dbt.type_string()},\n {\"name\": \"jobbillingtype\", \"datatype\": dbt.type_string()},\n {\"name\": \"jobitem\", \"datatype\": dbt.type_int()},\n {\"name\": \"jobprice\", \"datatype\": dbt.type_float()},\n {\"name\": \"jobtype\", \"datatype\": dbt.type_int()},\n {\"name\": \"lastbaselinedate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"limittimetoassignees\", \"datatype\": dbt.type_string()},\n {\"name\": \"materializetime\", \"datatype\": dbt.type_string()},\n {\"name\": \"parent\", \"datatype\": dbt.type_int()},\n {\"name\": \"percentcomplete\", \"datatype\": dbt.type_float()},\n {\"name\": \"percenttimecomplete\", \"datatype\": dbt.type_float()},\n {\"name\": \"primarycontact\", \"datatype\": dbt.type_string()},\n {\"name\": \"projectedenddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"projectedenddatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"projectmanager\", \"datatype\": dbt.type_int()},\n {\"name\": \"startdate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"startdatebaseline\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"timeapproval\", \"datatype\": dbt.type_int()},\n {\"name\": \"timeremaining\", \"datatype\": dbt.type_float()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float", "macro.dbt.type_int"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.165428, "supported_languages": null}, "macro.netsuite_source.get_currencies_columns": {"unique_id": "macro.netsuite_source.get_currencies_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "name": "get_currencies_columns", "macro_sql": "{% macro get_currencies_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currency_extid\", \"datatype\": dbt.type_string()},\n {\"name\": \"currency_id\", \"datatype\": dbt.type_float()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"date_last_modified\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"is_inactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"precision_0\", \"datatype\": dbt.type_float()},\n {\"name\": \"symbol\", \"datatype\": dbt.type_string()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1670039, "supported_languages": null}, "macro.netsuite_source.get_netsuite2_currencies_columns": {"unique_id": "macro.netsuite_source.get_netsuite2_currencies_columns", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "macros/get_currencies_columns.sql", "original_file_path": "macros/get_currencies_columns.sql", "name": "get_netsuite2_currencies_columns", "macro_sql": "{% macro get_netsuite2_currencies_columns() %}\n\n{% set columns = [\n {\"name\": \"_fivetran_deleted\", \"datatype\": \"boolean\"},\n {\"name\": \"_fivetran_synced\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"currencyprecision\", \"datatype\": dbt.type_int()},\n {\"name\": \"date_deleted\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"displaysymbol\", \"datatype\": dbt.type_string()},\n {\"name\": \"exchangerate\", \"datatype\": dbt.type_float()},\n {\"name\": \"externalid\", \"datatype\": dbt.type_string()},\n {\"name\": \"fxrateupdatetimezone\", \"datatype\": dbt.type_int()},\n {\"name\": \"id\", \"datatype\": dbt.type_int()},\n {\"name\": \"includeinfxrateupdates\", \"datatype\": dbt.type_string()},\n {\"name\": \"isbasecurrency\", \"datatype\": dbt.type_string()},\n {\"name\": \"isinactive\", \"datatype\": dbt.type_string()},\n {\"name\": \"lastmodifieddate\", \"datatype\": dbt.type_timestamp()},\n {\"name\": \"name\", \"datatype\": dbt.type_string()},\n {\"name\": \"overridecurrencyformat\", \"datatype\": dbt.type_string()},\n {\"name\": \"symbol\", \"datatype\": dbt.type_string()},\n {\"name\": \"symbolplacement\", \"datatype\": dbt.type_int()}\n] %}\n\n{{ return(columns) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_timestamp", "macro.dbt.type_int", "macro.dbt.type_string", "macro.dbt.type_float"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.168473, "supported_languages": null}, "macro.fivetran_utils.enabled_vars": {"unique_id": "macro.fivetran_utils.enabled_vars", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars.sql", "original_file_path": "macros/enabled_vars.sql", "name": "enabled_vars", "macro_sql": "{% macro enabled_vars(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, True) == False %}\n {{ return(False) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(True) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1689339, "supported_languages": null}, "macro.fivetran_utils.percentile": {"unique_id": "macro.fivetran_utils.percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "percentile", "macro_sql": "{% macro percentile(percentile_field, partition_field, percent) -%}\n\n{{ adapter.dispatch('percentile', 'fivetran_utils') (percentile_field, partition_field, percent) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__percentile"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.169853, "supported_languages": null}, "macro.fivetran_utils.default__percentile": {"unique_id": "macro.fivetran_utils.default__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "default__percentile", "macro_sql": "{% macro default__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.170014, "supported_languages": null}, "macro.fivetran_utils.redshift__percentile": {"unique_id": "macro.fivetran_utils.redshift__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "redshift__percentile", "macro_sql": "{% macro redshift__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n over ( partition by {{ partition_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1701682, "supported_languages": null}, "macro.fivetran_utils.bigquery__percentile": {"unique_id": "macro.fivetran_utils.bigquery__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "bigquery__percentile", "macro_sql": "{% macro bigquery__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.170321, "supported_languages": null}, "macro.fivetran_utils.postgres__percentile": {"unique_id": "macro.fivetran_utils.postgres__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "postgres__percentile", "macro_sql": "{% macro postgres__percentile(percentile_field, partition_field, percent) %}\n\n percentile_cont( \n {{ percent }} )\n within group ( order by {{ percentile_field }} )\n /* have to group by partition field */\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.17046, "supported_languages": null}, "macro.fivetran_utils.spark__percentile": {"unique_id": "macro.fivetran_utils.spark__percentile", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/percentile.sql", "original_file_path": "macros/percentile.sql", "name": "spark__percentile", "macro_sql": "{% macro spark__percentile(percentile_field, partition_field, percent) %}\n\n percentile( \n {{ percentile_field }}, \n {{ percent }}) \n over (partition by {{ partition_field }} \n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.170613, "supported_languages": null}, "macro.fivetran_utils.pivot_json_extract": {"unique_id": "macro.fivetran_utils.pivot_json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/pivot_json_extract.sql", "original_file_path": "macros/pivot_json_extract.sql", "name": "pivot_json_extract", "macro_sql": "{% macro pivot_json_extract(string, list_of_properties) %}\n\n{%- for property in list_of_properties -%}\n{%- if property is mapping -%}\nreplace( {{ fivetran_utils.json_extract(string, property.name) }}, '\"', '') as {{ property.alias if property.alias else property.name | replace(' ', '_') | replace('.', '_') | lower }}\n\n{%- else -%}\nreplace( {{ fivetran_utils.json_extract(string, property) }}, '\"', '') as {{ property | replace(' ', '_') | lower }}\n\n{%- endif -%}\n{%- if not loop.last -%},{%- endif %}\n{% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1714501, "supported_languages": null}, "macro.fivetran_utils.persist_pass_through_columns": {"unique_id": "macro.fivetran_utils.persist_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/persist_pass_through_columns.sql", "original_file_path": "macros/persist_pass_through_columns.sql", "name": "persist_pass_through_columns", "macro_sql": "{% macro persist_pass_through_columns(pass_through_variable, identifier=none, transform='') %}\n\n{% if var(pass_through_variable, none) %}\n {% for field in var(pass_through_variable) %}\n , {{ transform ~ '(' ~ (identifier ~ '.' if identifier else '') ~ (field.alias if field.alias else field.name) ~ ')' }} as {{ field.alias if field.alias else field.name }}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.172137, "supported_languages": null}, "macro.fivetran_utils.json_parse": {"unique_id": "macro.fivetran_utils.json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "json_parse", "macro_sql": "{% macro json_parse(string, string_path) -%}\n\n{{ adapter.dispatch('json_parse', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_parse"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.173246, "supported_languages": null}, "macro.fivetran_utils.default__json_parse": {"unique_id": "macro.fivetran_utils.default__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "default__json_parse", "macro_sql": "{% macro default__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1734881, "supported_languages": null}, "macro.fivetran_utils.redshift__json_parse": {"unique_id": "macro.fivetran_utils.redshift__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "redshift__json_parse", "macro_sql": "{% macro redshift__json_parse(string, string_path) %}\n\n json_extract_path_text({{string}}, {%- for s in string_path -%}'{{ s }}'{%- if not loop.last -%},{%- endif -%}{%- endfor -%} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1737301, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_parse": {"unique_id": "macro.fivetran_utils.bigquery__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "bigquery__json_parse", "macro_sql": "{% macro bigquery__json_parse(string, string_path) %}\n\n \n json_extract_scalar({{string}}, '$.{%- for s in string_path -%}{{ s }}{%- if not loop.last -%}.{%- endif -%}{%- endfor -%} ')\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.173963, "supported_languages": null}, "macro.fivetran_utils.postgres__json_parse": {"unique_id": "macro.fivetran_utils.postgres__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "postgres__json_parse", "macro_sql": "{% macro postgres__json_parse(string, string_path) %}\n\n {{string}}::json #>> '{ {%- for s in string_path -%}{{ s }}{%- if not loop.last -%},{%- endif -%}{%- endfor -%} }'\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.174196, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_parse": {"unique_id": "macro.fivetran_utils.snowflake__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "snowflake__json_parse", "macro_sql": "{% macro snowflake__json_parse(string, string_path) %}\n\n parse_json( {{string}} ) {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.174454, "supported_languages": null}, "macro.fivetran_utils.spark__json_parse": {"unique_id": "macro.fivetran_utils.spark__json_parse", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_parse.sql", "original_file_path": "macros/json_parse.sql", "name": "spark__json_parse", "macro_sql": "{% macro spark__json_parse(string, string_path) %}\n\n {{string}} : {%- for s in string_path -%}{% if s is number %}[{{ s }}]{% else %}['{{ s }}']{% endif %}{%- endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1747708, "supported_languages": null}, "macro.fivetran_utils.max_bool": {"unique_id": "macro.fivetran_utils.max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "max_bool", "macro_sql": "{% macro max_bool(boolean_field) -%}\n\n{{ adapter.dispatch('max_bool', 'fivetran_utils') (boolean_field) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__max_bool"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1751602, "supported_languages": null}, "macro.fivetran_utils.default__max_bool": {"unique_id": "macro.fivetran_utils.default__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "default__max_bool", "macro_sql": "{% macro default__max_bool(boolean_field) %}\n\n bool_or( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1752582, "supported_languages": null}, "macro.fivetran_utils.snowflake__max_bool": {"unique_id": "macro.fivetran_utils.snowflake__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "snowflake__max_bool", "macro_sql": "{% macro snowflake__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.175358, "supported_languages": null}, "macro.fivetran_utils.bigquery__max_bool": {"unique_id": "macro.fivetran_utils.bigquery__max_bool", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/max_bool.sql", "original_file_path": "macros/max_bool.sql", "name": "bigquery__max_bool", "macro_sql": "{% macro bigquery__max_bool(boolean_field) %}\n\n max( {{ boolean_field }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.175456, "supported_languages": null}, "macro.fivetran_utils.calculated_fields": {"unique_id": "macro.fivetran_utils.calculated_fields", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/calculated_fields.sql", "original_file_path": "macros/calculated_fields.sql", "name": "calculated_fields", "macro_sql": "{% macro calculated_fields(variable) -%}\n\n{% if var(variable, none) %}\n {% for field in var(variable) %}\n , {{ field.transform_sql }} as {{ field.name }} \n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1758862, "supported_languages": null}, "macro.fivetran_utils.seed_data_helper": {"unique_id": "macro.fivetran_utils.seed_data_helper", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/seed_data_helper.sql", "original_file_path": "macros/seed_data_helper.sql", "name": "seed_data_helper", "macro_sql": "{% macro seed_data_helper(seed_name, warehouses) %}\n\n{% if target.type in warehouses %}\n {% for w in warehouses %}\n {% if target.type == w %}\n {{ return(ref(seed_name ~ \"_\" ~ w ~ \"\")) }}\n {% endif %}\n {% endfor %}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1765199, "supported_languages": null}, "macro.fivetran_utils.fill_pass_through_columns": {"unique_id": "macro.fivetran_utils.fill_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_pass_through_columns.sql", "original_file_path": "macros/fill_pass_through_columns.sql", "name": "fill_pass_through_columns", "macro_sql": "{% macro fill_pass_through_columns(pass_through_variable) %}\n\n{% if var(pass_through_variable) %}\n {% for field in var(pass_through_variable) %}\n {% if field is mapping %}\n {% if field.transform_sql %}\n , {{ field.transform_sql }} as {{ field.alias if field.alias else field.name }}\n {% else %}\n , {{ field.alias if field.alias else field.name }}\n {% endif %}\n {% else %}\n , {{ field }}\n {% endif %}\n {% endfor %}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.177334, "supported_languages": null}, "macro.fivetran_utils.string_agg": {"unique_id": "macro.fivetran_utils.string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "string_agg", "macro_sql": "{% macro string_agg(field_to_agg, delimiter) -%}\n\n{{ adapter.dispatch('string_agg', 'fivetran_utils') (field_to_agg, delimiter) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__string_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.177857, "supported_languages": null}, "macro.fivetran_utils.default__string_agg": {"unique_id": "macro.fivetran_utils.default__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "default__string_agg", "macro_sql": "{% macro default__string_agg(field_to_agg, delimiter) %}\n string_agg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.177987, "supported_languages": null}, "macro.fivetran_utils.snowflake__string_agg": {"unique_id": "macro.fivetran_utils.snowflake__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "snowflake__string_agg", "macro_sql": "{% macro snowflake__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.178112, "supported_languages": null}, "macro.fivetran_utils.redshift__string_agg": {"unique_id": "macro.fivetran_utils.redshift__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "redshift__string_agg", "macro_sql": "{% macro redshift__string_agg(field_to_agg, delimiter) %}\n listagg({{ field_to_agg }}, {{ delimiter }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.178236, "supported_languages": null}, "macro.fivetran_utils.spark__string_agg": {"unique_id": "macro.fivetran_utils.spark__string_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/string_agg.sql", "original_file_path": "macros/string_agg.sql", "name": "spark__string_agg", "macro_sql": "{% macro spark__string_agg(field_to_agg, delimiter) %}\n -- collect set will remove duplicates\n replace(replace(replace(cast( collect_set({{ field_to_agg }}) as string), '[', ''), ']', ''), ', ', {{ delimiter }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1783638, "supported_languages": null}, "macro.fivetran_utils.timestamp_diff": {"unique_id": "macro.fivetran_utils.timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "timestamp_diff", "macro_sql": "{% macro timestamp_diff(first_date, second_date, datepart) %}\n {{ adapter.dispatch('timestamp_diff', 'fivetran_utils')(first_date, second_date, datepart) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_diff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.181066, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_diff": {"unique_id": "macro.fivetran_utils.default__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "default__timestamp_diff", "macro_sql": "{% macro default__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.181225, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_diff": {"unique_id": "macro.fivetran_utils.redshift__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "redshift__timestamp_diff", "macro_sql": "{% macro redshift__timestamp_diff(first_date, second_date, datepart) %}\n\n datediff(\n {{ datepart }},\n {{ first_date }},\n {{ second_date }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.181376, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_diff": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "bigquery__timestamp_diff", "macro_sql": "{% macro bigquery__timestamp_diff(first_date, second_date, datepart) %}\n\n timestamp_diff(\n {{second_date}},\n {{first_date}},\n {{datepart}}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.181521, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_diff": {"unique_id": "macro.fivetran_utils.postgres__timestamp_diff", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_diff.sql", "original_file_path": "macros/timestamp_diff.sql", "name": "postgres__timestamp_diff", "macro_sql": "{% macro postgres__timestamp_diff(first_date, second_date, datepart) %}\n\n {% if datepart == 'year' %}\n (date_part('year', ({{second_date}})::date) - date_part('year', ({{first_date}})::date))\n {% elif datepart == 'quarter' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 4 + date_part('quarter', ({{second_date}})::date) - date_part('quarter', ({{first_date}})::date))\n {% elif datepart == 'month' %}\n ({{ dbt.datediff(first_date, second_date, 'year') }} * 12 + date_part('month', ({{second_date}})::date) - date_part('month', ({{first_date}})::date))\n {% elif datepart == 'day' %}\n (({{second_date}})::date - ({{first_date}})::date)\n {% elif datepart == 'week' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} / 7 + case\n when date_part('dow', ({{first_date}})::timestamp) <= date_part('dow', ({{second_date}})::timestamp) then\n case when {{first_date}} <= {{second_date}} then 0 else -1 end\n else\n case when {{first_date}} <= {{second_date}} then 1 else 0 end\n end)\n {% elif datepart == 'hour' %}\n ({{ dbt.datediff(first_date, second_date, 'day') }} * 24 + date_part('hour', ({{second_date}})::timestamp) - date_part('hour', ({{first_date}})::timestamp))\n {% elif datepart == 'minute' %}\n ({{ dbt.datediff(first_date, second_date, 'hour') }} * 60 + date_part('minute', ({{second_date}})::timestamp) - date_part('minute', ({{first_date}})::timestamp))\n {% elif datepart == 'second' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60 + floor(date_part('second', ({{second_date}})::timestamp)) - floor(date_part('second', ({{first_date}})::timestamp)))\n {% elif datepart == 'millisecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000 + floor(date_part('millisecond', ({{second_date}})::timestamp)) - floor(date_part('millisecond', ({{first_date}})::timestamp)))\n {% elif datepart == 'microsecond' %}\n ({{ dbt.datediff(first_date, second_date, 'minute') }} * 60000000 + floor(date_part('microsecond', ({{second_date}})::timestamp)) - floor(date_part('microsecond', ({{first_date}})::timestamp)))\n {% else %}\n {{ exceptions.raise_compiler_error(\"Unsupported datepart for macro datediff in postgres: {!r}\".format(datepart)) }}\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.datediff"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.183216, "supported_languages": null}, "macro.fivetran_utils.try_cast": {"unique_id": "macro.fivetran_utils.try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "try_cast", "macro_sql": "{% macro try_cast(field, type) %}\n {{ adapter.dispatch('try_cast', 'fivetran_utils') (field, type) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__try_cast"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.184084, "supported_languages": null}, "macro.fivetran_utils.default__safe_cast": {"unique_id": "macro.fivetran_utils.default__safe_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "default__safe_cast", "macro_sql": "{% macro default__safe_cast(field, type) %}\n {# most databases don't support this function yet\n so we just need to use cast #}\n cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.184216, "supported_languages": null}, "macro.fivetran_utils.redshift__try_cast": {"unique_id": "macro.fivetran_utils.redshift__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "redshift__try_cast", "macro_sql": "{% macro redshift__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when trim({{field}}) ~ '^(0|[1-9][0-9]*)$' then trim({{field}})\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.18448, "supported_languages": null}, "macro.fivetran_utils.postgres__try_cast": {"unique_id": "macro.fivetran_utils.postgres__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "postgres__try_cast", "macro_sql": "{% macro postgres__try_cast(field, type) %}\n{%- if type == 'numeric' -%}\n\n case\n when replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar)) ~ '^(0|[1-9][0-9]*)$' \n then replace(cast({{field}} as varchar),cast(' ' as varchar),cast('' as varchar))\n else null\n end::{{type}}\n\n{% else %}\n {{ exceptions.raise_compiler_error(\n \"non-numeric datatypes are not currently supported\") }}\n\n{% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.184754, "supported_languages": null}, "macro.fivetran_utils.snowflake__try_cast": {"unique_id": "macro.fivetran_utils.snowflake__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "snowflake__try_cast", "macro_sql": "{% macro snowflake__try_cast(field, type) %}\n try_cast(cast({{field}} as varchar) as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.184882, "supported_languages": null}, "macro.fivetran_utils.bigquery__try_cast": {"unique_id": "macro.fivetran_utils.bigquery__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "bigquery__try_cast", "macro_sql": "{% macro bigquery__try_cast(field, type) %}\n safe_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.185002, "supported_languages": null}, "macro.fivetran_utils.spark__try_cast": {"unique_id": "macro.fivetran_utils.spark__try_cast", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/try_cast.sql", "original_file_path": "macros/try_cast.sql", "name": "spark__try_cast", "macro_sql": "{% macro spark__try_cast(field, type) %}\n try_cast({{field}} as {{type}})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.185121, "supported_languages": null}, "macro.fivetran_utils.source_relation": {"unique_id": "macro.fivetran_utils.source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "source_relation", "macro_sql": "{% macro source_relation(union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('source_relation', 'fivetran_utils') (union_schema_variable, union_database_variable) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__source_relation"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.185649, "supported_languages": null}, "macro.fivetran_utils.default__source_relation": {"unique_id": "macro.fivetran_utils.default__source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/source_relation.sql", "original_file_path": "macros/source_relation.sql", "name": "default__source_relation", "macro_sql": "{% macro default__source_relation(union_schema_variable, union_database_variable) %}\n\n{% if var(union_schema_variable, none) %}\n, case\n {% for schema in var(union_schema_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%.{{ schema|lower }}.%' then '{{ schema|lower }}'\n {% endfor %}\n end as source_relation\n{% elif var(union_database_variable, none) %}\n, case\n {% for database in var(union_database_variable) %}\n when lower(replace(replace(_dbt_source_relation,'\"',''),'`','')) like '%{{ database|lower }}.%' then '{{ database|lower }}'\n {% endfor %}\n end as source_relation\n{% else %}\n, cast('' as {{ dbt.type_string() }}) as source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1862059, "supported_languages": null}, "macro.fivetran_utils.first_value": {"unique_id": "macro.fivetran_utils.first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "first_value", "macro_sql": "{% macro first_value(first_value_field, partition_field, order_by_field, order=\"asc\") -%}\n\n{{ adapter.dispatch('first_value', 'fivetran_utils') (first_value_field, partition_field, order_by_field, order) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__first_value"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1867452, "supported_languages": null}, "macro.fivetran_utils.default__first_value": {"unique_id": "macro.fivetran_utils.default__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "default__first_value", "macro_sql": "{% macro default__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1869388, "supported_languages": null}, "macro.fivetran_utils.redshift__first_value": {"unique_id": "macro.fivetran_utils.redshift__first_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/first_value.sql", "original_file_path": "macros/first_value.sql", "name": "redshift__first_value", "macro_sql": "{% macro redshift__first_value(first_value_field, partition_field, order_by_field, order=\"asc\") %}\n\n first_value( {{ first_value_field }} ignore nulls ) over (partition by {{ partition_field }} order by {{ order_by_field }} {{ order }} , {{ partition_field }} rows unbounded preceding )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1871538, "supported_languages": null}, "macro.fivetran_utils.add_dbt_source_relation": {"unique_id": "macro.fivetran_utils.add_dbt_source_relation", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_dbt_source_relation.sql", "original_file_path": "macros/add_dbt_source_relation.sql", "name": "add_dbt_source_relation", "macro_sql": "{% macro add_dbt_source_relation() %}\n\n{% if var('union_schemas', none) or var('union_databases', none) %}\n, _dbt_source_relation\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.187475, "supported_languages": null}, "macro.fivetran_utils.add_pass_through_columns": {"unique_id": "macro.fivetran_utils.add_pass_through_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/add_pass_through_columns.sql", "original_file_path": "macros/add_pass_through_columns.sql", "name": "add_pass_through_columns", "macro_sql": "{% macro add_pass_through_columns(base_columns, pass_through_var) %}\n\n {% if pass_through_var %}\n\n {% for column in pass_through_var %}\n\n {% if column is mapping %}\n\n {% if column.alias %}\n\n {% do base_columns.append({ \"name\": column.name, \"alias\": column.alias, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column.name, \"datatype\": column.datatype if column.datatype else dbt.type_string()}) %}\n \n {% endif %}\n\n {% else %}\n\n {% do base_columns.append({ \"name\": column, \"datatype\": dbt.type_string()}) %}\n\n {% endif %}\n\n {% endfor %}\n\n {% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.188595, "supported_languages": null}, "macro.fivetran_utils.union_relations": {"unique_id": "macro.fivetran_utils.union_relations", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_relations", "macro_sql": "{%- macro union_relations(relations, aliases=none, column_override=none, include=[], exclude=[], source_column_name=none) -%}\n\n {%- if exclude and include -%}\n {{ exceptions.raise_compiler_error(\"Both an exclude and include list were provided to the `union` macro. Only one is allowed\") }}\n {%- endif -%}\n\n {#-- Prevent querying of db in parsing mode. This works because this macro does not create any new refs. -#}\n {%- if not execute %}\n {{ return('') }}\n {% endif -%}\n\n {%- set column_override = column_override if column_override is not none else {} -%}\n {%- set source_column_name = source_column_name if source_column_name is not none else '_dbt_source_relation' -%}\n\n {%- set relation_columns = {} -%}\n {%- set column_superset = {} -%}\n\n {%- for relation in relations -%}\n\n {%- do relation_columns.update({relation: []}) -%}\n\n {%- do dbt_utils._is_relation(relation, 'union_relations') -%}\n {%- set cols = adapter.get_columns_in_relation(relation) -%}\n {%- for col in cols -%}\n\n {#- If an exclude list was provided and the column is in the list, do nothing -#}\n {%- if exclude and col.column in exclude -%}\n\n {#- If an include list was provided and the column is not in the list, do nothing -#}\n {%- elif include and col.column not in include -%}\n\n {#- Otherwise add the column to the column superset -#}\n {%- else -%}\n\n {#- update the list of columns in this relation -#}\n {%- do relation_columns[relation].append(col.column) -%}\n\n {%- if col.column in column_superset -%}\n\n {%- set stored = column_superset[col.column] -%}\n {%- if col.is_string() and stored.is_string() and col.string_size() > stored.string_size() -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif %}\n\n {%- else -%}\n\n {%- do column_superset.update({col.column: col}) -%}\n\n {%- endif -%}\n\n {%- endif -%}\n\n {%- endfor -%}\n {%- endfor -%}\n\n {%- set ordered_column_names = column_superset.keys() -%}\n\n {%- for relation in relations %}\n\n (\n select\n\n cast({{ dbt.string_literal(relation) }} as {{ dbt.type_string() }}) as {{ source_column_name }},\n {% for col_name in ordered_column_names -%}\n\n {%- set col = column_superset[col_name] %}\n {%- set col_type = column_override.get(col.column, col.data_type) %}\n {%- set col_name = adapter.quote(col_name) if col_name in relation_columns[relation] else 'null' %}\n cast({{ col_name }} as {{ col_type }}) as {{ col.quoted }} {% if not loop.last %},{% endif -%}\n\n {%- endfor %}\n\n from {{ aliases[loop.index0] if aliases else relation }}\n )\n\n {% if not loop.last -%}\n union all\n {% endif -%}\n\n {%- endfor -%}\n\n{%- endmacro -%}\n\n", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils._is_relation", "macro.dbt.string_literal", "macro.dbt.type_string"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1924942, "supported_languages": null}, "macro.fivetran_utils.union_tables": {"unique_id": "macro.fivetran_utils.union_tables", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_relations.sql", "original_file_path": "macros/union_relations.sql", "name": "union_tables", "macro_sql": "{%- macro union_tables(tables, column_override=none, include=[], exclude=[], source_column_name='_dbt_source_table') -%}\n\n {%- do exceptions.warn(\"Warning: the `union_tables` macro is no longer supported and will be deprecated in a future release of dbt-utils. Use the `union_relations` macro instead\") -%}\n\n {{ return(dbt_utils.union_relations(tables, column_override, include, exclude, source_column_name)) }}\n\n{%- endmacro -%}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.192848, "supported_languages": null}, "macro.fivetran_utils.snowflake_seed_data": {"unique_id": "macro.fivetran_utils.snowflake_seed_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/snowflake_seed_data.sql", "original_file_path": "macros/snowflake_seed_data.sql", "name": "snowflake_seed_data", "macro_sql": "{% macro snowflake_seed_data(seed_name) %}\n\n{% if target.type == 'snowflake' %}\n{{ return(ref(seed_name ~ '_snowflake')) }}\n{% else %}\n{{ return(ref(seed_name)) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.193284, "supported_languages": null}, "macro.fivetran_utils.fill_staging_columns": {"unique_id": "macro.fivetran_utils.fill_staging_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "fill_staging_columns", "macro_sql": "{% macro fill_staging_columns(source_columns, staging_columns) -%}\n\n{%- set source_column_names = source_columns|map(attribute='name')|map('lower')|list -%}\n\n{%- for column in staging_columns %}\n {% if column.name|lower in source_column_names -%}\n {{ fivetran_utils.quote_column(column) }} as \n {%- if 'alias' in column %} {{ column.alias }} {% else %} {{ fivetran_utils.quote_column(column) }} {%- endif -%}\n {%- else -%}\n cast(null as {{ column.datatype }})\n {%- if 'alias' in column %} as {{ column.alias }} {% else %} as {{ fivetran_utils.quote_column(column) }} {% endif -%}\n {%- endif -%}\n {%- if not loop.last -%} , {% endif -%}\n{% endfor %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.quote_column"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1948318, "supported_languages": null}, "macro.fivetran_utils.quote_column": {"unique_id": "macro.fivetran_utils.quote_column", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/fill_staging_columns.sql", "original_file_path": "macros/fill_staging_columns.sql", "name": "quote_column", "macro_sql": "{% macro quote_column(column) %}\n {% if 'quote' in column %}\n {% if column.quote %}\n {% if target.type in ('bigquery', 'spark') %}\n `{{ column.name }}`\n {% elif target.type == 'snowflake' %}\n \"{{ column.name | upper }}\"\n {% else %}\n \"{{ column.name }}\"\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n {% else %}\n {{ column.name }}\n {% endif %}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1953669, "supported_languages": null}, "macro.fivetran_utils.json_extract": {"unique_id": "macro.fivetran_utils.json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "json_extract", "macro_sql": "{% macro json_extract(string, string_path) -%}\n\n{{ adapter.dispatch('json_extract', 'fivetran_utils') (string, string_path) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__json_extract"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.195971, "supported_languages": null}, "macro.fivetran_utils.default__json_extract": {"unique_id": "macro.fivetran_utils.default__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "default__json_extract", "macro_sql": "{% macro default__json_extract(string, string_path) %}\n\n json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} )\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.196126, "supported_languages": null}, "macro.fivetran_utils.snowflake__json_extract": {"unique_id": "macro.fivetran_utils.snowflake__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "snowflake__json_extract", "macro_sql": "{% macro snowflake__json_extract(string, string_path) %}\n\n json_extract_path_text(try_parse_json( {{string}} ), {{ \"'\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.196277, "supported_languages": null}, "macro.fivetran_utils.redshift__json_extract": {"unique_id": "macro.fivetran_utils.redshift__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "redshift__json_extract", "macro_sql": "{% macro redshift__json_extract(string, string_path) %}\n\n case when is_valid_json( {{string}} ) then json_extract_path_text({{string}}, {{ \"'\" ~ string_path ~ \"'\" }} ) else null end\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.196445, "supported_languages": null}, "macro.fivetran_utils.bigquery__json_extract": {"unique_id": "macro.fivetran_utils.bigquery__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "bigquery__json_extract", "macro_sql": "{% macro bigquery__json_extract(string, string_path) %}\n\n json_extract_scalar({{string}}, {{ \"'$.\" ~ string_path ~ \"'\" }} )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.196588, "supported_languages": null}, "macro.fivetran_utils.postgres__json_extract": {"unique_id": "macro.fivetran_utils.postgres__json_extract", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/json_extract.sql", "original_file_path": "macros/json_extract.sql", "name": "postgres__json_extract", "macro_sql": "{% macro postgres__json_extract(string, string_path) %}\n\n {{string}}::json->>{{\"'\" ~ string_path ~ \"'\" }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.196728, "supported_languages": null}, "macro.fivetran_utils.collect_freshness": {"unique_id": "macro.fivetran_utils.collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "collect_freshness", "macro_sql": "{% macro collect_freshness(source, loaded_at_field, filter) %}\n {{ return(adapter.dispatch('collect_freshness')(source, loaded_at_field, filter))}}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__collect_freshness"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.197454, "supported_languages": null}, "macro.fivetran_utils.default__collect_freshness": {"unique_id": "macro.fivetran_utils.default__collect_freshness", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/collect_freshness.sql", "original_file_path": "macros/collect_freshness.sql", "name": "default__collect_freshness", "macro_sql": "{% macro default__collect_freshness(source, loaded_at_field, filter) %}\n {% call statement('collect_freshness', fetch_result=True, auto_begin=False) -%}\n\n {%- set enabled_array = [] -%}\n {% for node in graph.sources.values() %}\n {% if node.identifier == source.identifier %}\n {% if (node.meta['is_enabled'] | default(true)) %}\n {%- do enabled_array.append(1) -%}\n {% endif %}\n {% endif %}\n {% endfor %}\n {% set is_enabled = (enabled_array != []) %}\n\n select\n {% if is_enabled %}\n max({{ loaded_at_field }})\n {% else %} \n {{ current_timestamp() }} {% endif %} as max_loaded_at,\n {{ current_timestamp() }} as snapshotted_at\n\n {% if is_enabled %}\n from {{ source }}\n {% if filter %}\n where {{ filter }}\n {% endif %}\n {% endif %}\n\n {% endcall %}\n {{ return(load_result('collect_freshness').table) }}\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.statement", "macro.dbt.current_timestamp"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.19841, "supported_languages": null}, "macro.fivetran_utils.timestamp_add": {"unique_id": "macro.fivetran_utils.timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "timestamp_add", "macro_sql": "{% macro timestamp_add(datepart, interval, from_timestamp) -%}\n\n{{ adapter.dispatch('timestamp_add', 'fivetran_utils') (datepart, interval, from_timestamp) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.postgres__timestamp_add"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.199135, "supported_languages": null}, "macro.fivetran_utils.default__timestamp_add": {"unique_id": "macro.fivetran_utils.default__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "default__timestamp_add", "macro_sql": "{% macro default__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestampadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1992939, "supported_languages": null}, "macro.fivetran_utils.bigquery__timestamp_add": {"unique_id": "macro.fivetran_utils.bigquery__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "bigquery__timestamp_add", "macro_sql": "{% macro bigquery__timestamp_add(datepart, interval, from_timestamp) %}\n\n timestamp_add({{ from_timestamp }}, interval {{ interval }} {{ datepart }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.19945, "supported_languages": null}, "macro.fivetran_utils.redshift__timestamp_add": {"unique_id": "macro.fivetran_utils.redshift__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "redshift__timestamp_add", "macro_sql": "{% macro redshift__timestamp_add(datepart, interval, from_timestamp) %}\n\n dateadd(\n {{ datepart }},\n {{ interval }},\n {{ from_timestamp }}\n )\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.199601, "supported_languages": null}, "macro.fivetran_utils.postgres__timestamp_add": {"unique_id": "macro.fivetran_utils.postgres__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "postgres__timestamp_add", "macro_sql": "{% macro postgres__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ from_timestamp }} + ((interval '1 {{ datepart }}') * ({{ interval }}))\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.199753, "supported_languages": null}, "macro.fivetran_utils.spark__timestamp_add": {"unique_id": "macro.fivetran_utils.spark__timestamp_add", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/timestamp_add.sql", "original_file_path": "macros/timestamp_add.sql", "name": "spark__timestamp_add", "macro_sql": "{% macro spark__timestamp_add(datepart, interval, from_timestamp) %}\n\n {{ dbt.dateadd(datepart, interval, from_timestamp) }}\n \n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt.dateadd"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.1999218, "supported_languages": null}, "macro.fivetran_utils.ceiling": {"unique_id": "macro.fivetran_utils.ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "ceiling", "macro_sql": "{% macro ceiling(num) -%}\n\n{{ adapter.dispatch('ceiling', 'fivetran_utils') (num) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__ceiling"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.200238, "supported_languages": null}, "macro.fivetran_utils.default__ceiling": {"unique_id": "macro.fivetran_utils.default__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "default__ceiling", "macro_sql": "{% macro default__ceiling(num) %}\n ceiling({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.2003388, "supported_languages": null}, "macro.fivetran_utils.snowflake__ceiling": {"unique_id": "macro.fivetran_utils.snowflake__ceiling", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/ceiling.sql", "original_file_path": "macros/ceiling.sql", "name": "snowflake__ceiling", "macro_sql": "{% macro snowflake__ceiling(num) %}\n ceil({{ num }})\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.2005, "supported_languages": null}, "macro.fivetran_utils.remove_prefix_from_columns": {"unique_id": "macro.fivetran_utils.remove_prefix_from_columns", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/remove_prefix_from_columns.sql", "original_file_path": "macros/remove_prefix_from_columns.sql", "name": "remove_prefix_from_columns", "macro_sql": "{% macro remove_prefix_from_columns(columns, prefix='', exclude=[]) %}\n\n {%- for col in columns if col.name not in exclude -%}\n {%- if col.name[:prefix|length]|lower == prefix -%}\n {{ col.name }} as {{ col.name[prefix|length:] }}\n {%- else -%}\n {{ col.name }}\n {%- endif -%}\n {%- if not loop.last -%},{%- endif %}\n {% endfor -%}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.201178, "supported_languages": null}, "macro.fivetran_utils.union_data": {"unique_id": "macro.fivetran_utils.union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "union_data", "macro_sql": "{% macro union_data(table_identifier, database_variable, schema_variable, default_database, default_schema, default_variable, union_schema_variable='union_schemas', union_database_variable='union_databases') -%}\n\n{{ adapter.dispatch('union_data', 'fivetran_utils') (\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__union_data"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.202539, "supported_languages": null}, "macro.fivetran_utils.default__union_data": {"unique_id": "macro.fivetran_utils.default__union_data", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/union_data.sql", "original_file_path": "macros/union_data.sql", "name": "default__union_data", "macro_sql": "{% macro default__union_data(\n table_identifier, \n database_variable, \n schema_variable, \n default_database, \n default_schema, \n default_variable,\n union_schema_variable,\n union_database_variable\n ) %}\n\n{% if var(union_schema_variable, none) %}\n\n {% set relations = [] %}\n \n {% if var(union_schema_variable) is string %}\n {% set trimmed = var(union_schema_variable)|trim('[')|trim(']') %}\n {% set schemas = trimmed.split(',')|map('trim',\" \")|map('trim','\"')|map('trim',\"'\") %}\n {% else %}\n {% set schemas = var(union_schema_variable) %}\n {% endif %}\n\n {% for schema in var(union_schema_variable) %}\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else var(database_variable, default_database),\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else schema,\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n \n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% elif var(union_database_variable, none) %}\n\n {% set relations = [] %}\n\n {% for database in var(union_database_variable) %}\n\n {% set relation=adapter.get_relation(\n database=source(schema, table_identifier).database if var('has_defined_sources', false) else database,\n schema=source(schema, table_identifier).schema if var('has_defined_sources', false) else var(schema_variable, default_schema),\n identifier=source(schema, table_identifier).identifier if var('has_defined_sources', false) else table_identifier\n ) -%}\n\n {% set relation_exists=relation is not none %}\n\n {% if relation_exists %}\n\n {% do relations.append(relation) %}\n \n {% endif %}\n\n {% endfor %}\n\n {{ dbt_utils.union_relations(relations) }}\n\n{% else %}\n\n select * \n from {{ var(default_variable) }}\n\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.dbt_utils.union_relations"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.20484, "supported_languages": null}, "macro.fivetran_utils.dummy_coalesce_value": {"unique_id": "macro.fivetran_utils.dummy_coalesce_value", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/dummy_coalesce_value.sql", "original_file_path": "macros/dummy_coalesce_value.sql", "name": "dummy_coalesce_value", "macro_sql": "{% macro dummy_coalesce_value(column) %}\n\n{% set coalesce_value = {\n 'STRING': \"'DUMMY_STRING'\",\n 'BOOLEAN': 'null',\n 'INT': 999999999,\n 'FLOAT': 999999999.99,\n 'TIMESTAMP': 'cast(\"2099-12-31\" as timestamp)',\n 'DATE': 'cast(\"2099-12-31\" as date)',\n} %}\n\n{% if column.is_float() %}\n{{ return(coalesce_value['FLOAT']) }}\n\n{% elif column.is_numeric() %}\n{{ return(coalesce_value['INT']) }}\n\n{% elif column.is_string() %}\n{{ return(coalesce_value['STRING']) }}\n\n{% elif column.data_type|lower == 'boolean' %}\n{{ return(coalesce_value['BOOLEAN']) }}\n\n{% elif 'timestamp' in column.data_type|lower %}\n{{ return(coalesce_value['TIMESTAMP']) }}\n\n{% elif 'date' in column.data_type|lower %}\n{{ return(coalesce_value['DATE']) }}\n\n{% elif 'int' in column.data_type|lower %}\n{{ return(coalesce_value['INT']) }}\n\n{% endif %}\n\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.206252, "supported_languages": null}, "macro.fivetran_utils.array_agg": {"unique_id": "macro.fivetran_utils.array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "array_agg", "macro_sql": "{% macro array_agg(field_to_agg) -%}\n\n{{ adapter.dispatch('array_agg', 'fivetran_utils') (field_to_agg) }}\n\n{%- endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": ["macro.fivetran_utils.default__array_agg"]}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.2065878, "supported_languages": null}, "macro.fivetran_utils.default__array_agg": {"unique_id": "macro.fivetran_utils.default__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "default__array_agg", "macro_sql": "{% macro default__array_agg(field_to_agg) %}\n array_agg({{ field_to_agg }})\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.206687, "supported_languages": null}, "macro.fivetran_utils.redshift__array_agg": {"unique_id": "macro.fivetran_utils.redshift__array_agg", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/array_agg.sql", "original_file_path": "macros/array_agg.sql", "name": "redshift__array_agg", "macro_sql": "{% macro redshift__array_agg(field_to_agg) %}\n listagg({{ field_to_agg }}, ',')\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.206788, "supported_languages": null}, "macro.fivetran_utils.empty_variable_warning": {"unique_id": "macro.fivetran_utils.empty_variable_warning", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/empty_variable_warning.sql", "original_file_path": "macros/empty_variable_warning.sql", "name": "empty_variable_warning", "macro_sql": "{% macro empty_variable_warning(variable, downstream_model) %}\n\n{% if not var(variable) %}\n{{ log(\n \"\"\"\n Warning: You have passed an empty list to the \"\"\" ~ variable ~ \"\"\".\n As a result, you won't see the history of any columns in the \"\"\" ~ downstream_model ~ \"\"\" model.\n \"\"\",\n info=True\n) }}\n{% endif %}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.2072399, "supported_languages": null}, "macro.fivetran_utils.enabled_vars_one_true": {"unique_id": "macro.fivetran_utils.enabled_vars_one_true", "package_name": "fivetran_utils", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/fivetran_utils", "path": "macros/enabled_vars_one_true.sql", "original_file_path": "macros/enabled_vars_one_true.sql", "name": "enabled_vars_one_true", "macro_sql": "{% macro enabled_vars_one_true(vars) %}\n\n{% for v in vars %}\n \n {% if var(v, False) == True %}\n {{ return(True) }}\n {% endif %}\n\n{% endfor %}\n\n{{ return(False) }}\n\n{% endmacro %}", "resource_type": "macro", "tags": [], "depends_on": {"macros": []}, "description": "", "meta": {}, "docs": {"show": true, "node_color": null}, "patch_path": null, "arguments": [], "created_at": 1671466639.207686, "supported_languages": null}}, "docs": {"dbt.__overview__": {"unique_id": "dbt.__overview__", "package_name": "dbt", "root_path": "/opt/homebrew/Cellar/dbt-postgres/1.3.0/libexec/lib/python3.9/site-packages/dbt/include/global_project", "path": "overview.md", "original_file_path": "docs/overview.md", "name": "__overview__", "block_contents": "### Welcome!\n\nWelcome to the auto-generated documentation for your dbt project!\n\n### Navigation\n\nYou can use the `Project` and `Database` navigation tabs on the left side of the window to explore the models\nin your project.\n\n#### Project Tab\nThe `Project` tab mirrors the directory structure of your dbt project. In this tab, you can see all of the\nmodels defined in your dbt project, as well as models imported from dbt packages.\n\n#### Database Tab\nThe `Database` tab also exposes your models, but in a format that looks more like a database explorer. This view\nshows relations (tables and views) grouped into database schemas. Note that ephemeral models are _not_ shown\nin this interface, as they do not exist in the database.\n\n### Graph Exploration\nYou can click the blue icon on the bottom-right corner of the page to view the lineage graph of your models.\n\nOn model pages, you'll see the immediate parents and children of the model you're exploring. By clicking the `Expand`\nbutton at the top-right of this lineage pane, you'll be able to see all of the models that are used to build,\nor are built from, the model you're exploring.\n\nOnce expanded, you'll be able to use the `--select` and `--exclude` model selection syntax to filter the\nmodels in the graph. For more information on model selection, check out the [dbt docs](https://docs.getdbt.com/docs/model-selection-syntax).\n\nNote that you can also right-click on models to interactively filter and explore the graph.\n\n---\n\n### More information\n\n- [What is dbt](https://docs.getdbt.com/docs/introduction)?\n- Read the [dbt viewpoint](https://docs.getdbt.com/docs/viewpoint)\n- [Installation](https://docs.getdbt.com/docs/installation)\n- Join the [dbt Community](https://www.getdbt.com/community/) for questions and discussion"}, "netsuite_source.account_periods_table": {"unique_id": "netsuite_source.account_periods_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_periods_table", "block_contents": "Table detailing all accounting periods, including monthly, quarterly and yearly."}, "netsuite_source.accounting_books_table": {"unique_id": "netsuite_source.accounting_books_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_books_table", "block_contents": "Table detailing all accounting books set up in Netsuite."}, "netsuite_source.accounts_table": {"unique_id": "netsuite_source.accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounts_table", "block_contents": "Table detailing all accounts set up in Netsuite."}, "netsuite_source.classes_table": {"unique_id": "netsuite_source.classes_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "classes_table", "block_contents": "Table detailing all classes set up in Netsuite."}, "netsuite_source.consolidated_exchange_rates_table": {"unique_id": "netsuite_source.consolidated_exchange_rates_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "consolidated_exchange_rates_table", "block_contents": "Table detailing average, historical and current exchange rates for all accounting periods."}, "netsuite_source.customers_table": {"unique_id": "netsuite_source.customers_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customers_table", "block_contents": "Table detailing all customer information."}, "netsuite_source.currencies_table": {"unique_id": "netsuite_source.currencies_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currencies_table", "block_contents": "Table detailing all currency information."}, "netsuite_source.departments_table": {"unique_id": "netsuite_source.departments_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "departments_table", "block_contents": "Table detailing all departments set up in Netsuite."}, "netsuite_source.expense_accounts_table": {"unique_id": "netsuite_source.expense_accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "expense_accounts_table", "block_contents": "Table detailing all expense accounts."}, "netsuite_source.income_accounts_table": {"unique_id": "netsuite_source.income_accounts_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "income_accounts_table", "block_contents": "Table detailing all income accounts."}, "netsuite_source.items_table": {"unique_id": "netsuite_source.items_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "items_table", "block_contents": "Table detailing information about the items created in Netsuite."}, "netsuite_source.locations_table": {"unique_id": "netsuite_source.locations_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "locations_table", "block_contents": "Table detailing all locations, including store, warehouse and office locations."}, "netsuite_source.subsidiaries_table": {"unique_id": "netsuite_source.subsidiaries_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "subsidiaries_table", "block_contents": "Table detailing all subsidiaries."}, "netsuite_source.transaction_lines_table": {"unique_id": "netsuite_source.transaction_lines_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "netsuite_source.transaction_table": {"unique_id": "netsuite_source.transaction_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_table", "block_contents": "A table detailing all transactions."}, "netsuite_source.vendor_types_table": {"unique_id": "netsuite_source.vendor_types_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_types_table", "block_contents": "A table detailing all the various types of vendors."}, "netsuite_source.vendor_table": {"unique_id": "netsuite_source.vendor_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_table", "block_contents": "A table detailing all vendor information."}, "netsuite_source.entities_table": {"unique_id": "netsuite_source.entities_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entities_table", "block_contents": "Table detailing all entities in Netsuite."}, "netsuite_source.jobs_table": {"unique_id": "netsuite_source.jobs_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "jobs_table", "block_contents": "Table detailing all jobs."}, "netsuite_source.transaction_accounting_lines_table": {"unique_id": "netsuite_source.transaction_accounting_lines_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_accounting_lines_table", "block_contents": "A table detailing all transaction lines for all transactions."}, "netsuite_source.vendor_categories_table": {"unique_id": "netsuite_source.vendor_categories_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_categories_table", "block_contents": "A table containing categories and how they map to vendors."}, "netsuite_source.accounting_book_subsidiaries_table": {"unique_id": "netsuite_source.accounting_book_subsidiaries_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_book_subsidiaries_table", "block_contents": "A table containing the various account books and the respective subsidiaries."}, "netsuite_source.accounting_period_fiscal_calendars_table": {"unique_id": "netsuite_source.accounting_period_fiscal_calendars_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_period_fiscal_calendars_table", "block_contents": "A table containing the accounting fiscal calendar periods."}, "netsuite_source.account_types_table": {"unique_id": "netsuite_source.account_types_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_types_table", "block_contents": "A table containing the various account types within Netsuite."}, "netsuite_source.entity_address_table": {"unique_id": "netsuite_source.entity_address_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entity_address_table", "block_contents": "A table containing addresses and the various entities which they map."}, "netsuite_source.location_main_address_table": {"unique_id": "netsuite_source.location_main_address_table", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "location_main_address_table", "block_contents": "A table containing the location main addresses."}, "netsuite_source._fivetran_id": {"unique_id": "netsuite_source._fivetran_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_id", "block_contents": "Unique ID used by Fivetran to sync and dedupe data."}, "netsuite_source._fivetran_synced": {"unique_id": "netsuite_source._fivetran_synced", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_synced", "block_contents": "Timestamp of when a record was last synced."}, "netsuite_source._fivetran_deleted": {"unique_id": "netsuite_source._fivetran_deleted", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "_fivetran_deleted", "block_contents": "Timestamp of when a record was deleted."}, "netsuite_source.vendor_id": {"unique_id": "netsuite_source.vendor_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_id", "block_contents": "The unique identifier of the vendor."}, "netsuite_source.company_name": {"unique_id": "netsuite_source.company_name", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "company_name", "block_contents": "Name of the company."}, "netsuite_source.create_date_at": {"unique_id": "netsuite_source.create_date_at", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "create_date_at", "block_contents": "Timestamp of the record creation."}, "netsuite_source.vendor_category_id": {"unique_id": "netsuite_source.vendor_category_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "vendor_category_id", "block_contents": "Unique identifier of the vendor category."}, "netsuite_source.accounting_period_id": {"unique_id": "netsuite_source.accounting_period_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_period_id", "block_contents": "The accounting period id of the accounting period which the transaction took place in."}, "netsuite_source.created_at": {"unique_id": "netsuite_source.created_at", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "created_at", "block_contents": "Timestamp of when the record was created."}, "netsuite_source.currency_id": {"unique_id": "netsuite_source.currency_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "currency_id", "block_contents": "The currency id of the currency used within the record."}, "netsuite_source.entity_id": {"unique_id": "netsuite_source.entity_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "entity_id", "block_contents": "The entity id of the entity used for the record."}, "netsuite_source.transaction_id": {"unique_id": "netsuite_source.transaction_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "transaction_id", "block_contents": "The transaction id of referenced for the record."}, "netsuite_source.department_id": {"unique_id": "netsuite_source.department_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "department_id", "block_contents": "The unique identifier of the department used for the record."}, "netsuite_source.subsidiary_id": {"unique_id": "netsuite_source.subsidiary_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "subsidiary_id", "block_contents": "The unique identifier of the subsidiary used for the record."}, "netsuite_source.location_id": {"unique_id": "netsuite_source.location_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "location_id", "block_contents": "The unique identifier of the location used for the record."}, "netsuite_source.class_id": {"unique_id": "netsuite_source.class_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "class_id", "block_contents": "The unique identifier of the class used for the record."}, "netsuite_source.item_id": {"unique_id": "netsuite_source.item_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "item_id", "block_contents": "The unique identifier of the item used within the record."}, "netsuite_source.fiscal_calendar_id": {"unique_id": "netsuite_source.fiscal_calendar_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "fiscal_calendar_id", "block_contents": "Reference to the fiscal calendar used for the record."}, "netsuite_source.main_address_id": {"unique_id": "netsuite_source.main_address_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "main_address_id", "block_contents": "Reference to the main address used for the record."}, "netsuite_source.addr1": {"unique_id": "netsuite_source.addr1", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr1", "block_contents": "The associated address 1."}, "netsuite_source.addr2": {"unique_id": "netsuite_source.addr2", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr2", "block_contents": "The associated address 2."}, "netsuite_source.addr3": {"unique_id": "netsuite_source.addr3", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addr3", "block_contents": "The associated address 3."}, "netsuite_source.addressee": {"unique_id": "netsuite_source.addressee", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "addressee", "block_contents": "The individual associated with the address"}, "netsuite_source.full_address": {"unique_id": "netsuite_source.full_address", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "full_address", "block_contents": "The full address associated."}, "netsuite_source.city": {"unique_id": "netsuite_source.city", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "city", "block_contents": "The associated city."}, "netsuite_source.country": {"unique_id": "netsuite_source.country", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "country", "block_contents": "The associated country."}, "netsuite_source.state": {"unique_id": "netsuite_source.state", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "state", "block_contents": "The associated state."}, "netsuite_source.nkey": {"unique_id": "netsuite_source.nkey", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "nkey", "block_contents": "The associated Netsuite key."}, "netsuite_source.zipcode": {"unique_id": "netsuite_source.zipcode", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "zipcode", "block_contents": "The associated zipcode."}, "netsuite_source.customer_id": {"unique_id": "netsuite_source.customer_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "customer_id", "block_contents": "Unique identifier of the customer."}, "netsuite_source.accounting_book_id": {"unique_id": "netsuite_source.accounting_book_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "accounting_book_id", "block_contents": "Unique identifier of the accounting book."}, "netsuite_source.account_type_id": {"unique_id": "netsuite_source.account_type_id", "package_name": "netsuite_source", "root_path": "/Users/joseph.markiewicz/Documents/dbt_packages/netsuite/dbt_netsuite_source/integration_tests/dbt_packages/netsuite_source", "path": "docs.md", "original_file_path": "models/docs.md", "name": "account_type_id", "block_contents": "Unique identifier of thea account type."}}, "exposures": {}, "metrics": {}, "selectors": {}, "disabled": {}, "parent_map": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": [], "seed.netsuite_source_integration_tests.netsuite_vendors_data": [], "seed.netsuite_source_integration_tests.netsuite2_classification_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_source_integration_tests.netsuite2_entities_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_source_integration_tests.netsuite_customers_data": [], "seed.netsuite_source_integration_tests.netsuite_locations_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_data": [], "seed.netsuite_source_integration_tests.netsuite_items_data": [], "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_source_integration_tests.netsuite_classes_data": [], "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_source_integration_tests.netsuite_departments_data": [], "seed.netsuite_source_integration_tests.netsuite2_customer_data": [], "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_department_data": [], "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite_currencies_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_source_integration_tests.netsuite_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_source_integration_tests.netsuite2_job_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_data": [], "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_source_integration_tests.netsuite2_item_data": [], "seed.netsuite_source_integration_tests.netsuite_transactions_data": [], "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["model.netsuite_source.stg_netsuite2__transactions_tmp", "model.netsuite_source.stg_netsuite2__transactions_tmp"], "model.netsuite_source.stg_netsuite2__jobs": ["model.netsuite_source.stg_netsuite2__jobs_tmp", "model.netsuite_source.stg_netsuite2__jobs_tmp"], "model.netsuite_source.stg_netsuite2__vendors": ["model.netsuite_source.stg_netsuite2__vendors_tmp", "model.netsuite_source.stg_netsuite2__vendors_tmp"], "model.netsuite_source.stg_netsuite2__classes": ["model.netsuite_source.stg_netsuite2__classes_tmp", "model.netsuite_source.stg_netsuite2__classes_tmp"], "model.netsuite_source.stg_netsuite2__account_types": ["model.netsuite_source.stg_netsuite2__account_types_tmp", "model.netsuite_source.stg_netsuite2__account_types_tmp"], "model.netsuite_source.stg_netsuite2__entities": ["model.netsuite_source.stg_netsuite2__entities_tmp", "model.netsuite_source.stg_netsuite2__entities_tmp"], "model.netsuite_source.stg_netsuite2__accounting_periods": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp", "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"], "model.netsuite_source.stg_netsuite2__customers": ["model.netsuite_source.stg_netsuite2__customers_tmp", "model.netsuite_source.stg_netsuite2__customers_tmp"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"], "model.netsuite_source.stg_netsuite2__accounts": ["model.netsuite_source.stg_netsuite2__accounts_tmp", "model.netsuite_source.stg_netsuite2__accounts_tmp"], "model.netsuite_source.stg_netsuite2__transaction_lines": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"], "model.netsuite_source.stg_netsuite2__subsidiaries": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp", "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"], "model.netsuite_source.stg_netsuite2__entity_address": ["model.netsuite_source.stg_netsuite2__entity_address_tmp", "model.netsuite_source.stg_netsuite2__entity_address_tmp"], "model.netsuite_source.stg_netsuite2__location_main_address": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp", "model.netsuite_source.stg_netsuite2__location_main_address_tmp"], "model.netsuite_source.stg_netsuite2__vendor_categories": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp", "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"], "model.netsuite_source.stg_netsuite2__departments": ["model.netsuite_source.stg_netsuite2__departments_tmp", "model.netsuite_source.stg_netsuite2__departments_tmp"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"], "model.netsuite_source.stg_netsuite2__accounting_books": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp", "model.netsuite_source.stg_netsuite2__accounting_books_tmp"], "model.netsuite_source.stg_netsuite2__items": ["model.netsuite_source.stg_netsuite2__items_tmp", "model.netsuite_source.stg_netsuite2__items_tmp"], "model.netsuite_source.stg_netsuite2__currencies": ["model.netsuite_source.stg_netsuite2__currencies_tmp", "model.netsuite_source.stg_netsuite2__currencies_tmp"], "model.netsuite_source.stg_netsuite2__locations": ["model.netsuite_source.stg_netsuite2__locations_tmp", "model.netsuite_source.stg_netsuite2__locations_tmp"], "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": ["source.netsuite_source.netsuite2.subsidiary"], "model.netsuite_source.stg_netsuite2__transactions_tmp": ["source.netsuite_source.netsuite2.transaction"], "model.netsuite_source.stg_netsuite2__entity_address_tmp": ["source.netsuite_source.netsuite2.entity_address"], "model.netsuite_source.stg_netsuite2__account_types_tmp": ["source.netsuite_source.netsuite2.account_type"], "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": ["source.netsuite_source.netsuite2.accounting_period"], "model.netsuite_source.stg_netsuite2__jobs_tmp": ["source.netsuite_source.netsuite2.job"], "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": ["source.netsuite_source.netsuite2.transaction_line"], "model.netsuite_source.stg_netsuite2__accounts_tmp": ["source.netsuite_source.netsuite2.account"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["source.netsuite_source.netsuite2.customer"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["source.netsuite_source.netsuite2.entity"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["source.netsuite_source.netsuite2.currency"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["source.netsuite_source.netsuite2.vendor"], "model.netsuite_source.stg_netsuite2__items_tmp": ["source.netsuite_source.netsuite2.item"], "model.netsuite_source.stg_netsuite2__accounting_books_tmp": ["source.netsuite_source.netsuite2.accounting_book"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": ["source.netsuite_source.netsuite2.accounting_period_fiscal_calendars"], "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": ["source.netsuite_source.netsuite2.vendor_category"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": ["source.netsuite_source.netsuite2.accounting_book_subsidiaries"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": ["source.netsuite_source.netsuite2.transaction_accounting_line"], "model.netsuite_source.stg_netsuite2__location_main_address_tmp": ["source.netsuite_source.netsuite2.location_main_address"], "model.netsuite_source.stg_netsuite2__locations_tmp": ["source.netsuite_source.netsuite2.location"], "model.netsuite_source.stg_netsuite2__departments_tmp": ["source.netsuite_source.netsuite2.department"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["source.netsuite_source.netsuite2.classification"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": ["source.netsuite_source.netsuite2.consolidated_exchange_rate"], "model.netsuite_source.stg_netsuite__transactions": ["model.netsuite_source.stg_netsuite__transactions_tmp", "model.netsuite_source.stg_netsuite__transactions_tmp"], "model.netsuite_source.stg_netsuite__customers": ["model.netsuite_source.stg_netsuite__customers_tmp", "model.netsuite_source.stg_netsuite__customers_tmp"], "model.netsuite_source.stg_netsuite__accounting_books": ["model.netsuite_source.stg_netsuite__accounting_books_tmp", "model.netsuite_source.stg_netsuite__accounting_books_tmp"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"], "model.netsuite_source.stg_netsuite__transaction_lines": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp", "model.netsuite_source.stg_netsuite__transaction_lines_tmp"], "model.netsuite_source.stg_netsuite__income_accounts": ["model.netsuite_source.stg_netsuite__income_accounts_tmp", "model.netsuite_source.stg_netsuite__income_accounts_tmp"], "model.netsuite_source.stg_netsuite__expense_accounts": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp", "model.netsuite_source.stg_netsuite__expense_accounts_tmp"], "model.netsuite_source.stg_netsuite__vendors": ["model.netsuite_source.stg_netsuite__vendors_tmp", "model.netsuite_source.stg_netsuite__vendors_tmp"], "model.netsuite_source.stg_netsuite__classes": ["model.netsuite_source.stg_netsuite__classes_tmp", "model.netsuite_source.stg_netsuite__classes_tmp"], "model.netsuite_source.stg_netsuite__subsidiaries": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp", "model.netsuite_source.stg_netsuite__subsidiaries_tmp"], "model.netsuite_source.stg_netsuite__accounts": ["model.netsuite_source.stg_netsuite__accounts_tmp", "model.netsuite_source.stg_netsuite__accounts_tmp"], "model.netsuite_source.stg_netsuite__items": ["model.netsuite_source.stg_netsuite__items_tmp", "model.netsuite_source.stg_netsuite__items_tmp"], "model.netsuite_source.stg_netsuite__locations": ["model.netsuite_source.stg_netsuite__locations_tmp", "model.netsuite_source.stg_netsuite__locations_tmp"], "model.netsuite_source.stg_netsuite__departments": ["model.netsuite_source.stg_netsuite__departments_tmp", "model.netsuite_source.stg_netsuite__departments_tmp"], "model.netsuite_source.stg_netsuite__currencies": ["model.netsuite_source.stg_netsuite__currencies_tmp", "model.netsuite_source.stg_netsuite__currencies_tmp"], "model.netsuite_source.stg_netsuite__vendor_types": ["model.netsuite_source.stg_netsuite__vendor_types_tmp", "model.netsuite_source.stg_netsuite__vendor_types_tmp"], "model.netsuite_source.stg_netsuite__accounting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp", "model.netsuite_source.stg_netsuite__accounting_periods_tmp"], "model.netsuite_source.stg_netsuite__accounting_periods_tmp": ["source.netsuite_source.netsuite.accounting_periods"], "model.netsuite_source.stg_netsuite__accounting_books_tmp": ["source.netsuite_source.netsuite.accounting_books"], "model.netsuite_source.stg_netsuite__customers_tmp": ["source.netsuite_source.netsuite.customers"], "model.netsuite_source.stg_netsuite__transaction_lines_tmp": ["source.netsuite_source.netsuite.transaction_lines"], "model.netsuite_source.stg_netsuite__income_accounts_tmp": ["source.netsuite_source.netsuite.income_accounts"], "model.netsuite_source.stg_netsuite__accounts_tmp": ["source.netsuite_source.netsuite.accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["source.netsuite_source.netsuite.departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["source.netsuite_source.netsuite.currencies"], "model.netsuite_source.stg_netsuite__vendor_types_tmp": ["source.netsuite_source.netsuite.vendor_types"], "model.netsuite_source.stg_netsuite__vendors_tmp": ["source.netsuite_source.netsuite.vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["source.netsuite_source.netsuite.locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["source.netsuite_source.netsuite.items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["source.netsuite_source.netsuite.subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["source.netsuite_source.netsuite.transactions"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": ["source.netsuite_source.netsuite.consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__classes_tmp": ["source.netsuite_source.netsuite.classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["source.netsuite_source.netsuite.expense_accounts"], "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": ["model.netsuite_source.stg_netsuite__accounting_books"], "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": ["model.netsuite_source.stg_netsuite__accounting_books"], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": ["model.netsuite_source.stg_netsuite__accounting_periods"], "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": ["model.netsuite_source.stg_netsuite__accounts"], "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": ["model.netsuite_source.stg_netsuite__accounts"], "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": ["model.netsuite_source.stg_netsuite__classes"], "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": ["model.netsuite_source.stg_netsuite__classes"], "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": ["model.netsuite_source.stg_netsuite__currencies"], "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": ["model.netsuite_source.stg_netsuite__currencies"], "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": ["model.netsuite_source.stg_netsuite__customers"], "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": ["model.netsuite_source.stg_netsuite__customers"], "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": ["model.netsuite_source.stg_netsuite__departments"], "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": ["model.netsuite_source.stg_netsuite__departments"], "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": ["model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": ["model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": ["model.netsuite_source.stg_netsuite__income_accounts"], "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": ["model.netsuite_source.stg_netsuite__income_accounts"], "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": ["model.netsuite_source.stg_netsuite__items"], "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": ["model.netsuite_source.stg_netsuite__items"], "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": ["model.netsuite_source.stg_netsuite__locations"], "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": ["model.netsuite_source.stg_netsuite__locations"], "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": ["model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": ["model.netsuite_source.stg_netsuite__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": ["model.netsuite_source.stg_netsuite__transaction_lines"], "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": ["model.netsuite_source.stg_netsuite__transactions"], "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": ["model.netsuite_source.stg_netsuite__transactions"], "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": ["model.netsuite_source.stg_netsuite__vendor_types"], "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": ["model.netsuite_source.stg_netsuite__vendor_types"], "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": ["model.netsuite_source.stg_netsuite__vendors"], "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": ["model.netsuite_source.stg_netsuite__vendors"], "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": ["model.netsuite_source.stg_netsuite2__account_types"], "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": ["model.netsuite_source.stg_netsuite2__account_types"], "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": ["model.netsuite_source.stg_netsuite2__accounting_books"], "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": ["model.netsuite_source.stg_netsuite2__accounting_books"], "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": ["model.netsuite_source.stg_netsuite2__accounting_periods"], "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": ["model.netsuite_source.stg_netsuite2__accounting_periods"], "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": ["model.netsuite_source.stg_netsuite2__accounts"], "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": ["model.netsuite_source.stg_netsuite2__accounts"], "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": ["model.netsuite_source.stg_netsuite2__classes"], "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": ["model.netsuite_source.stg_netsuite2__classes"], "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": ["model.netsuite_source.stg_netsuite2__currencies"], "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": ["model.netsuite_source.stg_netsuite2__currencies"], "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": ["model.netsuite_source.stg_netsuite2__customers"], "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": ["model.netsuite_source.stg_netsuite2__customers"], "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": ["model.netsuite_source.stg_netsuite2__departments"], "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": ["model.netsuite_source.stg_netsuite2__departments"], "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": ["model.netsuite_source.stg_netsuite2__entities"], "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": ["model.netsuite_source.stg_netsuite2__entities"], "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": ["model.netsuite_source.stg_netsuite2__items"], "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": ["model.netsuite_source.stg_netsuite2__items"], "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": ["model.netsuite_source.stg_netsuite2__jobs"], "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": ["model.netsuite_source.stg_netsuite2__jobs"], "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": ["model.netsuite_source.stg_netsuite2__locations"], "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": ["model.netsuite_source.stg_netsuite2__locations"], "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": ["model.netsuite_source.stg_netsuite2__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": ["model.netsuite_source.stg_netsuite2__subsidiaries"], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": ["model.netsuite_source.stg_netsuite2__transaction_lines"], "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": ["model.netsuite_source.stg_netsuite2__transactions"], "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": ["model.netsuite_source.stg_netsuite2__transactions"], "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": ["model.netsuite_source.stg_netsuite2__vendor_categories"], "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": ["model.netsuite_source.stg_netsuite2__vendor_categories"], "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": ["model.netsuite_source.stg_netsuite2__vendors"], "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": ["model.netsuite_source.stg_netsuite2__vendors"], "source.netsuite_source.netsuite2.account_type": [], "source.netsuite_source.netsuite2.accounting_book_subsidiaries": [], "source.netsuite_source.netsuite2.accounting_book": [], "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": [], "source.netsuite_source.netsuite2.accounting_period": [], "source.netsuite_source.netsuite2.account": [], "source.netsuite_source.netsuite2.classification": [], "source.netsuite_source.netsuite2.consolidated_exchange_rate": [], "source.netsuite_source.netsuite2.currency": [], "source.netsuite_source.netsuite2.customer": [], "source.netsuite_source.netsuite2.department": [], "source.netsuite_source.netsuite2.entity": [], "source.netsuite_source.netsuite2.entity_address": [], "source.netsuite_source.netsuite2.item": [], "source.netsuite_source.netsuite2.job": [], "source.netsuite_source.netsuite2.location_main_address": [], "source.netsuite_source.netsuite2.location": [], "source.netsuite_source.netsuite2.subsidiary": [], "source.netsuite_source.netsuite2.transaction_accounting_line": [], "source.netsuite_source.netsuite2.transaction_line": [], "source.netsuite_source.netsuite2.transaction": [], "source.netsuite_source.netsuite2.vendor_category": [], "source.netsuite_source.netsuite2.vendor": [], "source.netsuite_source.netsuite.accounting_books": [], "source.netsuite_source.netsuite.accounting_periods": [], "source.netsuite_source.netsuite.accounts": [], "source.netsuite_source.netsuite.classes": [], "source.netsuite_source.netsuite.consolidated_exchange_rates": [], "source.netsuite_source.netsuite.currencies": [], "source.netsuite_source.netsuite.customers": [], "source.netsuite_source.netsuite.departments": [], "source.netsuite_source.netsuite.expense_accounts": [], "source.netsuite_source.netsuite.income_accounts": [], "source.netsuite_source.netsuite.items": [], "source.netsuite_source.netsuite.locations": [], "source.netsuite_source.netsuite.subsidiaries": [], "source.netsuite_source.netsuite.transaction_lines": [], "source.netsuite_source.netsuite.transactions": [], "source.netsuite_source.netsuite.vendor_types": [], "source.netsuite_source.netsuite.vendors": []}, "child_map": {"seed.netsuite_source_integration_tests.netsuite2_currency_data": [], "seed.netsuite_source_integration_tests.netsuite_vendors_data": [], "seed.netsuite_source_integration_tests.netsuite2_classification_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_books_data": [], "seed.netsuite_source_integration_tests.netsuite2_entities_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_data": [], "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data": [], "seed.netsuite_source_integration_tests.netsuite_customers_data": [], "seed.netsuite_source_integration_tests.netsuite_locations_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_data": [], "seed.netsuite_source_integration_tests.netsuite_items_data": [], "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data": [], "seed.netsuite_source_integration_tests.netsuite2_account_type_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data": [], "seed.netsuite_source_integration_tests.netsuite_classes_data": [], "seed.netsuite_source_integration_tests.netsuite2_entity_address_data": [], "seed.netsuite_source_integration_tests.netsuite_departments_data": [], "seed.netsuite_source_integration_tests.netsuite2_customer_data": [], "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data": [], "seed.netsuite_source_integration_tests.netsuite2_department_data": [], "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite_currencies_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data": [], "seed.netsuite_source_integration_tests.netsuite_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data": [], "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data": [], "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data": [], "seed.netsuite_source_integration_tests.netsuite2_job_data": [], "seed.netsuite_source_integration_tests.netsuite2_transaction_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_data": [], "seed.netsuite_source_integration_tests.netsuite_income_accounts_data": [], "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data": [], "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data": [], "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data": [], "seed.netsuite_source_integration_tests.netsuite_vendor_types_data": [], "seed.netsuite_source_integration_tests.netsuite2_item_data": [], "seed.netsuite_source_integration_tests.netsuite_transactions_data": [], "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data": [], "model.netsuite_source.stg_netsuite2__transactions": ["test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b", "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4"], "model.netsuite_source.stg_netsuite2__jobs": ["test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33", "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c"], "model.netsuite_source.stg_netsuite2__vendors": ["test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf", "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d"], "model.netsuite_source.stg_netsuite2__classes": ["test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba", "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98"], "model.netsuite_source.stg_netsuite2__account_types": ["test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef", "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f"], "model.netsuite_source.stg_netsuite2__entities": ["test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2", "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50"], "model.netsuite_source.stg_netsuite2__accounting_periods": ["test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c", "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal": ["test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679", "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348"], "model.netsuite_source.stg_netsuite2__customers": ["test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a", "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries": ["test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411", "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396"], "model.netsuite_source.stg_netsuite2__accounts": ["test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2", "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17"], "model.netsuite_source.stg_netsuite2__transaction_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f", "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890", "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1"], "model.netsuite_source.stg_netsuite2__subsidiaries": ["test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626", "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229"], "model.netsuite_source.stg_netsuite2__entity_address": [], "model.netsuite_source.stg_netsuite2__location_main_address": [], "model.netsuite_source.stg_netsuite2__vendor_categories": ["test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2", "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6"], "model.netsuite_source.stg_netsuite2__departments": ["test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71", "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd", "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25", "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates": ["test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6", "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a"], "model.netsuite_source.stg_netsuite2__accounting_books": ["test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e", "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230"], "model.netsuite_source.stg_netsuite2__items": ["test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a", "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee"], "model.netsuite_source.stg_netsuite2__currencies": ["test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c", "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78"], "model.netsuite_source.stg_netsuite2__locations": ["test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e", "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149"], "model.netsuite_source.stg_netsuite2__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite2__subsidiaries", "model.netsuite_source.stg_netsuite2__subsidiaries"], "model.netsuite_source.stg_netsuite2__transactions_tmp": ["model.netsuite_source.stg_netsuite2__transactions", "model.netsuite_source.stg_netsuite2__transactions"], "model.netsuite_source.stg_netsuite2__entity_address_tmp": ["model.netsuite_source.stg_netsuite2__entity_address", "model.netsuite_source.stg_netsuite2__entity_address"], "model.netsuite_source.stg_netsuite2__account_types_tmp": ["model.netsuite_source.stg_netsuite2__account_types", "model.netsuite_source.stg_netsuite2__account_types"], "model.netsuite_source.stg_netsuite2__accounting_periods_tmp": ["model.netsuite_source.stg_netsuite2__accounting_periods", "model.netsuite_source.stg_netsuite2__accounting_periods"], "model.netsuite_source.stg_netsuite2__jobs_tmp": ["model.netsuite_source.stg_netsuite2__jobs", "model.netsuite_source.stg_netsuite2__jobs"], "model.netsuite_source.stg_netsuite2__transaction_lines_tmp": ["model.netsuite_source.stg_netsuite2__transaction_lines", "model.netsuite_source.stg_netsuite2__transaction_lines"], "model.netsuite_source.stg_netsuite2__accounts_tmp": ["model.netsuite_source.stg_netsuite2__accounts", "model.netsuite_source.stg_netsuite2__accounts"], "model.netsuite_source.stg_netsuite2__customers_tmp": ["model.netsuite_source.stg_netsuite2__customers", "model.netsuite_source.stg_netsuite2__customers"], "model.netsuite_source.stg_netsuite2__entities_tmp": ["model.netsuite_source.stg_netsuite2__entities", "model.netsuite_source.stg_netsuite2__entities"], "model.netsuite_source.stg_netsuite2__currencies_tmp": ["model.netsuite_source.stg_netsuite2__currencies", "model.netsuite_source.stg_netsuite2__currencies"], "model.netsuite_source.stg_netsuite2__vendors_tmp": ["model.netsuite_source.stg_netsuite2__vendors", "model.netsuite_source.stg_netsuite2__vendors"], "model.netsuite_source.stg_netsuite2__items_tmp": ["model.netsuite_source.stg_netsuite2__items", "model.netsuite_source.stg_netsuite2__items"], "model.netsuite_source.stg_netsuite2__accounting_books_tmp": ["model.netsuite_source.stg_netsuite2__accounting_books", "model.netsuite_source.stg_netsuite2__accounting_books"], "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal", "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"], "model.netsuite_source.stg_netsuite2__vendor_categories_tmp": ["model.netsuite_source.stg_netsuite2__vendor_categories", "model.netsuite_source.stg_netsuite2__vendor_categories"], "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries", "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"], "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines", "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"], "model.netsuite_source.stg_netsuite2__location_main_address_tmp": ["model.netsuite_source.stg_netsuite2__location_main_address", "model.netsuite_source.stg_netsuite2__location_main_address"], "model.netsuite_source.stg_netsuite2__locations_tmp": ["model.netsuite_source.stg_netsuite2__locations", "model.netsuite_source.stg_netsuite2__locations"], "model.netsuite_source.stg_netsuite2__departments_tmp": ["model.netsuite_source.stg_netsuite2__departments", "model.netsuite_source.stg_netsuite2__departments"], "model.netsuite_source.stg_netsuite2__classes_tmp": ["model.netsuite_source.stg_netsuite2__classes", "model.netsuite_source.stg_netsuite2__classes"], "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__transactions": ["test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532", "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79"], "model.netsuite_source.stg_netsuite__customers": ["test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc", "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9"], "model.netsuite_source.stg_netsuite__accounting_books": ["test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc", "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates": ["test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97", "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54"], "model.netsuite_source.stg_netsuite__transaction_lines": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d", "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc", "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c"], "model.netsuite_source.stg_netsuite__income_accounts": ["test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9", "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07"], "model.netsuite_source.stg_netsuite__expense_accounts": ["test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23", "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff"], "model.netsuite_source.stg_netsuite__vendors": ["test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531", "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39"], "model.netsuite_source.stg_netsuite__classes": ["test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765", "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b"], "model.netsuite_source.stg_netsuite__subsidiaries": ["test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015", "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0"], "model.netsuite_source.stg_netsuite__accounts": ["test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace", "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281"], "model.netsuite_source.stg_netsuite__items": ["test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3", "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654"], "model.netsuite_source.stg_netsuite__locations": ["test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b", "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2"], "model.netsuite_source.stg_netsuite__departments": ["test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002", "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1"], "model.netsuite_source.stg_netsuite__currencies": ["test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3", "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c"], "model.netsuite_source.stg_netsuite__vendor_types": ["test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9", "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69"], "model.netsuite_source.stg_netsuite__accounting_periods": ["test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69", "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c", "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563"], "model.netsuite_source.stg_netsuite__accounting_periods_tmp": ["model.netsuite_source.stg_netsuite__accounting_periods", "model.netsuite_source.stg_netsuite__accounting_periods"], "model.netsuite_source.stg_netsuite__accounting_books_tmp": ["model.netsuite_source.stg_netsuite__accounting_books", "model.netsuite_source.stg_netsuite__accounting_books"], "model.netsuite_source.stg_netsuite__customers_tmp": ["model.netsuite_source.stg_netsuite__customers", "model.netsuite_source.stg_netsuite__customers"], "model.netsuite_source.stg_netsuite__transaction_lines_tmp": ["model.netsuite_source.stg_netsuite__transaction_lines", "model.netsuite_source.stg_netsuite__transaction_lines"], "model.netsuite_source.stg_netsuite__income_accounts_tmp": ["model.netsuite_source.stg_netsuite__income_accounts", "model.netsuite_source.stg_netsuite__income_accounts"], "model.netsuite_source.stg_netsuite__accounts_tmp": ["model.netsuite_source.stg_netsuite__accounts", "model.netsuite_source.stg_netsuite__accounts"], "model.netsuite_source.stg_netsuite__departments_tmp": ["model.netsuite_source.stg_netsuite__departments", "model.netsuite_source.stg_netsuite__departments"], "model.netsuite_source.stg_netsuite__currencies_tmp": ["model.netsuite_source.stg_netsuite__currencies", "model.netsuite_source.stg_netsuite__currencies"], "model.netsuite_source.stg_netsuite__vendor_types_tmp": ["model.netsuite_source.stg_netsuite__vendor_types", "model.netsuite_source.stg_netsuite__vendor_types"], "model.netsuite_source.stg_netsuite__vendors_tmp": ["model.netsuite_source.stg_netsuite__vendors", "model.netsuite_source.stg_netsuite__vendors"], "model.netsuite_source.stg_netsuite__locations_tmp": ["model.netsuite_source.stg_netsuite__locations", "model.netsuite_source.stg_netsuite__locations"], "model.netsuite_source.stg_netsuite__items_tmp": ["model.netsuite_source.stg_netsuite__items", "model.netsuite_source.stg_netsuite__items"], "model.netsuite_source.stg_netsuite__subsidiaries_tmp": ["model.netsuite_source.stg_netsuite__subsidiaries", "model.netsuite_source.stg_netsuite__subsidiaries"], "model.netsuite_source.stg_netsuite__transactions_tmp": ["model.netsuite_source.stg_netsuite__transactions", "model.netsuite_source.stg_netsuite__transactions"], "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates", "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"], "model.netsuite_source.stg_netsuite__classes_tmp": ["model.netsuite_source.stg_netsuite__classes", "model.netsuite_source.stg_netsuite__classes"], "model.netsuite_source.stg_netsuite__expense_accounts_tmp": ["model.netsuite_source.stg_netsuite__expense_accounts", "model.netsuite_source.stg_netsuite__expense_accounts"], "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417": [], "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc": [], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c": [], "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69": [], "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281": [], "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace": [], "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b": [], "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765": [], "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54": [], "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97": [], "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c": [], "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3": [], "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9": [], "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc": [], "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1": [], "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002": [], "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff": [], "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23": [], "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07": [], "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9": [], "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654": [], "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3": [], "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2": [], "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b": [], "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0": [], "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015": [], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc": [], "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d": [], "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79": [], "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532": [], "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69": [], "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9": [], "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39": [], "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531": [], "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f": [], "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef": [], "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411": [], "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e": [], "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679": [], "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1": [], "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c": [], "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17": [], "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2": [], "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98": [], "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba": [], "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a": [], "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6": [], "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78": [], "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c": [], "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2": [], "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a": [], "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b": [], "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71": [], "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50": [], "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2": [], "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee": [], "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a": [], "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c": [], "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33": [], "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149": [], "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e": [], "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229": [], "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1": [], "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890": [], "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f": [], "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4": [], "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b": [], "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6": [], "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2": [], "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d": [], "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf": [], "source.netsuite_source.netsuite2.account_type": ["model.netsuite_source.stg_netsuite2__account_types_tmp"], "source.netsuite_source.netsuite2.accounting_book_subsidiaries": ["model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"], "source.netsuite_source.netsuite2.accounting_book": ["model.netsuite_source.stg_netsuite2__accounting_books_tmp"], "source.netsuite_source.netsuite2.accounting_period_fiscal_calendars": ["model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"], "source.netsuite_source.netsuite2.accounting_period": ["model.netsuite_source.stg_netsuite2__accounting_periods_tmp"], "source.netsuite_source.netsuite2.account": ["model.netsuite_source.stg_netsuite2__accounts_tmp"], "source.netsuite_source.netsuite2.classification": ["model.netsuite_source.stg_netsuite2__classes_tmp"], "source.netsuite_source.netsuite2.consolidated_exchange_rate": ["model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"], "source.netsuite_source.netsuite2.currency": ["model.netsuite_source.stg_netsuite2__currencies_tmp"], "source.netsuite_source.netsuite2.customer": ["model.netsuite_source.stg_netsuite2__customers_tmp"], "source.netsuite_source.netsuite2.department": ["model.netsuite_source.stg_netsuite2__departments_tmp"], "source.netsuite_source.netsuite2.entity": ["model.netsuite_source.stg_netsuite2__entities_tmp"], "source.netsuite_source.netsuite2.entity_address": ["model.netsuite_source.stg_netsuite2__entity_address_tmp"], "source.netsuite_source.netsuite2.item": ["model.netsuite_source.stg_netsuite2__items_tmp"], "source.netsuite_source.netsuite2.job": ["model.netsuite_source.stg_netsuite2__jobs_tmp"], "source.netsuite_source.netsuite2.location_main_address": ["model.netsuite_source.stg_netsuite2__location_main_address_tmp"], "source.netsuite_source.netsuite2.location": ["model.netsuite_source.stg_netsuite2__locations_tmp"], "source.netsuite_source.netsuite2.subsidiary": ["model.netsuite_source.stg_netsuite2__subsidiaries_tmp"], "source.netsuite_source.netsuite2.transaction_accounting_line": ["model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"], "source.netsuite_source.netsuite2.transaction_line": ["model.netsuite_source.stg_netsuite2__transaction_lines_tmp"], "source.netsuite_source.netsuite2.transaction": ["model.netsuite_source.stg_netsuite2__transactions_tmp"], "source.netsuite_source.netsuite2.vendor_category": ["model.netsuite_source.stg_netsuite2__vendor_categories_tmp"], "source.netsuite_source.netsuite2.vendor": ["model.netsuite_source.stg_netsuite2__vendors_tmp"], "source.netsuite_source.netsuite.accounting_books": ["model.netsuite_source.stg_netsuite__accounting_books_tmp"], "source.netsuite_source.netsuite.accounting_periods": ["model.netsuite_source.stg_netsuite__accounting_periods_tmp"], "source.netsuite_source.netsuite.accounts": ["model.netsuite_source.stg_netsuite__accounts_tmp"], "source.netsuite_source.netsuite.classes": ["model.netsuite_source.stg_netsuite__classes_tmp"], "source.netsuite_source.netsuite.consolidated_exchange_rates": ["model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"], "source.netsuite_source.netsuite.currencies": ["model.netsuite_source.stg_netsuite__currencies_tmp"], "source.netsuite_source.netsuite.customers": ["model.netsuite_source.stg_netsuite__customers_tmp"], "source.netsuite_source.netsuite.departments": ["model.netsuite_source.stg_netsuite__departments_tmp"], "source.netsuite_source.netsuite.expense_accounts": ["model.netsuite_source.stg_netsuite__expense_accounts_tmp"], "source.netsuite_source.netsuite.income_accounts": ["model.netsuite_source.stg_netsuite__income_accounts_tmp"], "source.netsuite_source.netsuite.items": ["model.netsuite_source.stg_netsuite__items_tmp"], "source.netsuite_source.netsuite.locations": ["model.netsuite_source.stg_netsuite__locations_tmp"], "source.netsuite_source.netsuite.subsidiaries": ["model.netsuite_source.stg_netsuite__subsidiaries_tmp"], "source.netsuite_source.netsuite.transaction_lines": ["model.netsuite_source.stg_netsuite__transaction_lines_tmp"], "source.netsuite_source.netsuite.transactions": ["model.netsuite_source.stg_netsuite__transactions_tmp"], "source.netsuite_source.netsuite.vendor_types": ["model.netsuite_source.stg_netsuite__vendor_types_tmp"], "source.netsuite_source.netsuite.vendors": ["model.netsuite_source.stg_netsuite__vendors_tmp"]}} \ No newline at end of file diff --git a/docs/run_results.json b/docs/run_results.json index 041d541..b4ea554 100644 --- a/docs/run_results.json +++ b/docs/run_results.json @@ -1 +1 @@ -{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2022-10-24T20:25:46.039431Z", "invocation_id": "4195529c-716a-4b27-ac5b-72f919bfcd43", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.849646Z", "completed_at": "2022-10-24T20:25:41.860204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.860693Z", "completed_at": "2022-10-24T20:25:41.860702Z"}], "thread_id": "Thread-1", "execution_time": 0.012962102890014648, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.849729Z", "completed_at": "2022-10-24T20:25:41.860303Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.860927Z", "completed_at": "2022-10-24T20:25:41.860930Z"}], "thread_id": "Thread-2", "execution_time": 0.013316869735717773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.849799Z", "completed_at": "2022-10-24T20:25:41.860435Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.861347Z", "completed_at": "2022-10-24T20:25:41.861351Z"}], "thread_id": "Thread-3", "execution_time": 0.013849973678588867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.849867Z", "completed_at": "2022-10-24T20:25:41.860547Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.861471Z", "completed_at": "2022-10-24T20:25:41.861476Z"}], "thread_id": "Thread-4", "execution_time": 0.013983964920043945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.865088Z", "completed_at": "2022-10-24T20:25:41.875481Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.875728Z", "completed_at": "2022-10-24T20:25:41.875734Z"}], "thread_id": "Thread-1", "execution_time": 0.012430191040039062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.868454Z", "completed_at": "2022-10-24T20:25:41.876615Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.879760Z", "completed_at": "2022-10-24T20:25:41.879765Z"}], "thread_id": "Thread-3", "execution_time": 0.015616178512573242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.865324Z", "completed_at": "2022-10-24T20:25:41.876675Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.879856Z", "completed_at": "2022-10-24T20:25:41.879860Z"}], "thread_id": "Thread-2", "execution_time": 0.016238927841186523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.868534Z", "completed_at": "2022-10-24T20:25:41.876721Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.879932Z", "completed_at": "2022-10-24T20:25:41.879934Z"}], "thread_id": "Thread-4", "execution_time": 0.015967845916748047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.876783Z", "completed_at": "2022-10-24T20:25:41.880840Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.882150Z", "completed_at": "2022-10-24T20:25:41.882154Z"}], "thread_id": "Thread-1", "execution_time": 0.006429910659790039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.882862Z", "completed_at": "2022-10-24T20:25:41.891279Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.893976Z", "completed_at": "2022-10-24T20:25:41.893981Z"}], "thread_id": "Thread-4", "execution_time": 0.012480020523071289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.882726Z", "completed_at": "2022-10-24T20:25:41.891340Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.894063Z", "completed_at": "2022-10-24T20:25:41.894066Z"}], "thread_id": "Thread-3", "execution_time": 0.01318979263305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.882792Z", "completed_at": "2022-10-24T20:25:41.891398Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.894183Z", "completed_at": "2022-10-24T20:25:41.894187Z"}], "thread_id": "Thread-2", "execution_time": 0.013275861740112305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.891213Z", "completed_at": "2022-10-24T20:25:41.894117Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.895445Z", "completed_at": "2022-10-24T20:25:41.895448Z"}], "thread_id": "Thread-1", "execution_time": 0.005566835403442383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.896996Z", "completed_at": "2022-10-24T20:25:41.907142Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.907632Z", "completed_at": "2022-10-24T20:25:41.907637Z"}], "thread_id": "Thread-3", "execution_time": 0.012193918228149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.896925Z", "completed_at": "2022-10-24T20:25:41.907204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.907792Z", "completed_at": "2022-10-24T20:25:41.907795Z"}], "thread_id": "Thread-4", "execution_time": 0.012769937515258789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.897263Z", "completed_at": "2022-10-24T20:25:41.907385Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.908226Z", "completed_at": "2022-10-24T20:25:41.908229Z"}], "thread_id": "Thread-2", "execution_time": 0.012601137161254883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.904245Z", "completed_at": "2022-10-24T20:25:41.907553Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.908558Z", "completed_at": "2022-10-24T20:25:41.908562Z"}], "thread_id": "Thread-1", "execution_time": 0.012317180633544922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.910739Z", "completed_at": "2022-10-24T20:25:41.920093Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.920617Z", "completed_at": "2022-10-24T20:25:41.920623Z"}], "thread_id": "Thread-3", "execution_time": 0.011630058288574219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.910875Z", "completed_at": "2022-10-24T20:25:41.920215Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.920786Z", "completed_at": "2022-10-24T20:25:41.920789Z"}], "thread_id": "Thread-4", "execution_time": 0.011628150939941406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.913310Z", "completed_at": "2022-10-24T20:25:41.920411Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.921251Z", "completed_at": "2022-10-24T20:25:41.921255Z"}], "thread_id": "Thread-2", "execution_time": 0.01180410385131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.915577Z", "completed_at": "2022-10-24T20:25:41.920538Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.921586Z", "completed_at": "2022-10-24T20:25:41.921589Z"}], "thread_id": "Thread-1", "execution_time": 0.011966228485107422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.923868Z", "completed_at": "2022-10-24T20:25:41.959145Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.959724Z", "completed_at": "2022-10-24T20:25:41.959730Z"}], "thread_id": "Thread-3", "execution_time": 0.03764915466308594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.924000Z", "completed_at": "2022-10-24T20:25:41.959306Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.959943Z", "completed_at": "2022-10-24T20:25:41.959946Z"}], "thread_id": "Thread-4", "execution_time": 0.03773164749145508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.929600Z", "completed_at": "2022-10-24T20:25:41.959503Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.960396Z", "completed_at": "2022-10-24T20:25:41.960399Z"}], "thread_id": "Thread-1", "execution_time": 0.037544965744018555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.926634Z", "completed_at": "2022-10-24T20:25:41.959560Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.960474Z", "completed_at": "2022-10-24T20:25:41.960479Z"}], "thread_id": "Thread-2", "execution_time": 0.03808283805847168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.963273Z", "completed_at": "2022-10-24T20:25:41.972240Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.972764Z", "completed_at": "2022-10-24T20:25:41.972769Z"}], "thread_id": "Thread-4", "execution_time": 0.010930776596069336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.963070Z", "completed_at": "2022-10-24T20:25:41.972309Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.972830Z", "completed_at": "2022-10-24T20:25:41.972833Z"}], "thread_id": "Thread-3", "execution_time": 0.011701107025146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.965526Z", "completed_at": "2022-10-24T20:25:41.972368Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.972894Z", "completed_at": "2022-10-24T20:25:41.972897Z"}], "thread_id": "Thread-1", "execution_time": 0.011151790618896484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.965595Z", "completed_at": "2022-10-24T20:25:41.972420Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.972956Z", "completed_at": "2022-10-24T20:25:41.972958Z"}], "thread_id": "Thread-2", "execution_time": 0.011172771453857422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.975768Z", "completed_at": "2022-10-24T20:25:41.985549Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.986054Z", "completed_at": "2022-10-24T20:25:41.986061Z"}], "thread_id": "Thread-4", "execution_time": 0.011828899383544922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.975830Z", "completed_at": "2022-10-24T20:25:41.985670Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.986220Z", "completed_at": "2022-10-24T20:25:41.986222Z"}], "thread_id": "Thread-3", "execution_time": 0.011955738067626953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.975889Z", "completed_at": "2022-10-24T20:25:41.985816Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.986669Z", "completed_at": "2022-10-24T20:25:41.986672Z"}], "thread_id": "Thread-1", "execution_time": 0.012314796447753906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.975947Z", "completed_at": "2022-10-24T20:25:41.985974Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:41.987013Z", "completed_at": "2022-10-24T20:25:41.987016Z"}], "thread_id": "Thread-2", "execution_time": 0.012562990188598633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.989476Z", "completed_at": "2022-10-24T20:25:41.997333Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.000064Z", "completed_at": "2022-10-24T20:25:42.000070Z"}], "thread_id": "Thread-4", "execution_time": 0.012530803680419922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.989626Z", "completed_at": "2022-10-24T20:25:41.999567Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.000273Z", "completed_at": "2022-10-24T20:25:42.000280Z"}], "thread_id": "Thread-3", "execution_time": 0.012545108795166016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.992035Z", "completed_at": "2022-10-24T20:25:41.999903Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.000727Z", "completed_at": "2022-10-24T20:25:42.000730Z"}], "thread_id": "Thread-1", "execution_time": 0.012603282928466797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:41.994201Z", "completed_at": "2022-10-24T20:25:42.000129Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.001244Z", "completed_at": "2022-10-24T20:25:42.001247Z"}], "thread_id": "Thread-2", "execution_time": 0.012871026992797852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.003128Z", "completed_at": "2022-10-24T20:25:42.011687Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.012171Z", "completed_at": "2022-10-24T20:25:42.012177Z"}], "thread_id": "Thread-4", "execution_time": 0.01090097427368164, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.008374Z", "completed_at": "2022-10-24T20:25:42.011814Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.012312Z", "completed_at": "2022-10-24T20:25:42.012315Z"}], "thread_id": "Thread-2", "execution_time": 0.009839057922363281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.003505Z", "completed_at": "2022-10-24T20:25:42.011966Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.012745Z", "completed_at": "2022-10-24T20:25:42.012748Z"}], "thread_id": "Thread-3", "execution_time": 0.01110696792602539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.006121Z", "completed_at": "2022-10-24T20:25:42.012104Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.013145Z", "completed_at": "2022-10-24T20:25:42.013148Z"}], "thread_id": "Thread-1", "execution_time": 0.011063098907470703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.015300Z", "completed_at": "2022-10-24T20:25:42.018460Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.020801Z", "completed_at": "2022-10-24T20:25:42.020805Z"}], "thread_id": "Thread-4", "execution_time": 0.00716090202331543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.015431Z", "completed_at": "2022-10-24T20:25:42.019478Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.020926Z", "completed_at": "2022-10-24T20:25:42.020929Z"}], "thread_id": "Thread-2", "execution_time": 0.007094144821166992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.017393Z", "completed_at": "2022-10-24T20:25:42.020596Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.021309Z", "completed_at": "2022-10-24T20:25:42.021313Z"}], "thread_id": "Thread-3", "execution_time": 0.0070438385009765625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.018391Z", "completed_at": "2022-10-24T20:25:42.020737Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.021607Z", "completed_at": "2022-10-24T20:25:42.021609Z"}], "thread_id": "Thread-1", "execution_time": 0.007133960723876953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.023607Z", "completed_at": "2022-10-24T20:25:42.026018Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.028983Z", "completed_at": "2022-10-24T20:25:42.028987Z"}], "thread_id": "Thread-4", "execution_time": 0.007041215896606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.023741Z", "completed_at": "2022-10-24T20:25:42.026990Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.029133Z", "completed_at": "2022-10-24T20:25:42.029136Z"}], "thread_id": "Thread-2", "execution_time": 0.007087230682373047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.024955Z", "completed_at": "2022-10-24T20:25:42.028785Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.029539Z", "completed_at": "2022-10-24T20:25:42.029541Z"}], "thread_id": "Thread-3", "execution_time": 0.007006168365478516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.025954Z", "completed_at": "2022-10-24T20:25:42.028920Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.029845Z", "completed_at": "2022-10-24T20:25:42.029848Z"}], "thread_id": "Thread-1", "execution_time": 0.007078886032104492, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.031804Z", "completed_at": "2022-10-24T20:25:42.034204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.036370Z", "completed_at": "2022-10-24T20:25:42.036374Z"}], "thread_id": "Thread-4", "execution_time": 0.0061490535736083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.031938Z", "completed_at": "2022-10-24T20:25:42.035175Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.036504Z", "completed_at": "2022-10-24T20:25:42.036506Z"}], "thread_id": "Thread-2", "execution_time": 0.006196022033691406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.033155Z", "completed_at": "2022-10-24T20:25:42.036177Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.036907Z", "completed_at": "2022-10-24T20:25:42.036910Z"}], "thread_id": "Thread-3", "execution_time": 0.006316184997558594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.034138Z", "completed_at": "2022-10-24T20:25:42.036306Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.037217Z", "completed_at": "2022-10-24T20:25:42.037220Z"}], "thread_id": "Thread-1", "execution_time": 0.006403923034667969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.039353Z", "completed_at": "2022-10-24T20:25:42.041685Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.044674Z", "completed_at": "2022-10-24T20:25:42.044678Z"}], "thread_id": "Thread-4", "execution_time": 0.006966114044189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.039489Z", "completed_at": "2022-10-24T20:25:42.043430Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.044803Z", "completed_at": "2022-10-24T20:25:42.044806Z"}], "thread_id": "Thread-2", "execution_time": 0.0070209503173828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.040644Z", "completed_at": "2022-10-24T20:25:42.044477Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.045265Z", "completed_at": "2022-10-24T20:25:42.045269Z"}], "thread_id": "Thread-3", "execution_time": 0.006992816925048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.041604Z", "completed_at": "2022-10-24T20:25:42.044609Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.045599Z", "completed_at": "2022-10-24T20:25:42.045602Z"}], "thread_id": "Thread-1", "execution_time": 0.0071277618408203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.047797Z", "completed_at": "2022-10-24T20:25:42.050209Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.052338Z", "completed_at": "2022-10-24T20:25:42.052342Z"}], "thread_id": "Thread-4", "execution_time": 0.006296873092651367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.047935Z", "completed_at": "2022-10-24T20:25:42.051140Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.052458Z", "completed_at": "2022-10-24T20:25:42.052460Z"}], "thread_id": "Thread-2", "execution_time": 0.0063211917877197266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.049145Z", "completed_at": "2022-10-24T20:25:42.052156Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.052839Z", "completed_at": "2022-10-24T20:25:42.052842Z"}], "thread_id": "Thread-3", "execution_time": 0.006276845932006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.050146Z", "completed_at": "2022-10-24T20:25:42.052279Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.053134Z", "completed_at": "2022-10-24T20:25:42.053137Z"}], "thread_id": "Thread-1", "execution_time": 0.006213188171386719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.055061Z", "completed_at": "2022-10-24T20:25:42.058101Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.060264Z", "completed_at": "2022-10-24T20:25:42.060268Z"}], "thread_id": "Thread-4", "execution_time": 0.006725788116455078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.055187Z", "completed_at": "2022-10-24T20:25:42.059090Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.060388Z", "completed_at": "2022-10-24T20:25:42.060390Z"}], "thread_id": "Thread-2", "execution_time": 0.00675201416015625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.057072Z", "completed_at": "2022-10-24T20:25:42.060081Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.060766Z", "completed_at": "2022-10-24T20:25:42.060769Z"}], "thread_id": "Thread-3", "execution_time": 0.006810903549194336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.058038Z", "completed_at": "2022-10-24T20:25:42.060204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.061066Z", "completed_at": "2022-10-24T20:25:42.061069Z"}], "thread_id": "Thread-1", "execution_time": 0.0069730281829833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.063268Z", "completed_at": "2022-10-24T20:25:42.065457Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.068414Z", "completed_at": "2022-10-24T20:25:42.068420Z"}], "thread_id": "Thread-4", "execution_time": 0.006845951080322266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.063390Z", "completed_at": "2022-10-24T20:25:42.066403Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.068538Z", "completed_at": "2022-10-24T20:25:42.068541Z"}], "thread_id": "Thread-2", "execution_time": 0.006745100021362305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.064457Z", "completed_at": "2022-10-24T20:25:42.068225Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.068943Z", "completed_at": "2022-10-24T20:25:42.068945Z"}], "thread_id": "Thread-3", "execution_time": 0.006706953048706055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.065394Z", "completed_at": "2022-10-24T20:25:42.068354Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.069249Z", "completed_at": "2022-10-24T20:25:42.069251Z"}], "thread_id": "Thread-1", "execution_time": 0.006806612014770508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.071170Z", "completed_at": "2022-10-24T20:25:42.073477Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.075701Z", "completed_at": "2022-10-24T20:25:42.075705Z"}], "thread_id": "Thread-4", "execution_time": 0.00617527961730957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.071301Z", "completed_at": "2022-10-24T20:25:42.074447Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.075892Z", "completed_at": "2022-10-24T20:25:42.075896Z"}], "thread_id": "Thread-2", "execution_time": 0.006246089935302734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.072464Z", "completed_at": "2022-10-24T20:25:42.075501Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.076333Z", "completed_at": "2022-10-24T20:25:42.076336Z"}], "thread_id": "Thread-3", "execution_time": 0.006223917007446289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.073414Z", "completed_at": "2022-10-24T20:25:42.075638Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.076652Z", "completed_at": "2022-10-24T20:25:42.076655Z"}], "thread_id": "Thread-1", "execution_time": 0.006335258483886719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.078715Z", "completed_at": "2022-10-24T20:25:42.081891Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.084080Z", "completed_at": "2022-10-24T20:25:42.084084Z"}], "thread_id": "Thread-4", "execution_time": 0.00710606575012207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.078846Z", "completed_at": "2022-10-24T20:25:42.082848Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.084252Z", "completed_at": "2022-10-24T20:25:42.084256Z"}], "thread_id": "Thread-2", "execution_time": 0.007066965103149414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.080105Z", "completed_at": "2022-10-24T20:25:42.083890Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.084676Z", "completed_at": "2022-10-24T20:25:42.084679Z"}], "thread_id": "Thread-3", "execution_time": 0.007040977478027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.081827Z", "completed_at": "2022-10-24T20:25:42.084022Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.084984Z", "completed_at": "2022-10-24T20:25:42.084986Z"}], "thread_id": "Thread-1", "execution_time": 0.007179975509643555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.087125Z", "completed_at": "2022-10-24T20:25:42.089341Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.097649Z", "completed_at": "2022-10-24T20:25:42.097654Z"}], "thread_id": "Thread-4", "execution_time": 0.012247085571289062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.087259Z", "completed_at": "2022-10-24T20:25:42.090295Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.097804Z", "completed_at": "2022-10-24T20:25:42.097807Z"}], "thread_id": "Thread-2", "execution_time": 0.012285947799682617, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.088313Z", "completed_at": "2022-10-24T20:25:42.097441Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.098211Z", "completed_at": "2022-10-24T20:25:42.098214Z"}], "thread_id": "Thread-3", "execution_time": 0.012222051620483398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.089280Z", "completed_at": "2022-10-24T20:25:42.355601Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.355762Z", "completed_at": "2022-10-24T20:25:42.355770Z"}], "thread_id": "Thread-1", "execution_time": 0.30385875701904297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.100235Z", "completed_at": "2022-10-24T20:25:42.390978Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.391799Z", "completed_at": "2022-10-24T20:25:42.391804Z"}], "thread_id": "Thread-4", "execution_time": 0.321699857711792, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.100367Z", "completed_at": "2022-10-24T20:25:42.391137Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.391955Z", "completed_at": "2022-10-24T20:25:42.391958Z"}], "thread_id": "Thread-2", "execution_time": 0.326815128326416, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.104089Z", "completed_at": "2022-10-24T20:25:42.606921Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.607089Z", "completed_at": "2022-10-24T20:25:42.607096Z"}], "thread_id": "Thread-3", "execution_time": 0.5359890460968018, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.392095Z", "completed_at": "2022-10-24T20:25:42.682692Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.682882Z", "completed_at": "2022-10-24T20:25:42.682889Z"}], "thread_id": "Thread-1", "execution_time": 0.3210179805755615, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.421434Z", "completed_at": "2022-10-24T20:25:42.735711Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.736030Z", "completed_at": "2022-10-24T20:25:42.736036Z"}], "thread_id": "Thread-4", "execution_time": 0.3413419723510742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.426991Z", "completed_at": "2022-10-24T20:25:42.735802Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.736106Z", "completed_at": "2022-10-24T20:25:42.736109Z"}], "thread_id": "Thread-2", "execution_time": 0.34136199951171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.638146Z", "completed_at": "2022-10-24T20:25:42.924585Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:42.924736Z", "completed_at": "2022-10-24T20:25:42.924743Z"}], "thread_id": "Thread-3", "execution_time": 0.3133277893066406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.763053Z", "completed_at": "2022-10-24T20:25:43.034855Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.035017Z", "completed_at": "2022-10-24T20:25:43.035026Z"}], "thread_id": "Thread-4", "execution_time": 0.2983701229095459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.061700Z", "completed_at": "2022-10-24T20:25:43.329612Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.329777Z", "completed_at": "2022-10-24T20:25:43.329784Z"}], "thread_id": "Thread-4", "execution_time": 0.2926781177520752, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.768658Z", "completed_at": "2022-10-24T20:25:43.382466Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.382634Z", "completed_at": "2022-10-24T20:25:43.382640Z"}], "thread_id": "Thread-2", "execution_time": 0.6387009620666504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.713032Z", "completed_at": "2022-10-24T20:25:43.483464Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.483628Z", "completed_at": "2022-10-24T20:25:43.483635Z"}], "thread_id": "Thread-1", "execution_time": 0.7980241775512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:42.951032Z", "completed_at": "2022-10-24T20:25:43.540908Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.541077Z", "completed_at": "2022-10-24T20:25:43.541084Z"}], "thread_id": "Thread-3", "execution_time": 0.6194899082183838, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.354654Z", "completed_at": "2022-10-24T20:25:43.663283Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.663454Z", "completed_at": "2022-10-24T20:25:43.663461Z"}], "thread_id": "Thread-4", "execution_time": 0.3491199016571045, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.407656Z", "completed_at": "2022-10-24T20:25:43.747653Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.747815Z", "completed_at": "2022-10-24T20:25:43.747822Z"}], "thread_id": "Thread-2", "execution_time": 0.367473840713501, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.512363Z", "completed_at": "2022-10-24T20:25:43.789609Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.789762Z", "completed_at": "2022-10-24T20:25:43.789767Z"}], "thread_id": "Thread-1", "execution_time": 0.30304694175720215, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.573317Z", "completed_at": "2022-10-24T20:25:43.829596Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.829742Z", "completed_at": "2022-10-24T20:25:43.829747Z"}], "thread_id": "Thread-3", "execution_time": 0.2819969654083252, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.716364Z", "completed_at": "2022-10-24T20:25:43.984459Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:43.984618Z", "completed_at": "2022-10-24T20:25:43.984624Z"}], "thread_id": "Thread-4", "execution_time": 0.29403114318847656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.775429Z", "completed_at": "2022-10-24T20:25:44.042279Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.042431Z", "completed_at": "2022-10-24T20:25:44.042438Z"}], "thread_id": "Thread-2", "execution_time": 0.29552364349365234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.815533Z", "completed_at": "2022-10-24T20:25:44.086794Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.086939Z", "completed_at": "2022-10-24T20:25:44.086944Z"}], "thread_id": "Thread-1", "execution_time": 0.298508882522583, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:43.854799Z", "completed_at": "2022-10-24T20:25:44.131530Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.131673Z", "completed_at": "2022-10-24T20:25:44.131678Z"}], "thread_id": "Thread-3", "execution_time": 0.30654215812683105, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.010425Z", "completed_at": "2022-10-24T20:25:44.267237Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.267403Z", "completed_at": "2022-10-24T20:25:44.267410Z"}], "thread_id": "Thread-4", "execution_time": 0.2885861396789551, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.071232Z", "completed_at": "2022-10-24T20:25:44.399302Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.399449Z", "completed_at": "2022-10-24T20:25:44.399457Z"}], "thread_id": "Thread-2", "execution_time": 0.3579998016357422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.114336Z", "completed_at": "2022-10-24T20:25:44.459101Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.459464Z", "completed_at": "2022-10-24T20:25:44.459467Z"}], "thread_id": "Thread-1", "execution_time": 0.3734419345855713, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.161585Z", "completed_at": "2022-10-24T20:25:44.459005Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.459378Z", "completed_at": "2022-10-24T20:25:44.459386Z"}], "thread_id": "Thread-3", "execution_time": 0.32651281356811523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.302398Z", "completed_at": "2022-10-24T20:25:44.597100Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.597251Z", "completed_at": "2022-10-24T20:25:44.597258Z"}], "thread_id": "Thread-4", "execution_time": 0.3640439510345459, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.429514Z", "completed_at": "2022-10-24T20:25:44.766112Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.766278Z", "completed_at": "2022-10-24T20:25:44.766284Z"}], "thread_id": "Thread-2", "execution_time": 0.3668379783630371, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.488862Z", "completed_at": "2022-10-24T20:25:44.795584Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.795742Z", "completed_at": "2022-10-24T20:25:44.795748Z"}], "thread_id": "Thread-1", "execution_time": 0.33345484733581543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.488930Z", "completed_at": "2022-10-24T20:25:44.816699Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.816859Z", "completed_at": "2022-10-24T20:25:44.816866Z"}], "thread_id": "Thread-3", "execution_time": 0.3540501594543457, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.666439Z", "completed_at": "2022-10-24T20:25:44.984184Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:44.984344Z", "completed_at": "2022-10-24T20:25:44.984351Z"}], "thread_id": "Thread-4", "execution_time": 0.3474099636077881, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.796687Z", "completed_at": "2022-10-24T20:25:45.099591Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.099755Z", "completed_at": "2022-10-24T20:25:45.099762Z"}], "thread_id": "Thread-2", "execution_time": 0.3336179256439209, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.822312Z", "completed_at": "2022-10-24T20:25:45.130655Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.134791Z", "completed_at": "2022-10-24T20:25:45.134797Z"}], "thread_id": "Thread-1", "execution_time": 0.337723970413208, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:44.843110Z", "completed_at": "2022-10-24T20:25:45.187902Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.188066Z", "completed_at": "2022-10-24T20:25:45.188073Z"}], "thread_id": "Thread-3", "execution_time": 0.3710649013519287, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.018075Z", "completed_at": "2022-10-24T20:25:45.350505Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.350672Z", "completed_at": "2022-10-24T20:25:45.350680Z"}], "thread_id": "Thread-4", "execution_time": 0.36203503608703613, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.130727Z", "completed_at": "2022-10-24T20:25:45.414962Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.415116Z", "completed_at": "2022-10-24T20:25:45.415123Z"}], "thread_id": "Thread-2", "execution_time": 0.3140270709991455, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.160471Z", "completed_at": "2022-10-24T20:25:45.444809Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.445250Z", "completed_at": "2022-10-24T20:25:45.445255Z"}], "thread_id": "Thread-1", "execution_time": 0.31341075897216797, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.378764Z", "completed_at": "2022-10-24T20:25:45.639549Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.639714Z", "completed_at": "2022-10-24T20:25:45.639720Z"}], "thread_id": "Thread-4", "execution_time": 0.2881741523742676, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.667201Z", "completed_at": "2022-10-24T20:25:45.674630Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.674785Z", "completed_at": "2022-10-24T20:25:45.674789Z"}], "thread_id": "Thread-4", "execution_time": 0.008086919784545898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.675474Z", "completed_at": "2022-10-24T20:25:45.683483Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.683727Z", "completed_at": "2022-10-24T20:25:45.683732Z"}], "thread_id": "Thread-4", "execution_time": 0.008843183517456055, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.684787Z", "completed_at": "2022-10-24T20:25:45.687534Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.687683Z", "completed_at": "2022-10-24T20:25:45.687688Z"}], "thread_id": "Thread-4", "execution_time": 0.0034329891204833984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.688410Z", "completed_at": "2022-10-24T20:25:45.690807Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.690953Z", "completed_at": "2022-10-24T20:25:45.690957Z"}], "thread_id": "Thread-4", "execution_time": 0.003025054931640625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.691755Z", "completed_at": "2022-10-24T20:25:45.694495Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.694625Z", "completed_at": "2022-10-24T20:25:45.694629Z"}], "thread_id": "Thread-4", "execution_time": 0.0034317970275878906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.695294Z", "completed_at": "2022-10-24T20:25:45.705069Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.705250Z", "completed_at": "2022-10-24T20:25:45.705255Z"}], "thread_id": "Thread-4", "execution_time": 0.010498046875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.445164Z", "completed_at": "2022-10-24T20:25:45.683645Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.684184Z", "completed_at": "2022-10-24T20:25:45.684188Z"}], "thread_id": "Thread-2", "execution_time": 0.26476335525512695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.706296Z", "completed_at": "2022-10-24T20:25:45.709066Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.709484Z", "completed_at": "2022-10-24T20:25:45.709488Z"}], "thread_id": "Thread-4", "execution_time": 0.003944873809814453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.710595Z", "completed_at": "2022-10-24T20:25:45.715471Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.715719Z", "completed_at": "2022-10-24T20:25:45.715724Z"}], "thread_id": "Thread-2", "execution_time": 0.006056308746337891, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.713017Z", "completed_at": "2022-10-24T20:25:45.715641Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.716165Z", "completed_at": "2022-10-24T20:25:45.716169Z"}], "thread_id": "Thread-4", "execution_time": 0.006134033203125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.717246Z", "completed_at": "2022-10-24T20:25:45.722213Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.722434Z", "completed_at": "2022-10-24T20:25:45.722438Z"}], "thread_id": "Thread-2", "execution_time": 0.006093025207519531, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.719765Z", "completed_at": "2022-10-24T20:25:45.722358Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.722845Z", "completed_at": "2022-10-24T20:25:45.722848Z"}], "thread_id": "Thread-4", "execution_time": 0.006146907806396484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.214584Z", "completed_at": "2022-10-24T20:25:45.705303Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.705863Z", "completed_at": "2022-10-24T20:25:45.705866Z"}], "thread_id": "Thread-3", "execution_time": 0.586885929107666, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.724021Z", "completed_at": "2022-10-24T20:25:45.790143Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.801676Z", "completed_at": "2022-10-24T20:25:45.801681Z"}], "thread_id": "Thread-2", "execution_time": 0.07919907569885254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.760268Z", "completed_at": "2022-10-24T20:25:45.802218Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.803067Z", "completed_at": "2022-10-24T20:25:45.803071Z"}], "thread_id": "Thread-4", "execution_time": 0.08211207389831543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.802997Z", "completed_at": "2022-10-24T20:25:45.806602Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.809415Z", "completed_at": "2022-10-24T20:25:45.809419Z"}], "thread_id": "Thread-3", "execution_time": 0.010149002075195312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.806318Z", "completed_at": "2022-10-24T20:25:45.811768Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.812467Z", "completed_at": "2022-10-24T20:25:45.812471Z"}], "thread_id": "Thread-2", "execution_time": 0.009807825088500977, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.809324Z", "completed_at": "2022-10-24T20:25:45.812388Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.813205Z", "completed_at": "2022-10-24T20:25:45.813208Z"}], "thread_id": "Thread-4", "execution_time": 0.0072040557861328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.813386Z", "completed_at": "2022-10-24T20:25:45.816818Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.822434Z", "completed_at": "2022-10-24T20:25:45.822440Z"}], "thread_id": "Thread-3", "execution_time": 0.010231971740722656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.816686Z", "completed_at": "2022-10-24T20:25:45.822550Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.823174Z", "completed_at": "2022-10-24T20:25:45.823177Z"}], "thread_id": "Thread-2", "execution_time": 0.009970903396606445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.819934Z", "completed_at": "2022-10-24T20:25:45.822979Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.823797Z", "completed_at": "2022-10-24T20:25:45.823801Z"}], "thread_id": "Thread-4", "execution_time": 0.007707834243774414, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.824279Z", "completed_at": "2022-10-24T20:25:45.829684Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.832277Z", "completed_at": "2022-10-24T20:25:45.832282Z"}], "thread_id": "Thread-3", "execution_time": 0.00935506820678711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.474137Z", "completed_at": "2022-10-24T20:25:45.801615Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.802801Z", "completed_at": "2022-10-24T20:25:45.802805Z"}], "thread_id": "Thread-1", "execution_time": 0.3590888977050781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.827300Z", "completed_at": "2022-10-24T20:25:45.832204Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.833127Z", "completed_at": "2022-10-24T20:25:45.833130Z"}], "thread_id": "Thread-2", "execution_time": 0.00934910774230957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.829756Z", "completed_at": "2022-10-24T20:25:45.833059Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.834212Z", "completed_at": "2022-10-24T20:25:45.834215Z"}], "thread_id": "Thread-4", "execution_time": 0.007607936859130859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.834954Z", "completed_at": "2022-10-24T20:25:45.843517Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.846281Z", "completed_at": "2022-10-24T20:25:45.846286Z"}], "thread_id": "Thread-3", "execution_time": 0.012921810150146484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.835024Z", "completed_at": "2022-10-24T20:25:45.843587Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.846371Z", "completed_at": "2022-10-24T20:25:45.846374Z"}], "thread_id": "Thread-1", "execution_time": 0.012964963912963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.840859Z", "completed_at": "2022-10-24T20:25:45.846175Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.847085Z", "completed_at": "2022-10-24T20:25:45.847089Z"}], "thread_id": "Thread-2", "execution_time": 0.012866020202636719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.843442Z", "completed_at": "2022-10-24T20:25:45.846497Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.847725Z", "completed_at": "2022-10-24T20:25:45.847729Z"}], "thread_id": "Thread-4", "execution_time": 0.007845163345336914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.849102Z", "completed_at": "2022-10-24T20:25:45.856763Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.860261Z", "completed_at": "2022-10-24T20:25:45.860267Z"}], "thread_id": "Thread-1", "execution_time": 0.012701272964477539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.849031Z", "completed_at": "2022-10-24T20:25:45.856827Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.860345Z", "completed_at": "2022-10-24T20:25:45.860348Z"}], "thread_id": "Thread-3", "execution_time": 0.01318502426147461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.854058Z", "completed_at": "2022-10-24T20:25:45.860150Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.861169Z", "completed_at": "2022-10-24T20:25:45.861172Z"}], "thread_id": "Thread-2", "execution_time": 0.012959957122802734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.856704Z", "completed_at": "2022-10-24T20:25:45.860422Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.861477Z", "completed_at": "2022-10-24T20:25:45.861480Z"}], "thread_id": "Thread-4", "execution_time": 0.01310420036315918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.863000Z", "completed_at": "2022-10-24T20:25:45.873810Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.876718Z", "completed_at": "2022-10-24T20:25:45.876725Z"}], "thread_id": "Thread-1", "execution_time": 0.015388011932373047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.863069Z", "completed_at": "2022-10-24T20:25:45.873885Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.876805Z", "completed_at": "2022-10-24T20:25:45.876809Z"}], "thread_id": "Thread-3", "execution_time": 0.01546788215637207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.868110Z", "completed_at": "2022-10-24T20:25:45.876641Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.877589Z", "completed_at": "2022-10-24T20:25:45.877592Z"}], "thread_id": "Thread-2", "execution_time": 0.015301704406738281, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.868264Z", "completed_at": "2022-10-24T20:25:45.876948Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.878225Z", "completed_at": "2022-10-24T20:25:45.878228Z"}], "thread_id": "Thread-4", "execution_time": 0.015798091888427734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.879550Z", "completed_at": "2022-10-24T20:25:45.891261Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.891846Z", "completed_at": "2022-10-24T20:25:45.891851Z"}], "thread_id": "Thread-3", "execution_time": 0.013801813125610352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.879485Z", "completed_at": "2022-10-24T20:25:45.891366Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.892009Z", "completed_at": "2022-10-24T20:25:45.892011Z"}], "thread_id": "Thread-1", "execution_time": 0.014343023300170898, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.886196Z", "completed_at": "2022-10-24T20:25:45.891456Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.892077Z", "completed_at": "2022-10-24T20:25:45.892080Z"}], "thread_id": "Thread-2", "execution_time": 0.013705015182495117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.888870Z", "completed_at": "2022-10-24T20:25:45.891631Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.892433Z", "completed_at": "2022-10-24T20:25:45.892435Z"}], "thread_id": "Thread-4", "execution_time": 0.013550996780395508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.894720Z", "completed_at": "2022-10-24T20:25:45.905093Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.905557Z", "completed_at": "2022-10-24T20:25:45.905563Z"}], "thread_id": "Thread-3", "execution_time": 0.012454986572265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.894916Z", "completed_at": "2022-10-24T20:25:45.905471Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.906258Z", "completed_at": "2022-10-24T20:25:45.906261Z"}], "thread_id": "Thread-2", "execution_time": 0.012619972229003906, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.894853Z", "completed_at": "2022-10-24T20:25:45.905637Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.906485Z", "completed_at": "2022-10-24T20:25:45.906487Z"}], "thread_id": "Thread-1", "execution_time": 0.013334035873413086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.897323Z", "completed_at": "2022-10-24T20:25:45.905800Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.906846Z", "completed_at": "2022-10-24T20:25:45.906849Z"}], "thread_id": "Thread-4", "execution_time": 0.013178825378417969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.908185Z", "completed_at": "2022-10-24T20:25:45.913893Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.919691Z", "completed_at": "2022-10-24T20:25:45.919697Z"}], "thread_id": "Thread-3", "execution_time": 0.013260126113891602, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.911395Z", "completed_at": "2022-10-24T20:25:45.919583Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.920300Z", "completed_at": "2022-10-24T20:25:45.920304Z"}], "thread_id": "Thread-2", "execution_time": 0.01293492317199707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.913833Z", "completed_at": "2022-10-24T20:25:45.919883Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.920895Z", "completed_at": "2022-10-24T20:25:45.920898Z"}], "thread_id": "Thread-4", "execution_time": 0.012940645217895508, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.911565Z", "completed_at": "2022-10-24T20:25:45.919940Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.920963Z", "completed_at": "2022-10-24T20:25:45.920966Z"}], "thread_id": "Thread-1", "execution_time": 0.013456106185913086, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.922298Z", "completed_at": "2022-10-24T20:25:45.928836Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.933679Z", "completed_at": "2022-10-24T20:25:45.933686Z"}], "thread_id": "Thread-3", "execution_time": 0.013065099716186523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.925250Z", "completed_at": "2022-10-24T20:25:45.933529Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.934265Z", "completed_at": "2022-10-24T20:25:45.934269Z"}], "thread_id": "Thread-2", "execution_time": 0.012845039367675781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.928768Z", "completed_at": "2022-10-24T20:25:45.933862Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.934861Z", "completed_at": "2022-10-24T20:25:45.934865Z"}], "thread_id": "Thread-1", "execution_time": 0.012872934341430664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.928689Z", "completed_at": "2022-10-24T20:25:45.934196Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.935174Z", "completed_at": "2022-10-24T20:25:45.935177Z"}], "thread_id": "Thread-4", "execution_time": 0.013399124145507812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.936245Z", "completed_at": "2022-10-24T20:25:45.942001Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.947863Z", "completed_at": "2022-10-24T20:25:45.947868Z"}], "thread_id": "Thread-3", "execution_time": 0.013391971588134766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.939316Z", "completed_at": "2022-10-24T20:25:45.947762Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.948527Z", "completed_at": "2022-10-24T20:25:45.948531Z"}], "thread_id": "Thread-2", "execution_time": 0.01309514045715332, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.941943Z", "completed_at": "2022-10-24T20:25:45.947979Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.948803Z", "completed_at": "2022-10-24T20:25:45.948806Z"}], "thread_id": "Thread-1", "execution_time": 0.013041019439697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.942079Z", "completed_at": "2022-10-24T20:25:45.948123Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.949135Z", "completed_at": "2022-10-24T20:25:45.949137Z"}], "thread_id": "Thread-4", "execution_time": 0.010787010192871094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.950467Z", "completed_at": "2022-10-24T20:25:45.956205Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.961086Z", "completed_at": "2022-10-24T20:25:45.961091Z"}], "thread_id": "Thread-3", "execution_time": 0.012321949005126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.953575Z", "completed_at": "2022-10-24T20:25:45.960970Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.961724Z", "completed_at": "2022-10-24T20:25:45.961728Z"}], "thread_id": "Thread-2", "execution_time": 0.012026309967041016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.953754Z", "completed_at": "2022-10-24T20:25:45.961164Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.961969Z", "completed_at": "2022-10-24T20:25:45.961972Z"}], "thread_id": "Thread-1", "execution_time": 0.012167930603027344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.956142Z", "completed_at": "2022-10-24T20:25:45.961287Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.962293Z", "completed_at": "2022-10-24T20:25:45.962296Z"}], "thread_id": "Thread-4", "execution_time": 0.01224517822265625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.963649Z", "completed_at": "2022-10-24T20:25:45.970125Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.975070Z", "completed_at": "2022-10-24T20:25:45.975076Z"}], "thread_id": "Thread-3", "execution_time": 0.013180971145629883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.966591Z", "completed_at": "2022-10-24T20:25:45.974889Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.975658Z", "completed_at": "2022-10-24T20:25:45.975661Z"}], "thread_id": "Thread-2", "execution_time": 0.012810945510864258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.966755Z", "completed_at": "2022-10-24T20:25:45.975011Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.975805Z", "completed_at": "2022-10-24T20:25:45.975807Z"}], "thread_id": "Thread-1", "execution_time": 0.012748241424560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.970067Z", "completed_at": "2022-10-24T20:25:45.975229Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.976239Z", "completed_at": "2022-10-24T20:25:45.976242Z"}], "thread_id": "Thread-4", "execution_time": 0.013043880462646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.977815Z", "completed_at": "2022-10-24T20:25:45.985345Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.988984Z", "completed_at": "2022-10-24T20:25:45.988989Z"}], "thread_id": "Thread-3", "execution_time": 0.012853860855102539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.980613Z", "completed_at": "2022-10-24T20:25:45.988587Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.989136Z", "completed_at": "2022-10-24T20:25:45.989138Z"}], "thread_id": "Thread-2", "execution_time": 0.012462139129638672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.980765Z", "completed_at": "2022-10-24T20:25:45.988779Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.989557Z", "completed_at": "2022-10-24T20:25:45.989560Z"}], "thread_id": "Thread-1", "execution_time": 0.012588024139404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.983093Z", "completed_at": "2022-10-24T20:25:45.988934Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:45.989872Z", "completed_at": "2022-10-24T20:25:45.989875Z"}], "thread_id": "Thread-4", "execution_time": 0.012586832046508789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.991776Z", "completed_at": "2022-10-24T20:25:46.001336Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.001821Z", "completed_at": "2022-10-24T20:25:46.001827Z"}], "thread_id": "Thread-3", "execution_time": 0.011595964431762695, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.991912Z", "completed_at": "2022-10-24T20:25:46.001480Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.001944Z", "completed_at": "2022-10-24T20:25:46.001946Z"}], "thread_id": "Thread-2", "execution_time": 0.011632204055786133, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.994356Z", "completed_at": "2022-10-24T20:25:46.001739Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.002686Z", "completed_at": "2022-10-24T20:25:46.002689Z"}], "thread_id": "Thread-1", "execution_time": 0.011848926544189453, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:45.996666Z", "completed_at": "2022-10-24T20:25:46.001874Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.002869Z", "completed_at": "2022-10-24T20:25:46.002871Z"}], "thread_id": "Thread-4", "execution_time": 0.012025833129882812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.004427Z", "completed_at": "2022-10-24T20:25:46.012941Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.015718Z", "completed_at": "2022-10-24T20:25:46.015724Z"}], "thread_id": "Thread-3", "execution_time": 0.012871980667114258, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.004687Z", "completed_at": "2022-10-24T20:25:46.015357Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.015796Z", "completed_at": "2022-10-24T20:25:46.015798Z"}], "thread_id": "Thread-2", "execution_time": 0.012698888778686523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.010400Z", "completed_at": "2022-10-24T20:25:46.015628Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.016586Z", "completed_at": "2022-10-24T20:25:46.016589Z"}], "thread_id": "Thread-1", "execution_time": 0.012849807739257812, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.010520Z", "completed_at": "2022-10-24T20:25:46.015845Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.016871Z", "completed_at": "2022-10-24T20:25:46.016875Z"}], "thread_id": "Thread-4", "execution_time": 0.01324915885925293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.018440Z", "completed_at": "2022-10-24T20:25:46.026736Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.030286Z", "completed_at": "2022-10-24T20:25:46.030291Z"}], "thread_id": "Thread-3", "execution_time": 0.013546943664550781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.018518Z", "completed_at": "2022-10-24T20:25:46.026797Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.030369Z", "completed_at": "2022-10-24T20:25:46.030372Z"}], "thread_id": "Thread-2", "execution_time": 0.01360011100769043, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.024199Z", "completed_at": "2022-10-24T20:25:46.030209Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.031120Z", "completed_at": "2022-10-24T20:25:46.031123Z"}], "thread_id": "Thread-1", "execution_time": 0.013394832611083984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.024355Z", "completed_at": "2022-10-24T20:25:46.030494Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.031733Z", "completed_at": "2022-10-24T20:25:46.031736Z"}], "thread_id": "Thread-4", "execution_time": 0.013808965682983398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.032785Z", "completed_at": "2022-10-24T20:25:46.037698Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.037990Z", "completed_at": "2022-10-24T20:25:46.037995Z"}], "thread_id": "Thread-2", "execution_time": 0.006276845932006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-10-24T20:25:46.032715Z", "completed_at": "2022-10-24T20:25:46.037764Z"}, {"name": "execute", "started_at": "2022-10-24T20:25:46.038060Z", "completed_at": "2022-10-24T20:25:46.038063Z"}], "thread_id": "Thread-3", "execution_time": 0.006738901138305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531"}], "elapsed_time": 4.983864784240723, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file +{"metadata": {"dbt_schema_version": "https://schemas.getdbt.com/dbt/run-results/v4.json", "dbt_version": "1.3.0", "generated_at": "2022-12-19T16:17:46.045414Z", "invocation_id": "4ff11905-9ed7-4385-88b5-d12865e9ff7e", "env": {}}, "results": [{"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.089198Z", "completed_at": "2022-12-19T16:17:42.100582Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.101185Z", "completed_at": "2022-12-19T16:17:42.101193Z"}], "thread_id": "Thread-2", "execution_time": 0.01361703872680664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.089348Z", "completed_at": "2022-12-19T16:17:42.100693Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.101259Z", "completed_at": "2022-12-19T16:17:42.101262Z"}], "thread_id": "Thread-4", "execution_time": 0.01338505744934082, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.089126Z", "completed_at": "2022-12-19T16:17:42.100760Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.101326Z", "completed_at": "2022-12-19T16:17:42.101328Z"}], "thread_id": "Thread-1", "execution_time": 0.014451980590820312, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.089264Z", "completed_at": "2022-12-19T16:17:42.100812Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.101391Z", "completed_at": "2022-12-19T16:17:42.101393Z"}], "thread_id": "Thread-3", "execution_time": 0.014155864715576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.104603Z", "completed_at": "2022-12-19T16:17:42.116075Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.116491Z", "completed_at": "2022-12-19T16:17:42.116500Z"}], "thread_id": "Thread-1", "execution_time": 0.013214111328125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.104475Z", "completed_at": "2022-12-19T16:17:42.115991Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.116651Z", "completed_at": "2022-12-19T16:17:42.116654Z"}], "thread_id": "Thread-2", "execution_time": 0.014029741287231445, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.104540Z", "completed_at": "2022-12-19T16:17:42.115786Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.116741Z", "completed_at": "2022-12-19T16:17:42.116745Z"}], "thread_id": "Thread-4", "execution_time": 0.014034271240234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.104664Z", "completed_at": "2022-12-19T16:17:42.116270Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.117175Z", "completed_at": "2022-12-19T16:17:42.117178Z"}], "thread_id": "Thread-3", "execution_time": 0.013957023620605469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.120207Z", "completed_at": "2022-12-19T16:17:42.131670Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.132513Z", "completed_at": "2022-12-19T16:17:42.132521Z"}], "thread_id": "Thread-1", "execution_time": 0.014272212982177734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.120343Z", "completed_at": "2022-12-19T16:17:42.131922Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.132662Z", "completed_at": "2022-12-19T16:17:42.132665Z"}], "thread_id": "Thread-2", "execution_time": 0.014213085174560547, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.120406Z", "completed_at": "2022-12-19T16:17:42.132086Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.132732Z", "completed_at": "2022-12-19T16:17:42.132735Z"}], "thread_id": "Thread-4", "execution_time": 0.014228105545043945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.123181Z", "completed_at": "2022-12-19T16:17:42.132301Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.133177Z", "completed_at": "2022-12-19T16:17:42.133180Z"}], "thread_id": "Thread-3", "execution_time": 0.014105081558227539, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.135778Z", "completed_at": "2022-12-19T16:17:42.146614Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.146800Z", "completed_at": "2022-12-19T16:17:42.146807Z"}], "thread_id": "Thread-1", "execution_time": 0.012573957443237305, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.135917Z", "completed_at": "2022-12-19T16:17:42.147185Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.148051Z", "completed_at": "2022-12-19T16:17:42.148054Z"}], "thread_id": "Thread-2", "execution_time": 0.01376199722290039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.135986Z", "completed_at": "2022-12-19T16:17:42.147249Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.148132Z", "completed_at": "2022-12-19T16:17:42.148137Z"}], "thread_id": "Thread-4", "execution_time": 0.013815164566040039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.138623Z", "completed_at": "2022-12-19T16:17:42.147411Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.148324Z", "completed_at": "2022-12-19T16:17:42.148329Z"}], "thread_id": "Thread-3", "execution_time": 0.01387786865234375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.149036Z", "completed_at": "2022-12-19T16:17:42.154137Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.185797Z", "completed_at": "2022-12-19T16:17:42.185805Z"}], "thread_id": "Thread-1", "execution_time": 0.04062080383300781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.154356Z", "completed_at": "2022-12-19T16:17:42.188756Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.189714Z", "completed_at": "2022-12-19T16:17:42.189720Z"}], "thread_id": "Thread-4", "execution_time": 0.03670001029968262, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.154281Z", "completed_at": "2022-12-19T16:17:42.188959Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.189885Z", "completed_at": "2022-12-19T16:17:42.189889Z"}], "thread_id": "Thread-2", "execution_time": 0.03735780715942383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.154496Z", "completed_at": "2022-12-19T16:17:42.189469Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.190363Z", "completed_at": "2022-12-19T16:17:42.190367Z"}], "thread_id": "Thread-3", "execution_time": 0.040171146392822266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.189959Z", "completed_at": "2022-12-19T16:17:42.194731Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.195573Z", "completed_at": "2022-12-19T16:17:42.195577Z"}], "thread_id": "Thread-1", "execution_time": 0.009379863739013672, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.195435Z", "completed_at": "2022-12-19T16:17:42.204530Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.205420Z", "completed_at": "2022-12-19T16:17:42.205425Z"}], "thread_id": "Thread-4", "execution_time": 0.011587858200073242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.195643Z", "completed_at": "2022-12-19T16:17:42.205016Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.205645Z", "completed_at": "2022-12-19T16:17:42.205648Z"}], "thread_id": "Thread-2", "execution_time": 0.013918876647949219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.198239Z", "completed_at": "2022-12-19T16:17:42.205172Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.205991Z", "completed_at": "2022-12-19T16:17:42.205994Z"}], "thread_id": "Thread-3", "execution_time": 0.014150857925415039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.205575Z", "completed_at": "2022-12-19T16:17:42.209981Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.210885Z", "completed_at": "2022-12-19T16:17:42.210889Z"}], "thread_id": "Thread-1", "execution_time": 0.008810997009277344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.210748Z", "completed_at": "2022-12-19T16:17:42.218844Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.219692Z", "completed_at": "2022-12-19T16:17:42.219697Z"}], "thread_id": "Thread-4", "execution_time": 0.010671854019165039, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.210956Z", "completed_at": "2022-12-19T16:17:42.219472Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.220418Z", "completed_at": "2022-12-19T16:17:42.220421Z"}], "thread_id": "Thread-2", "execution_time": 0.013593912124633789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.213337Z", "completed_at": "2022-12-19T16:17:42.219527Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.220493Z", "completed_at": "2022-12-19T16:17:42.220497Z"}], "thread_id": "Thread-3", "execution_time": 0.01368093490600586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.219924Z", "completed_at": "2022-12-19T16:17:42.224808Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.225989Z", "completed_at": "2022-12-19T16:17:42.225995Z"}], "thread_id": "Thread-1", "execution_time": 0.010885953903198242, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.225815Z", "completed_at": "2022-12-19T16:17:42.232857Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.236107Z", "completed_at": "2022-12-19T16:17:42.236114Z"}], "thread_id": "Thread-4", "execution_time": 0.012239933013916016, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.229699Z", "completed_at": "2022-12-19T16:17:42.235886Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.236709Z", "completed_at": "2022-12-19T16:17:42.236712Z"}], "thread_id": "Thread-2", "execution_time": 0.014646053314208984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.230109Z", "completed_at": "2022-12-19T16:17:42.236253Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.240014Z", "completed_at": "2022-12-19T16:17:42.240019Z"}], "thread_id": "Thread-3", "execution_time": 0.015208005905151367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.236320Z", "completed_at": "2022-12-19T16:17:42.240915Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.241971Z", "completed_at": "2022-12-19T16:17:42.241975Z"}], "thread_id": "Thread-1", "execution_time": 0.009623050689697266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.241553Z", "completed_at": "2022-12-19T16:17:42.247848Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.252285Z", "completed_at": "2022-12-19T16:17:42.252291Z"}], "thread_id": "Thread-4", "execution_time": 0.012593984603881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.244764Z", "completed_at": "2022-12-19T16:17:42.252158Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.253046Z", "completed_at": "2022-12-19T16:17:42.253050Z"}], "thread_id": "Thread-2", "execution_time": 0.014880180358886719, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.247743Z", "completed_at": "2022-12-19T16:17:42.252441Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.255686Z", "completed_at": "2022-12-19T16:17:42.255691Z"}], "thread_id": "Thread-3", "execution_time": 0.01481485366821289, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.252895Z", "completed_at": "2022-12-19T16:17:42.257064Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.260721Z", "completed_at": "2022-12-19T16:17:42.260728Z"}], "thread_id": "Thread-1", "execution_time": 0.009313106536865234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.257698Z", "completed_at": "2022-12-19T16:17:42.263657Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.266952Z", "completed_at": "2022-12-19T16:17:42.266959Z"}], "thread_id": "Thread-4", "execution_time": 0.011352777481079102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.260916Z", "completed_at": "2022-12-19T16:17:42.266846Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.267974Z", "completed_at": "2022-12-19T16:17:42.267981Z"}], "thread_id": "Thread-2", "execution_time": 0.012536048889160156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.261361Z", "completed_at": "2022-12-19T16:17:42.267114Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.269658Z", "completed_at": "2022-12-19T16:17:42.269663Z"}], "thread_id": "Thread-3", "execution_time": 0.012709856033325195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors_tmp"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.267713Z", "completed_at": "2022-12-19T16:17:42.270390Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.271535Z", "completed_at": "2022-12-19T16:17:42.271538Z"}], "thread_id": "Thread-1", "execution_time": 0.006741046905517578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.271460Z", "completed_at": "2022-12-19T16:17:42.274715Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.277761Z", "completed_at": "2022-12-19T16:17:42.277766Z"}], "thread_id": "Thread-4", "execution_time": 0.008108139038085938, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_account_type_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.273566Z", "completed_at": "2022-12-19T16:17:42.277672Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.278465Z", "completed_at": "2022-12-19T16:17:42.278468Z"}], "thread_id": "Thread-2", "execution_time": 0.00860285758972168, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.275068Z", "completed_at": "2022-12-19T16:17:42.277916Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.279628Z", "completed_at": "2022-12-19T16:17:42.279631Z"}], "thread_id": "Thread-3", "execution_time": 0.00882101058959961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_book_sub_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.278324Z", "completed_at": "2022-12-19T16:17:42.280190Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.281503Z", "completed_at": "2022-12-19T16:17:42.281508Z"}], "thread_id": "Thread-1", "execution_time": 0.00691676139831543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.281422Z", "completed_at": "2022-12-19T16:17:42.283589Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.286554Z", "completed_at": "2022-12-19T16:17:42.286559Z"}], "thread_id": "Thread-4", "execution_time": 0.007029056549072266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_accounting_period_fiscal_cal_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.283518Z", "completed_at": "2022-12-19T16:17:42.286475Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.287276Z", "completed_at": "2022-12-19T16:17:42.287279Z"}], "thread_id": "Thread-2", "execution_time": 0.008619070053100586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_classification_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.283884Z", "completed_at": "2022-12-19T16:17:42.286700Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.289476Z", "completed_at": "2022-12-19T16:17:42.289480Z"}], "thread_id": "Thread-3", "execution_time": 0.008661031723022461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_consolidated_exchange_rate_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.287137Z", "completed_at": "2022-12-19T16:17:42.290044Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.291434Z", "completed_at": "2022-12-19T16:17:42.291440Z"}], "thread_id": "Thread-1", "execution_time": 0.007930994033813477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_currency_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.291341Z", "completed_at": "2022-12-19T16:17:42.293485Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.296025Z", "completed_at": "2022-12-19T16:17:42.296029Z"}], "thread_id": "Thread-4", "execution_time": 0.00671696662902832, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_customer_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.293414Z", "completed_at": "2022-12-19T16:17:42.295954Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.296886Z", "completed_at": "2022-12-19T16:17:42.296890Z"}], "thread_id": "Thread-2", "execution_time": 0.00781702995300293, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_department_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.293638Z", "completed_at": "2022-12-19T16:17:42.296216Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.298407Z", "completed_at": "2022-12-19T16:17:42.298414Z"}], "thread_id": "Thread-3", "execution_time": 0.00789785385131836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entities_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.296708Z", "completed_at": "2022-12-19T16:17:42.299209Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.300527Z", "completed_at": "2022-12-19T16:17:42.300532Z"}], "thread_id": "Thread-1", "execution_time": 0.00745701789855957, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_entity_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.300450Z", "completed_at": "2022-12-19T16:17:42.302533Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.306139Z", "completed_at": "2022-12-19T16:17:42.306143Z"}], "thread_id": "Thread-4", "execution_time": 0.007866859436035156, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_item_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.302465Z", "completed_at": "2022-12-19T16:17:42.306047Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.307208Z", "completed_at": "2022-12-19T16:17:42.307217Z"}], "thread_id": "Thread-2", "execution_time": 0.008936166763305664, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_job_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.302695Z", "completed_at": "2022-12-19T16:17:42.306400Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.308785Z", "completed_at": "2022-12-19T16:17:42.308791Z"}], "thread_id": "Thread-3", "execution_time": 0.009186029434204102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.307006Z", "completed_at": "2022-12-19T16:17:42.309514Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.310691Z", "completed_at": "2022-12-19T16:17:42.310694Z"}], "thread_id": "Thread-1", "execution_time": 0.008495807647705078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_location_main_address_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.310617Z", "completed_at": "2022-12-19T16:17:42.312590Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.315536Z", "completed_at": "2022-12-19T16:17:42.315541Z"}], "thread_id": "Thread-4", "execution_time": 0.006974935531616211, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_subsidiary_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.312517Z", "completed_at": "2022-12-19T16:17:42.315454Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.316604Z", "completed_at": "2022-12-19T16:17:42.316607Z"}], "thread_id": "Thread-2", "execution_time": 0.007937908172607422, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_tran_acct_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.312836Z", "completed_at": "2022-12-19T16:17:42.315829Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.318035Z", "completed_at": "2022-12-19T16:17:42.318039Z"}], "thread_id": "Thread-3", "execution_time": 0.008064031600952148, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.316402Z", "completed_at": "2022-12-19T16:17:42.318618Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.319667Z", "completed_at": "2022-12-19T16:17:42.319670Z"}], "thread_id": "Thread-1", "execution_time": 0.008163213729858398, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_transaction_line_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.319596Z", "completed_at": "2022-12-19T16:17:42.322643Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.325525Z", "completed_at": "2022-12-19T16:17:42.325530Z"}], "thread_id": "Thread-4", "execution_time": 0.007748126983642578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_category_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.322535Z", "completed_at": "2022-12-19T16:17:42.325443Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.326516Z", "completed_at": "2022-12-19T16:17:42.326520Z"}], "thread_id": "Thread-2", "execution_time": 0.008857965469360352, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite2_vendor_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.322843Z", "completed_at": "2022-12-19T16:17:42.325681Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.327970Z", "completed_at": "2022-12-19T16:17:42.327974Z"}], "thread_id": "Thread-3", "execution_time": 0.009126901626586914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_books_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.326350Z", "completed_at": "2022-12-19T16:17:42.328634Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.329735Z", "completed_at": "2022-12-19T16:17:42.329738Z"}], "thread_id": "Thread-1", "execution_time": 0.007336854934692383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounting_periods_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.329663Z", "completed_at": "2022-12-19T16:17:42.331839Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.335055Z", "completed_at": "2022-12-19T16:17:42.335064Z"}], "thread_id": "Thread-4", "execution_time": 0.0071887969970703125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.331761Z", "completed_at": "2022-12-19T16:17:42.334970Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.335812Z", "completed_at": "2022-12-19T16:17:42.335816Z"}], "thread_id": "Thread-2", "execution_time": 0.008823156356811523, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_classes_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.332202Z", "completed_at": "2022-12-19T16:17:42.335213Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.337975Z", "completed_at": "2022-12-19T16:17:42.337979Z"}], "thread_id": "Thread-3", "execution_time": 0.009017229080200195, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_consolidated_exchange_rates_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.335669Z", "completed_at": "2022-12-19T16:17:42.338566Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.339835Z", "completed_at": "2022-12-19T16:17:42.339840Z"}], "thread_id": "Thread-1", "execution_time": 0.007828950881958008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_currencies_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.339761Z", "completed_at": "2022-12-19T16:17:42.341765Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.344914Z", "completed_at": "2022-12-19T16:17:42.344919Z"}], "thread_id": "Thread-4", "execution_time": 0.007031917572021484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_customers_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.341694Z", "completed_at": "2022-12-19T16:17:42.344834Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.345720Z", "completed_at": "2022-12-19T16:17:42.345723Z"}], "thread_id": "Thread-2", "execution_time": 0.007674217224121094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_departments_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.342140Z", "completed_at": "2022-12-19T16:17:42.345061Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.346879Z", "completed_at": "2022-12-19T16:17:42.346882Z"}], "thread_id": "Thread-3", "execution_time": 0.007961034774780273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_expense_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.345522Z", "completed_at": "2022-12-19T16:17:42.347540Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.349076Z", "completed_at": "2022-12-19T16:17:42.349084Z"}], "thread_id": "Thread-1", "execution_time": 0.007397174835205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_income_accounts_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.348996Z", "completed_at": "2022-12-19T16:17:42.351222Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.354801Z", "completed_at": "2022-12-19T16:17:42.354806Z"}], "thread_id": "Thread-4", "execution_time": 0.008002042770385742, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_items_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.351150Z", "completed_at": "2022-12-19T16:17:42.354721Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.355548Z", "completed_at": "2022-12-19T16:17:42.355552Z"}], "thread_id": "Thread-2", "execution_time": 0.008514881134033203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_locations_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.351416Z", "completed_at": "2022-12-19T16:17:42.354951Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.356952Z", "completed_at": "2022-12-19T16:17:42.356958Z"}], "thread_id": "Thread-3", "execution_time": 0.008613109588623047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_subsidiaries_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.355403Z", "completed_at": "2022-12-19T16:17:42.357583Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.358780Z", "completed_at": "2022-12-19T16:17:42.358786Z"}], "thread_id": "Thread-1", "execution_time": 0.007328987121582031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transaction_lines_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.358649Z", "completed_at": "2022-12-19T16:17:42.361136Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.363815Z", "completed_at": "2022-12-19T16:17:42.363821Z"}], "thread_id": "Thread-4", "execution_time": 0.0070188045501708984, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_transactions_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.361065Z", "completed_at": "2022-12-19T16:17:42.363689Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.364698Z", "completed_at": "2022-12-19T16:17:42.364701Z"}], "thread_id": "Thread-2", "execution_time": 0.014396905899047852, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendor_types_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.361314Z", "completed_at": "2022-12-19T16:17:42.363997Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.372357Z", "completed_at": "2022-12-19T16:17:42.372366Z"}], "thread_id": "Thread-3", "execution_time": 0.014400005340576172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "seed.netsuite_source_integration_tests.netsuite_vendors_data"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.379041Z", "completed_at": "2022-12-19T16:17:42.686443Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.687224Z", "completed_at": "2022-12-19T16:17:42.687232Z"}], "thread_id": "Thread-2", "execution_time": 0.3384838104248047, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__account_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.364547Z", "completed_at": "2022-12-19T16:17:42.686846Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.687477Z", "completed_at": "2022-12-19T16:17:42.687480Z"}], "thread_id": "Thread-1", "execution_time": 0.3568739891052246, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_book_subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.374327Z", "completed_at": "2022-12-19T16:17:42.686981Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.687649Z", "completed_at": "2022-12-19T16:17:42.687652Z"}], "thread_id": "Thread-4", "execution_time": 0.34682416915893555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_period_fiscal_cal"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.379211Z", "completed_at": "2022-12-19T16:17:42.686710Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.687392Z", "completed_at": "2022-12-19T16:17:42.687395Z"}], "thread_id": "Thread-3", "execution_time": 0.345458984375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.713356Z", "completed_at": "2022-12-19T16:17:42.987517Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:42.987918Z", "completed_at": "2022-12-19T16:17:42.987928Z"}], "thread_id": "Thread-2", "execution_time": 0.30354881286621094, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.721954Z", "completed_at": "2022-12-19T16:17:43.067272Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.067614Z", "completed_at": "2022-12-19T16:17:43.067622Z"}], "thread_id": "Thread-4", "execution_time": 0.3720970153808594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.721873Z", "completed_at": "2022-12-19T16:17:43.067499Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.067984Z", "completed_at": "2022-12-19T16:17:43.067988Z"}], "thread_id": "Thread-1", "execution_time": 0.3727428913116455, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:42.722029Z", "completed_at": "2022-12-19T16:17:43.067796Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.068264Z", "completed_at": "2022-12-19T16:17:43.068267Z"}], "thread_id": "Thread-3", "execution_time": 0.37345385551452637, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.017698Z", "completed_at": "2022-12-19T16:17:43.301623Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.301884Z", "completed_at": "2022-12-19T16:17:43.301893Z"}], "thread_id": "Thread-2", "execution_time": 0.31259584426879883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.104921Z", "completed_at": "2022-12-19T16:17:43.426985Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.427453Z", "completed_at": "2022-12-19T16:17:43.427456Z"}], "thread_id": "Thread-3", "execution_time": 0.3585238456726074, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entities"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.095642Z", "completed_at": "2022-12-19T16:17:43.427287Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.427765Z", "completed_at": "2022-12-19T16:17:43.427767Z"}], "thread_id": "Thread-4", "execution_time": 0.36024904251098633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.095969Z", "completed_at": "2022-12-19T16:17:43.426892Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.427373Z", "completed_at": "2022-12-19T16:17:43.427380Z"}], "thread_id": "Thread-1", "execution_time": 0.3599839210510254, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.330967Z", "completed_at": "2022-12-19T16:17:43.606041Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.606273Z", "completed_at": "2022-12-19T16:17:43.606281Z"}], "thread_id": "Thread-2", "execution_time": 0.30294299125671387, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__entity_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.456995Z", "completed_at": "2022-12-19T16:17:43.853750Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.853931Z", "completed_at": "2022-12-19T16:17:43.853938Z"}], "thread_id": "Thread-1", "execution_time": 0.4242391586303711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__location_main_address"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.456839Z", "completed_at": "2022-12-19T16:17:43.854543Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.854676Z", "completed_at": "2022-12-19T16:17:43.854678Z"}], "thread_id": "Thread-3", "execution_time": 0.4251120090484619, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.456921Z", "completed_at": "2022-12-19T16:17:43.854092Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.854249Z", "completed_at": "2022-12-19T16:17:43.854253Z"}], "thread_id": "Thread-4", "execution_time": 0.4251246452331543, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__jobs"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.634252Z", "completed_at": "2022-12-19T16:17:43.937461Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:43.937641Z", "completed_at": "2022-12-19T16:17:43.937648Z"}], "thread_id": "Thread-2", "execution_time": 0.33092594146728516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.882965Z", "completed_at": "2022-12-19T16:17:44.193331Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.193914Z", "completed_at": "2022-12-19T16:17:44.193922Z"}], "thread_id": "Thread-4", "execution_time": 0.33619022369384766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.882827Z", "completed_at": "2022-12-19T16:17:44.193430Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.194005Z", "completed_at": "2022-12-19T16:17:44.194008Z"}], "thread_id": "Thread-1", "execution_time": 0.3437798023223877, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transaction_accounting_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.882900Z", "completed_at": "2022-12-19T16:17:44.193523Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.194088Z", "completed_at": "2022-12-19T16:17:44.194090Z"}], "thread_id": "Thread-3", "execution_time": 0.3439319133758545, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:43.965479Z", "completed_at": "2022-12-19T16:17:44.245919Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.246093Z", "completed_at": "2022-12-19T16:17:44.246100Z"}], "thread_id": "Thread-2", "execution_time": 0.30701589584350586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.219547Z", "completed_at": "2022-12-19T16:17:44.485338Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.485675Z", "completed_at": "2022-12-19T16:17:44.485686Z"}], "thread_id": "Thread-4", "execution_time": 0.3626101016998291, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendor_categories"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.227518Z", "completed_at": "2022-12-19T16:17:44.503537Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.503775Z", "completed_at": "2022-12-19T16:17:44.503781Z"}], "thread_id": "Thread-3", "execution_time": 0.3551349639892578, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_books"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.227436Z", "completed_at": "2022-12-19T16:17:44.582596Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.583539Z", "completed_at": "2022-12-19T16:17:44.583543Z"}], "thread_id": "Thread-1", "execution_time": 0.39065003395080566, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite2__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.272909Z", "completed_at": "2022-12-19T16:17:44.635841Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.636005Z", "completed_at": "2022-12-19T16:17:44.636011Z"}], "thread_id": "Thread-2", "execution_time": 0.3900296688079834, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounting_periods"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.583819Z", "completed_at": "2022-12-19T16:17:44.853752Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.854038Z", "completed_at": "2022-12-19T16:17:44.854049Z"}], "thread_id": "Thread-3", "execution_time": 0.3030250072479248, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__classes"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.583678Z", "completed_at": "2022-12-19T16:17:44.873678Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.873925Z", "completed_at": "2022-12-19T16:17:44.873932Z"}], "thread_id": "Thread-4", "execution_time": 0.3181769847869873, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.618098Z", "completed_at": "2022-12-19T16:17:44.886708Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.887373Z", "completed_at": "2022-12-19T16:17:44.887378Z"}], "thread_id": "Thread-1", "execution_time": 0.2993462085723877, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__consolidated_exchange_rates"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.663323Z", "completed_at": "2022-12-19T16:17:44.934500Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:44.934686Z", "completed_at": "2022-12-19T16:17:44.934693Z"}], "thread_id": "Thread-2", "execution_time": 0.29917097091674805, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__currencies"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.887461Z", "completed_at": "2022-12-19T16:17:45.152281Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.152572Z", "completed_at": "2022-12-19T16:17:45.152582Z"}], "thread_id": "Thread-3", "execution_time": 0.290726900100708, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__customers"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.917850Z", "completed_at": "2022-12-19T16:17:45.208791Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.209224Z", "completed_at": "2022-12-19T16:17:45.209231Z"}], "thread_id": "Thread-1", "execution_time": 0.3169898986816406, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__expense_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.901837Z", "completed_at": "2022-12-19T16:17:45.208894Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.209333Z", "completed_at": "2022-12-19T16:17:45.209338Z"}], "thread_id": "Thread-4", "execution_time": 0.34013891220092773, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__departments"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:44.962926Z", "completed_at": "2022-12-19T16:17:45.277575Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.277780Z", "completed_at": "2022-12-19T16:17:45.277787Z"}], "thread_id": "Thread-2", "execution_time": 0.3444368839263916, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__income_accounts"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.235398Z", "completed_at": "2022-12-19T16:17:45.544553Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.544865Z", "completed_at": "2022-12-19T16:17:45.544873Z"}], "thread_id": "Thread-1", "execution_time": 0.3350238800048828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__locations"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.178846Z", "completed_at": "2022-12-19T16:17:45.544640Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.544944Z", "completed_at": "2022-12-19T16:17:45.544947Z"}], "thread_id": "Thread-3", "execution_time": 0.39702606201171875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__items"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.307891Z", "completed_at": "2022-12-19T16:17:45.608398Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.608542Z", "completed_at": "2022-12-19T16:17:45.608545Z"}], "thread_id": "Thread-2", "execution_time": 0.32839107513427734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transaction_lines"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.242476Z", "completed_at": "2022-12-19T16:17:45.608015Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.608189Z", "completed_at": "2022-12-19T16:17:45.608195Z"}], "thread_id": "Thread-4", "execution_time": 0.39412713050842285, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__subsidiaries"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.637460Z", "completed_at": "2022-12-19T16:17:45.649039Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.649196Z", "completed_at": "2022-12-19T16:17:45.649201Z"}], "thread_id": "Thread-4", "execution_time": 0.01243281364440918, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__account_types_account_type_id.20889967ef"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.649984Z", "completed_at": "2022-12-19T16:17:45.653788Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.653936Z", "completed_at": "2022-12-19T16:17:45.653940Z"}], "thread_id": "Thread-4", "execution_time": 0.004513978958129883, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__account_types_account_type_id.aaea9bec0f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.654674Z", "completed_at": "2022-12-19T16:17:45.657255Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.657399Z", "completed_at": "2022-12-19T16:17:45.657402Z"}], "thread_id": "Thread-4", "execution_time": 0.003199338912963867, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.76e6e71411"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.658113Z", "completed_at": "2022-12-19T16:17:45.660537Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.660691Z", "completed_at": "2022-12-19T16:17:45.660695Z"}], "thread_id": "Thread-4", "execution_time": 0.0030701160430908203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_book_subsidiaries__fivetran_id.27ddb08396"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.661417Z", "completed_at": "2022-12-19T16:17:45.664605Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.664757Z", "completed_at": "2022-12-19T16:17:45.664762Z"}], "thread_id": "Thread-4", "execution_time": 0.003834962844848633, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.ec8750b679"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.665469Z", "completed_at": "2022-12-19T16:17:45.667784Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.667935Z", "completed_at": "2022-12-19T16:17:45.667939Z"}], "thread_id": "Thread-4", "execution_time": 0.002946138381958008, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_period_fiscal_cal__fivetran_id.d2038de348"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.668637Z", "completed_at": "2022-12-19T16:17:45.671009Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.671152Z", "completed_at": "2022-12-19T16:17:45.671155Z"}], "thread_id": "Thread-4", "execution_time": 0.0029859542846679688, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_books_accounting_book_id.1b7504d30e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.671885Z", "completed_at": "2022-12-19T16:17:45.674275Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.674417Z", "completed_at": "2022-12-19T16:17:45.674420Z"}], "thread_id": "Thread-4", "execution_time": 0.0030498504638671875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_books_accounting_book_id.70d96d1230"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.675115Z", "completed_at": "2022-12-19T16:17:45.677561Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.677707Z", "completed_at": "2022-12-19T16:17:45.677710Z"}], "thread_id": "Thread-4", "execution_time": 0.0030617713928222656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__classes_class_id.799b01ffba"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.678412Z", "completed_at": "2022-12-19T16:17:45.680754Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.680891Z", "completed_at": "2022-12-19T16:17:45.680895Z"}], "thread_id": "Thread-4", "execution_time": 0.0029489994049072266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__classes_class_id.d069e30c98"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.681581Z", "completed_at": "2022-12-19T16:17:45.714513Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.714674Z", "completed_at": "2022-12-19T16:17:45.714679Z"}], "thread_id": "Thread-4", "execution_time": 0.03358602523803711, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounts_account_id.5a542e47a2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.715390Z", "completed_at": "2022-12-19T16:17:45.717921Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.718069Z", "completed_at": "2022-12-19T16:17:45.718073Z"}], "thread_id": "Thread-4", "execution_time": 0.0031630992889404297, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounts_account_id.23a63b3e17"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.718772Z", "completed_at": "2022-12-19T16:17:45.721199Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.721346Z", "completed_at": "2022-12-19T16:17:45.721349Z"}], "thread_id": "Thread-4", "execution_time": 0.003053903579711914, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__accounting_periods_accounting_period_id.f2db2c547c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.722091Z", "completed_at": "2022-12-19T16:17:45.724829Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.724983Z", "completed_at": "2022-12-19T16:17:45.724988Z"}], "thread_id": "Thread-4", "execution_time": 0.003390073776245117, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__accounting_periods_accounting_period_id.a9d8f4c6e1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.725740Z", "completed_at": "2022-12-19T16:17:45.728590Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.728737Z", "completed_at": "2022-12-19T16:17:45.728742Z"}], "thread_id": "Thread-4", "execution_time": 0.0035016536712646484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.09703507c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.729458Z", "completed_at": "2022-12-19T16:17:45.732012Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.732160Z", "completed_at": "2022-12-19T16:17:45.732165Z"}], "thread_id": "Thread-4", "execution_time": 0.0031890869140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__consolidated_exchange_rates_consolidated_exchange_rate_id.2d4725bb7a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.732874Z", "completed_at": "2022-12-19T16:17:45.736139Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.736289Z", "completed_at": "2022-12-19T16:17:45.736295Z"}], "thread_id": "Thread-4", "execution_time": 0.0039103031158447266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__currencies_currency_id.7eff9f9c1c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.737050Z", "completed_at": "2022-12-19T16:17:45.739628Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.739787Z", "completed_at": "2022-12-19T16:17:45.739792Z"}], "thread_id": "Thread-4", "execution_time": 0.003248929977416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__currencies_currency_id.50d9c37c78"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.740550Z", "completed_at": "2022-12-19T16:17:45.743097Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.743264Z", "completed_at": "2022-12-19T16:17:45.743268Z"}], "thread_id": "Thread-4", "execution_time": 0.003228902816772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__entities_entity_id.f22c18cfa2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.743991Z", "completed_at": "2022-12-19T16:17:45.746317Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.746459Z", "completed_at": "2022-12-19T16:17:45.746463Z"}], "thread_id": "Thread-4", "execution_time": 0.0029370784759521484, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__entities_entity_id.f9acd04f50"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.747146Z", "completed_at": "2022-12-19T16:17:45.749587Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.749727Z", "completed_at": "2022-12-19T16:17:45.749731Z"}], "thread_id": "Thread-4", "execution_time": 0.0030517578125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__customers_customer_id.65a5ae302a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.750413Z", "completed_at": "2022-12-19T16:17:45.752803Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.752953Z", "completed_at": "2022-12-19T16:17:45.752957Z"}], "thread_id": "Thread-4", "execution_time": 0.003014087677001953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__customers_customer_id.05ca0360f2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.753644Z", "completed_at": "2022-12-19T16:17:45.756802Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.756947Z", "completed_at": "2022-12-19T16:17:45.756950Z"}], "thread_id": "Thread-4", "execution_time": 0.003777027130126953, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__departments_department_id.7395bbfe71"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.757657Z", "completed_at": "2022-12-19T16:17:45.760029Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.760171Z", "completed_at": "2022-12-19T16:17:45.760175Z"}], "thread_id": "Thread-4", "execution_time": 0.003000974655151367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__departments_department_id.13e4897f0b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.760875Z", "completed_at": "2022-12-19T16:17:45.763258Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.763399Z", "completed_at": "2022-12-19T16:17:45.763402Z"}], "thread_id": "Thread-4", "execution_time": 0.0030319690704345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__items_item_id.e216b5b06a"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.764084Z", "completed_at": "2022-12-19T16:17:45.766412Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.766553Z", "completed_at": "2022-12-19T16:17:45.766556Z"}], "thread_id": "Thread-4", "execution_time": 0.002933979034423828, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__items_item_id.3fcafd9eee"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.767248Z", "completed_at": "2022-12-19T16:17:45.774669Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.774833Z", "completed_at": "2022-12-19T16:17:45.774837Z"}], "thread_id": "Thread-4", "execution_time": 0.00808095932006836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__jobs_job_id.d7b5b06b33"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.777915Z", "completed_at": "2022-12-19T16:17:45.785176Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.785377Z", "completed_at": "2022-12-19T16:17:45.785382Z"}], "thread_id": "Thread-4", "execution_time": 0.010280132293701172, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__jobs_job_id.c294ea849c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.789185Z", "completed_at": "2022-12-19T16:17:45.794023Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.794376Z", "completed_at": "2022-12-19T16:17:45.794380Z"}], "thread_id": "Thread-4", "execution_time": 0.005712270736694336, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__locations_location_id.c335a5985e"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.795440Z", "completed_at": "2022-12-19T16:17:45.797924Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.798071Z", "completed_at": "2022-12-19T16:17:45.798075Z"}], "thread_id": "Thread-4", "execution_time": 0.003248929977416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__locations_location_id.f1469a5149"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.798796Z", "completed_at": "2022-12-19T16:17:45.804527Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.804680Z", "completed_at": "2022-12-19T16:17:45.804684Z"}], "thread_id": "Thread-4", "execution_time": 0.006382942199707031, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_lines_transaction_id__transaction_line_id.07b823514f"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.805391Z", "completed_at": "2022-12-19T16:17:45.807839Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.807985Z", "completed_at": "2022-12-19T16:17:45.807989Z"}], "thread_id": "Thread-4", "execution_time": 0.0030701160430908203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_id.267b150890"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.808675Z", "completed_at": "2022-12-19T16:17:45.811069Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.811207Z", "completed_at": "2022-12-19T16:17:45.811211Z"}], "thread_id": "Thread-4", "execution_time": 0.0030002593994140625, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_lines_transaction_line_id.a82e70adc1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.811895Z", "completed_at": "2022-12-19T16:17:45.815190Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.815360Z", "completed_at": "2022-12-19T16:17:45.815365Z"}], "thread_id": "Thread-4", "execution_time": 0.0039691925048828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite2__transaction_accounting_lines_transaction_id__transaction_line_id.34750610bd"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.816144Z", "completed_at": "2022-12-19T16:17:45.819875Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.820032Z", "completed_at": "2022-12-19T16:17:45.820037Z"}], "thread_id": "Thread-4", "execution_time": 0.004402875900268555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_id.f28afbfa25"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.820791Z", "completed_at": "2022-12-19T16:17:45.824801Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.825080Z", "completed_at": "2022-12-19T16:17:45.825086Z"}], "thread_id": "Thread-4", "execution_time": 0.00485682487487793, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transaction_accounting_lines_transaction_line_id.0f72869807"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.826153Z", "completed_at": "2022-12-19T16:17:45.829090Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.829258Z", "completed_at": "2022-12-19T16:17:45.829264Z"}], "thread_id": "Thread-4", "execution_time": 0.0037260055541992188, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__subsidiaries_subsidiary_id.0ab6516626"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.830038Z", "completed_at": "2022-12-19T16:17:45.832869Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.833081Z", "completed_at": "2022-12-19T16:17:45.833087Z"}], "thread_id": "Thread-4", "execution_time": 0.00360107421875, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__subsidiaries_subsidiary_id.8edc974229"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.834103Z", "completed_at": "2022-12-19T16:17:45.837203Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.837357Z", "completed_at": "2022-12-19T16:17:45.837362Z"}], "thread_id": "Thread-4", "execution_time": 0.0038809776306152344, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__transactions_transaction_id.b4f6c6a72b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.838300Z", "completed_at": "2022-12-19T16:17:45.847185Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.847443Z", "completed_at": "2022-12-19T16:17:45.847449Z"}], "thread_id": "Thread-4", "execution_time": 0.009896039962768555, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__transactions_transaction_id.af3d15dce4"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.848561Z", "completed_at": "2022-12-19T16:17:45.852287Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.852438Z", "completed_at": "2022-12-19T16:17:45.852442Z"}], "thread_id": "Thread-4", "execution_time": 0.004431962966918945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendor_categories_vendor_category_id.60acd9acb2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.853164Z", "completed_at": "2022-12-19T16:17:45.855565Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.855707Z", "completed_at": "2022-12-19T16:17:45.855711Z"}], "thread_id": "Thread-4", "execution_time": 0.0030319690704345703, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendor_categories_vendor_category_id.874da088c6"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.856413Z", "completed_at": "2022-12-19T16:17:45.863407Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.863643Z", "completed_at": "2022-12-19T16:17:45.863648Z"}], "thread_id": "Thread-4", "execution_time": 0.007812976837158203, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_books_accounting_book_id.12972ee6fc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.864731Z", "completed_at": "2022-12-19T16:17:45.867611Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.867767Z", "completed_at": "2022-12-19T16:17:45.867772Z"}], "thread_id": "Thread-4", "execution_time": 0.003614187240600586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__accounting_books_accounting_book_id.22e0106417"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.868522Z", "completed_at": "2022-12-19T16:17:45.870987Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.871134Z", "completed_at": "2022-12-19T16:17:45.871138Z"}], "thread_id": "Thread-4", "execution_time": 0.003108978271484375, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite2__vendors_vendor_id.777b758daf"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.570685Z", "completed_at": "2022-12-19T16:17:45.847360Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.847917Z", "completed_at": "2022-12-19T16:17:45.847923Z"}], "thread_id": "Thread-1", "execution_time": 0.3053269386291504, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__transactions"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.871855Z", "completed_at": "2022-12-19T16:17:45.875431Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.876162Z", "completed_at": "2022-12-19T16:17:45.876166Z"}], "thread_id": "Thread-4", "execution_time": 0.005023956298828125, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite2__vendors_vendor_id.415829ac1d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.876946Z", "completed_at": "2022-12-19T16:17:45.883037Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.883270Z", "completed_at": "2022-12-19T16:17:45.883275Z"}], "thread_id": "Thread-1", "execution_time": 0.007331132888793945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__accounting_periods_accounting_period_id__fiscal_calendar_id.43005ecb69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.880590Z", "completed_at": "2022-12-19T16:17:45.883215Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.883691Z", "completed_at": "2022-12-19T16:17:45.883696Z"}], "thread_id": "Thread-4", "execution_time": 0.006997585296630859, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_accounting_period_id.5c1c46821c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.576055Z", "completed_at": "2022-12-19T16:17:45.863566Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.864091Z", "completed_at": "2022-12-19T16:17:45.864095Z"}], "thread_id": "Thread-3", "execution_time": 0.3147878646850586, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendor_types"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.884742Z", "completed_at": "2022-12-19T16:17:45.889693Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.890058Z", "completed_at": "2022-12-19T16:17:45.890065Z"}], "thread_id": "Thread-1", "execution_time": 0.006634950637817383, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounting_periods_fiscal_calendar_id.8d75190563"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.887174Z", "completed_at": "2022-12-19T16:17:45.889949Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.890913Z", "completed_at": "2022-12-19T16:17:45.890917Z"}], "thread_id": "Thread-4", "execution_time": 0.006983757019042969, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__classes_class_id.462bfda765"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.892735Z", "completed_at": "2022-12-19T16:17:45.901510Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.942371Z", "completed_at": "2022-12-19T16:17:45.942381Z"}], "thread_id": "Thread-1", "execution_time": 0.05108284950256348, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__accounts_account_id.f03cddbace"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.892659Z", "completed_at": "2022-12-19T16:17:45.901585Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.942539Z", "completed_at": "2022-12-19T16:17:45.942544Z"}], "thread_id": "Thread-3", "execution_time": 0.05172109603881836, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__classes_class_id.c63c54840b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.898768Z", "completed_at": "2022-12-19T16:17:45.906868Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.942638Z", "completed_at": "2022-12-19T16:17:45.942641Z"}], "thread_id": "Thread-4", "execution_time": 0.051217079162597656, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__accounts_account_id.e94563d281"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.945277Z", "completed_at": "2022-12-19T16:17:45.953410Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.953580Z", "completed_at": "2022-12-19T16:17:45.953586Z"}], "thread_id": "Thread-1", "execution_time": 0.00957798957824707, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.83de8c8e97"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.945372Z", "completed_at": "2022-12-19T16:17:45.954219Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.954723Z", "completed_at": "2022-12-19T16:17:45.954727Z"}], "thread_id": "Thread-3", "execution_time": 0.012766361236572266, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__consolidated_exchange_rates_consolidated_exchange_rate_id.2ca94ecb54"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.945446Z", "completed_at": "2022-12-19T16:17:45.954434Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.957078Z", "completed_at": "2022-12-19T16:17:45.957082Z"}], "thread_id": "Thread-4", "execution_time": 0.012861967086791992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__currencies_currency_id.e8b331ffb3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.954576Z", "completed_at": "2022-12-19T16:17:45.957857Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.958634Z", "completed_at": "2022-12-19T16:17:45.958637Z"}], "thread_id": "Thread-1", "execution_time": 0.004957914352416992, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__currencies_currency_id.09ab867f2c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.958768Z", "completed_at": "2022-12-19T16:17:45.964972Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.965449Z", "completed_at": "2022-12-19T16:17:45.965454Z"}], "thread_id": "Thread-3", "execution_time": 0.010359048843383789, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__customers_customer_id.bbb9eed2dc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.959101Z", "completed_at": "2022-12-19T16:17:45.965131Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.968087Z", "completed_at": "2022-12-19T16:17:45.968097Z"}], "thread_id": "Thread-4", "execution_time": 0.010376214981079102, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__customers_customer_id.7c9debe8d9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.965290Z", "completed_at": "2022-12-19T16:17:45.969029Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.969824Z", "completed_at": "2022-12-19T16:17:45.969828Z"}], "thread_id": "Thread-1", "execution_time": 0.005533933639526367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__expense_accounts_expense_account_id.4de138ed23"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.637388Z", "completed_at": "2022-12-19T16:17:45.943154Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.944460Z", "completed_at": "2022-12-19T16:17:45.944463Z"}], "thread_id": "Thread-2", "execution_time": 0.33957886695861816, "adapter_response": {}, "message": null, "failures": null, "unique_id": "model.netsuite_source.stg_netsuite__vendors"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.969968Z", "completed_at": "2022-12-19T16:17:45.976584Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.979736Z", "completed_at": "2022-12-19T16:17:45.979741Z"}], "thread_id": "Thread-3", "execution_time": 0.010961055755615234, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__expense_accounts_expense_account_id.5e813830ff"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.970358Z", "completed_at": "2022-12-19T16:17:45.976799Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.979906Z", "completed_at": "2022-12-19T16:17:45.979909Z"}], "thread_id": "Thread-4", "execution_time": 0.010995864868164062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__departments_department_id.6d96b00002"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.976921Z", "completed_at": "2022-12-19T16:17:45.980631Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.984063Z", "completed_at": "2022-12-19T16:17:45.984068Z"}], "thread_id": "Thread-1", "execution_time": 0.008617877960205078, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__departments_department_id.2df16a9aa1"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.980310Z", "completed_at": "2022-12-19T16:17:45.984207Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.988582Z", "completed_at": "2022-12-19T16:17:45.988587Z"}], "thread_id": "Thread-2", "execution_time": 0.014582157135009766, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__income_accounts_income_account_id.a38311d5f9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.984672Z", "completed_at": "2022-12-19T16:17:45.991972Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.995399Z", "completed_at": "2022-12-19T16:17:45.995404Z"}], "thread_id": "Thread-3", "execution_time": 0.012308835983276367, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__income_accounts_income_account_id.28b4166a07"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.984831Z", "completed_at": "2022-12-19T16:17:45.992220Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.995561Z", "completed_at": "2022-12-19T16:17:45.995564Z"}], "thread_id": "Thread-4", "execution_time": 0.012368917465209961, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__locations_location_id.9f68ecaa6b"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.992304Z", "completed_at": "2022-12-19T16:17:45.996277Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:45.999712Z", "completed_at": "2022-12-19T16:17:45.999718Z"}], "thread_id": "Thread-1", "execution_time": 0.009029150009155273, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__locations_location_id.3857e2cac2"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:45.995960Z", "completed_at": "2022-12-19T16:17:45.999865Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.003020Z", "completed_at": "2022-12-19T16:17:46.003025Z"}], "thread_id": "Thread-2", "execution_time": 0.013964176177978516, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__items_item_id.ba322d7da3"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.000298Z", "completed_at": "2022-12-19T16:17:46.006682Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.010831Z", "completed_at": "2022-12-19T16:17:46.010837Z"}], "thread_id": "Thread-3", "execution_time": 0.01211094856262207, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__items_item_id.760a674654"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.000444Z", "completed_at": "2022-12-19T16:17:46.006871Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.010995Z", "completed_at": "2022-12-19T16:17:46.010998Z"}], "thread_id": "Thread-4", "execution_time": 0.012256145477294922, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.dbt_utils_unique_combination_of_columns_stg_netsuite__transaction_lines_transaction_id__transaction_line_id.651bc3120d"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.006937Z", "completed_at": "2022-12-19T16:17:46.011485Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.014747Z", "completed_at": "2022-12-19T16:17:46.014752Z"}], "thread_id": "Thread-1", "execution_time": 0.00933980941772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_id.e8055d67bc"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.011423Z", "completed_at": "2022-12-19T16:17:46.015118Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.018370Z", "completed_at": "2022-12-19T16:17:46.018376Z"}], "thread_id": "Thread-2", "execution_time": 0.014017105102539062, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transaction_lines_transaction_line_id.420bd8637c"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.015509Z", "completed_at": "2022-12-19T16:17:46.021361Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.024518Z", "completed_at": "2022-12-19T16:17:46.024525Z"}], "thread_id": "Thread-3", "execution_time": 0.010539054870605469, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__subsidiaries_subsidiary_id.9aa9c2d015"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.015749Z", "completed_at": "2022-12-19T16:17:46.021557Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.024704Z", "completed_at": "2022-12-19T16:17:46.024707Z"}], "thread_id": "Thread-4", "execution_time": 0.010565996170043945, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__subsidiaries_subsidiary_id.7d0dfe64f0"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.021610Z", "completed_at": "2022-12-19T16:17:46.025520Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.029069Z", "completed_at": "2022-12-19T16:17:46.029075Z"}], "thread_id": "Thread-1", "execution_time": 0.011013984680175781, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__transactions_transaction_id.9439fe1532"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.025179Z", "completed_at": "2022-12-19T16:17:46.029213Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.033601Z", "completed_at": "2022-12-19T16:17:46.033608Z"}], "thread_id": "Thread-2", "execution_time": 0.014705896377563477, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__transactions_transaction_id.fd6bd3af79"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.029621Z", "completed_at": "2022-12-19T16:17:46.036727Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.039851Z", "completed_at": "2022-12-19T16:17:46.039857Z"}], "thread_id": "Thread-3", "execution_time": 0.01178121566772461, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendor_types_vendor_type_id.faed6fe0e9"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.029766Z", "completed_at": "2022-12-19T16:17:46.036933Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.040032Z", "completed_at": "2022-12-19T16:17:46.040035Z"}], "thread_id": "Thread-4", "execution_time": 0.011839866638183594, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__vendor_types_vendor_type_id.6ba4f59b69"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.037005Z", "completed_at": "2022-12-19T16:17:46.040784Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.043685Z", "completed_at": "2022-12-19T16:17:46.043691Z"}], "thread_id": "Thread-1", "execution_time": 0.007906913757324219, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.not_null_stg_netsuite__vendors_vendor_id.15978cc531"}, {"status": "success", "timing": [{"name": "compile", "started_at": "2022-12-19T16:17:46.040461Z", "completed_at": "2022-12-19T16:17:46.044212Z"}, {"name": "execute", "started_at": "2022-12-19T16:17:46.044370Z", "completed_at": "2022-12-19T16:17:46.044373Z"}], "thread_id": "Thread-2", "execution_time": 0.0074269771575927734, "adapter_response": {}, "message": null, "failures": null, "unique_id": "test.netsuite_source.unique_stg_netsuite__vendors_vendor_id.a981580d39"}], "elapsed_time": 4.894811153411865, "args": {"write_json": true, "use_colors": true, "printer_width": 80, "version_check": true, "partial_parse": true, "static_parser": true, "profiles_dir": "/Users/joseph.markiewicz/.dbt", "send_anonymous_usage_stats": true, "event_buffer_size": 100000, "quiet": false, "no_print": false, "target": "postgres", "compile": true, "which": "generate", "rpc_method": "docs.generate", "indirect_selection": "eager"}} \ No newline at end of file